oficina / fichas Public

Re-pin estilo 39792ae and rastrillo f908c5f: the suite's current chrome

estilo a264aa5 -> 39792ae: Appearance as a three-way switch in place,
the bar stack, the system-font chrome, and Fiesta 1.3.0's busy.js (a
POST holds 650ms; a GET goes at once). rastrillo 29e4491 -> f908c5f,
the busy reveal, re-copied with `go tool rastrillo doctor --fix`.

What the jump asked of Fichas:
- The emailed link opens the door with one Sign in button; only its
  POST spends the token, so a mail scanner's GET signs nobody in
  (RenderConfirm, drawn as Docs draws it; POST /auth/verify routed).
- ProofOff, chosen explicitly as Docs does: rastrillo refuses to start
  until it is.
- The en locale pack is imported: without it the binary refused to boot.
- Fichas' live search script is search.js: rastrillo now ships a
  different live.js (live regions).
- fiesta.js is left out on purpose (estilo's shim is whole on its own).
- Browser tests ported to chromedp v0.21's typed actions.

make ci and make browser green. Checked by eye in the preview at 1280
and 390: rail, account drop-up with the new Appearance, card page, and
the confirm door.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 9976eb18e431fb15c0c76522da4608d48fa1fb3f parent f2e0512
31 files changed, +6,150 −779
  • Makefile +1 −1
  • go.mod +14 −11
  • go.sum +24 −22
  • internal/fichas/app.go +2 −0
  • internal/fichas/auth.go +8 −0
  • internal/fichas/handlers.go +29 −2
  • internal/fichas/render.go +4 −0
  • internal/fichas/static/anchor.js +68 −0
  • internal/fichas/static/busy.js +154 −38
  • internal/fichas/static/chrome.css +387 −0
  • internal/fichas/static/chrome.js +108 −1
  • internal/fichas/static/copy.js +171 −0
  • internal/fichas/static/datetime.js +227 −62
  • internal/fichas/static/light.js +275 −0
  • internal/fichas/static/live.js +652 −97
  • internal/fichas/static/rastrillo.js +197 −22
  • internal/fichas/static/search.js +114 −0
  • internal/fichas/static/select.js +1,242 −255
  • internal/fichas/static/shell.css +51 −0
  • internal/fichas/static/shell.js +157 −0
  • internal/fichas/static/theme.css +5 −3
  • internal/fichas/static/tokens.css +2,167 −236
  • internal/fichas/static/transition.js +23 −0
  • internal/fichas/templates/shell.html +1 −1
  • internal/fichas/templates/signin.html +10 −1
  • internal/fichastest/account_test.go +1 −1
  • internal/fichastest/browser_test.go +32 −22
  • internal/fichastest/contract_test.go +2 −1
  • internal/fichastest/signin_flow_test.go +18 −2
  • internal/fichastest/surface_test.go +1 −1
  • internal/fichastest/vendored_test.go +5 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.35.1-0.20261111230602-f908c5fa31f1
go: downloading golang.org/x/crypto v0.55.0
go: downloading amadan.net/oficina/estilo.git v0.0.0-20261111234914-39792ae278b0
go: downloading amadan.net/oficina/suite v0.0.0-20261102002704-91affa14eae4
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/go-chi/chi/v5 v5.3.2
go: downloading github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3
go: downloading gorm.io/gorm v1.31.2
go: downloading github.com/keymaildev/signin v0.1.1
go: downloading amadan.net/rastrillo/fiesta v1.3.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading gorm.io/plugin/dbresolver v1.6.2
go: downloading github.com/carlosframework/rastrillo v0.23.0
go: downloading golang.org/x/text v0.41.0
go: downloading github.com/jinzhu/now v1.1.5
go: downloading amadan.net/rastrillo/rastrillo/money v0.1.0
go: downloading github.com/tdewolff/minify/v2 v2.24.19
go: downloading github.com/tdewolff/parse/v2 v2.8.16
go: downloading golang.org/x/sys v0.47.0
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go vet -tags browser ./internal/fichastest/
go: downloading github.com/chromedp/cdproto v0.158.6
go: downloading github.com/chromedp/chromedp v0.21.0
=== fmt ===
=== test ===
go test ./...
?   	amadan.net/oficina/fichas/cmd/fichas	[no test files]
ok  	amadan.net/oficina/fichas/internal/fichas	1.972s
?   	amadan.net/oficina/fichas/internal/fichas/icons	[no test files]
ok  	amadan.net/oficina/fichas/internal/fichas/seal	0.009s
ok  	amadan.net/oficina/fichas/internal/fichastest	1.001s
?   	amadan.net/oficina/fichas/scripts/mockups	[no test files]
?   	amadan.net/oficina/fichas/scripts/preview	[no test files]
?   	amadan.net/oficina/fichas/scripts/writeestilo	[no test files]
=== migration-check ===
go tool rastrillo migration check
go: downloading golang.org/x/mod v0.38.0
go: downloading github.com/BurntSushi/toml v1.6.0
go: downloading golang.org/x/tools v0.48.0
go: downloading golang.org/x/sync v0.22.0
rastrillo migration check: models and migrations agree
Makefile

Loading diff…

go.mod

Loading diff…

go.sum

Loading diff…

internal/fichas/app.go

Loading diff…

internal/fichas/auth.go

Loading diff…

internal/fichas/handlers.go

Loading diff…

internal/fichas/render.go

Loading diff…

internal/fichas/static/anchor.js

Loading diff…

internal/fichas/static/busy.js

Loading diff…

internal/fichas/static/chrome.css

Loading diff…

internal/fichas/static/chrome.js

Loading diff…

internal/fichas/static/copy.js

Loading diff…

internal/fichas/static/datetime.js

Loading diff…

internal/fichas/static/light.js

Loading diff…

internal/fichas/static/live.js

Loading diff…

internal/fichas/static/rastrillo.js

Loading diff…

internal/fichas/static/search.js

Loading diff…

internal/fichas/static/select.js

Loading diff…

internal/fichas/static/shell.css

Loading diff…

internal/fichas/static/shell.js

Loading diff…

internal/fichas/static/theme.css

Loading diff…

internal/fichas/static/tokens.css

Loading diff…

internal/fichas/static/transition.js

Loading diff…

internal/fichas/templates/shell.html

Loading diff…

internal/fichas/templates/signin.html

Loading diff…

internal/fichastest/account_test.go

Loading diff…

internal/fichastest/browser_test.go

Loading diff…

internal/fichastest/contract_test.go

Loading diff…

internal/fichastest/signin_flow_test.go

Loading diff…

internal/fichastest/surface_test.go

Loading diff…

internal/fichastest/vendored_test.go

Loading diff…