oficina / calendar Public

Sign-in: the smart door (smart-door step 6, Calendar)

Calendar adopts the smart sign-in door, as Docs, Sheets and Slides did.
Bumps, in one change: rastrillo v0.27.1 to v0.42.0, Home connect and
handoff 14c83d7/ff16bf5 to Home main 150d94e, estilo 260f98c to main
468fab1.

- The door: SigninScreen and SigninOneWay through estilo-signin-screen,
  SigninPath /signin in both modes (it was /signin/local with Home on).
  With Home, /signin offers Continue with Oficina ID first, /signin/local
  is email only, /signin/oficina starts the exchange; step-up offers email
  only. Standalone is email only.
- Admission: all three routes run requirePerson on a probe first. A
  refused session is ended on the door's own response and shown the
  refusal (team mode: the removal), with a remembered Oficina ID
  forgotten; any 5xx is undecided. The probe ends nothing itself, and a
  Home identity-storage failure is now a 503, not requirePerson's 404.
- The refusal and removal sit in the app-problem slot, on the plain door
  only, so Other ways still works.
- Oficina ID is remembered in MintHomeSession, with the resolved
  address, only for a session the probe admits strictly; nothing carried
  over.
- A sealed return memory (Home only), with every protection Docs',
  Sheets' and Slides' reviews asked for.
- Signed out: Forget me on this device, chained to id.oficina.works.
- Team mode: connect now requires Admit, so teamAdmit plus the member
  choose page (connect's English).
- rastrillo catch-up: the English locale pack, chromedp v0.21 (browser
  tests ported), Sent's attempt id, the Keymail continuation on the door,
  vendored tokens.css/select.js/datetime.js re-copied by hand (doctor
  still refuses while native.go needs the pre-move path), estilo assets
  rewritten, credits regenerated (Fiesta 1.5.0, minify, parse).
- Migrations: Home linkstore 0003_choice_proofs (additive, applied at
  boot with Home configured). None of Calendar's own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 567381e856c45314ca3efc040213ca5df163af44 parent 62d7534
62 files changed, +6,631 −1,017
  • AGENTS.md +43 −3
  • Makefile +7 −1
  • go.mod +13 −13
  • go.sum +24 −28
  • internal/calendar/app.go +19 −19
  • internal/calendar/auth.go +29 −14
  • internal/calendar/auth_keymail.go +22 −33
  • internal/calendar/credits/notices.json +54 −5
  • internal/calendar/home.go +91 −51
  • internal/calendar/home_connect_item_test.go +5 −3
  • internal/calendar/home_consumer_test.go +13 −6
  • internal/calendar/home_door_test.go +10 −8
  • internal/calendar/home_router_test.go +3 −3
  • internal/calendar/keymail_signin_test.go +36 −22
  • internal/calendar/native_exchange_test.go +2 −1
  • internal/calendar/person.go +7 −0
  • internal/calendar/render.go +15 −8
  • internal/calendar/routes.go +31 −12
  • internal/calendar/serving.go +5 −0
  • internal/calendar/signin.go +174 −173
  • internal/calendar/signin_admission.go +267 −0
  • internal/calendar/signin_browser_test.go +227 −0
  • internal/calendar/signin_door_contract_test.go +150 −0
  • internal/calendar/signin_door_helpers_test.go +208 −0
  • internal/calendar/signin_door_refusal_test.go +181 −0
  • internal/calendar/signin_door_remember_test.go +185 −0
  • internal/calendar/signin_door_return_test.go +252 −0
  • internal/calendar/signin_door_states_test.go +242 −0
  • internal/calendar/signin_door_team_test.go +151 −0
  • internal/calendar/signin_out.go +103 −0
  • internal/calendar/signin_return.go +278 −0
  • internal/calendar/signin_timing_test.go +2 −2
  • internal/calendar/static/busy.js +154 −38
  • internal/calendar/static/chrome.css +470 −4
  • internal/calendar/static/chrome.js +116 −1
  • internal/calendar/static/datetime.js +210 −56
  • internal/calendar/static/rastrillo.js +197 −22
  • internal/calendar/static/select.js +188 −30
  • internal/calendar/static/theme.css +116 −0
  • internal/calendar/static/tokens.css +2,012 −273
  • internal/calendar/team_access.go +16 −34
  • internal/calendar/team_access_test.go +5 −3
  • internal/calendar/team_fixture_test.go +32 −0
  • internal/calendar/team_home_only.go +29 −5
  • internal/calendar/team_identity_test.go +7 −6
  • internal/calendar/templates/home.html +11 −1
  • internal/calendar/templates/layout.html +1 −1
  • internal/calendar/templates/signin.html +18 −24
  • internal/calendar/testing.go +3 −0
  • internal/calendartest/auth_test.go +13 −5
  • internal/calendartest/browser_steps_test.go +69 −0
  • internal/calendartest/browser_test.go +15 −15
  • internal/calendartest/csp_browser_test.go +6 −8
  • internal/calendartest/formfoot_browser_test.go +9 −10
  • internal/calendartest/playwright_test.go +8 −4
  • internal/calendartest/quickadd_browser_test.go +7 −10
  • internal/calendartest/signed_out_test.go +4 −1
  • internal/calendartest/signin_confirm_test.go +5 −5
  • internal/calendartest/signin_door_test.go +26 −32
  • internal/calendartest/vendored_test.go +12 −0
  • internal/calendartest/zoom_browser_test.go +22 −24
  • internal/guardstest/guards_test.go +1 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
go vet -tags browser ./internal/calendartest/ ./internal/calendar/
=== fmt ===
=== test ===
go test ./...
ok  	amadan.net/oficina/calendar/cmd/calendar	0.149s
?   	amadan.net/oficina/calendar/cmd/calendar-contract	[no test files]
ok  	amadan.net/oficina/calendar/internal/calendar	28.492s
?   	amadan.net/oficina/calendar/internal/calendar/icons	[no test files]
?   	amadan.net/oficina/calendar/internal/calendar/keymailtest	[no test files]
?   	amadan.net/oficina/calendar/internal/calendar/seal	[no test files]
?   	amadan.net/oficina/calendar/internal/calendar/teamstate	[no test files]
ok  	amadan.net/oficina/calendar/internal/calendartest	4.060s
ok  	amadan.net/oficina/calendar/internal/guardstest	0.090s
?   	amadan.net/oficina/calendar/scripts/writeestilo	[no test files]
=== migration-check ===
go tool rastrillo migration check
rastrillo migration check: models and migrations agree
AGENTS.md

Loading diff…

Makefile

Loading diff…

go.mod

Loading diff…

go.sum

Loading diff…

internal/calendar/app.go

Loading diff…

internal/calendar/auth.go

Loading diff…

internal/calendar/auth_keymail.go

Loading diff…

internal/calendar/credits/notices.json

Loading diff…

internal/calendar/home.go

Loading diff…

internal/calendar/home_connect_item_test.go

Loading diff…

internal/calendar/home_consumer_test.go

Loading diff…

internal/calendar/home_door_test.go

Loading diff…

internal/calendar/home_router_test.go

Loading diff…

internal/calendar/keymail_signin_test.go

Loading diff…

internal/calendar/native_exchange_test.go

Loading diff…

internal/calendar/person.go

Loading diff…

internal/calendar/render.go

Loading diff…

internal/calendar/routes.go

Loading diff…

internal/calendar/serving.go

Loading diff…

internal/calendar/signin.go

Loading diff…

internal/calendar/signin_admission.go

Loading diff…

internal/calendar/signin_browser_test.go

Loading diff…

internal/calendar/signin_door_contract_test.go

Loading diff…

internal/calendar/signin_door_helpers_test.go

Loading diff…

internal/calendar/signin_door_refusal_test.go

Loading diff…

internal/calendar/signin_door_remember_test.go

Loading diff…

internal/calendar/signin_door_return_test.go

Loading diff…

internal/calendar/signin_door_states_test.go

Loading diff…

internal/calendar/signin_door_team_test.go

Loading diff…

internal/calendar/signin_out.go

Loading diff…

internal/calendar/signin_return.go

Loading diff…

internal/calendar/signin_timing_test.go

Loading diff…

internal/calendar/static/busy.js

Loading diff…

internal/calendar/static/chrome.css

Loading diff…

internal/calendar/static/chrome.js

Loading diff…

internal/calendar/static/datetime.js

Loading diff…

internal/calendar/static/rastrillo.js

Loading diff…

internal/calendar/static/select.js

Loading diff…

internal/calendar/static/theme.css

Loading diff…

internal/calendar/static/tokens.css

Loading diff…

internal/calendar/team_access.go

Loading diff…

internal/calendar/team_access_test.go

Loading diff…

internal/calendar/team_fixture_test.go

Loading diff…

internal/calendar/team_home_only.go

Loading diff…

internal/calendar/team_identity_test.go

Loading diff…

internal/calendar/templates/home.html

Loading diff…

internal/calendar/templates/layout.html

Loading diff…

internal/calendar/templates/signin.html

Loading diff…

internal/calendar/testing.go

Loading diff…

internal/calendartest/auth_test.go

Loading diff…

internal/calendartest/browser_steps_test.go

Loading diff…

internal/calendartest/browser_test.go

Loading diff…

internal/calendartest/csp_browser_test.go

Loading diff…

internal/calendartest/formfoot_browser_test.go

Loading diff…

internal/calendartest/playwright_test.go

Loading diff…

internal/calendartest/quickadd_browser_test.go

Loading diff…

internal/calendartest/signed_out_test.go

Loading diff…

internal/calendartest/signin_confirm_test.go

Loading diff…

internal/calendartest/signin_door_test.go

Loading diff…

internal/calendartest/vendored_test.go

Loading diff…

internal/calendartest/zoom_browser_test.go

Loading diff…

internal/guardstest/guards_test.go

Loading diff…