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>
AGENTS.md+43 −3Makefile+7 −1go.mod+13 −13go.sum+24 −28internal/calendar/app.go+19 −19internal/calendar/auth.go+29 −14internal/calendar/auth_keymail.go+22 −33internal/calendar/credits/notices.json+54 −5internal/calendar/home.go+91 −51internal/calendar/home_connect_item_test.go+5 −3internal/calendar/home_consumer_test.go+13 −6internal/calendar/home_door_test.go+10 −8internal/calendar/home_router_test.go+3 −3internal/calendar/keymail_signin_test.go+36 −22internal/calendar/native_exchange_test.go+2 −1internal/calendar/person.go+7 −0internal/calendar/render.go+15 −8internal/calendar/routes.go+31 −12internal/calendar/serving.go+5 −0internal/calendar/signin.go+174 −173internal/calendar/signin_admission.go+267 −0internal/calendar/signin_browser_test.go+227 −0internal/calendar/signin_door_contract_test.go+150 −0internal/calendar/signin_door_helpers_test.go+208 −0internal/calendar/signin_door_refusal_test.go+181 −0internal/calendar/signin_door_remember_test.go+185 −0internal/calendar/signin_door_return_test.go+252 −0internal/calendar/signin_door_states_test.go+242 −0internal/calendar/signin_door_team_test.go+151 −0internal/calendar/signin_out.go+103 −0internal/calendar/signin_return.go+278 −0internal/calendar/signin_timing_test.go+2 −2internal/calendar/static/busy.js+154 −38internal/calendar/static/chrome.css+470 −4internal/calendar/static/chrome.js+116 −1internal/calendar/static/datetime.js+210 −56internal/calendar/static/rastrillo.js+197 −22internal/calendar/static/select.js+188 −30internal/calendar/static/theme.css+116 −0internal/calendar/static/tokens.css+2,012 −273internal/calendar/team_access.go+16 −34internal/calendar/team_access_test.go+5 −3internal/calendar/team_fixture_test.go+32 −0internal/calendar/team_home_only.go+29 −5internal/calendar/team_identity_test.go+7 −6internal/calendar/templates/home.html+11 −1internal/calendar/templates/layout.html+1 −1internal/calendar/templates/signin.html+18 −24internal/calendar/testing.go+3 −0internal/calendartest/auth_test.go+13 −5internal/calendartest/browser_steps_test.go+69 −0internal/calendartest/browser_test.go+15 −15internal/calendartest/csp_browser_test.go+6 −8internal/calendartest/formfoot_browser_test.go+9 −10internal/calendartest/playwright_test.go+8 −4internal/calendartest/quickadd_browser_test.go+7 −10internal/calendartest/signed_out_test.go+4 −1internal/calendartest/signin_confirm_test.go+5 −5internal/calendartest/signin_door_test.go+26 −32internal/calendartest/vendored_test.go+12 −0internal/calendartest/zoom_browser_test.go+22 −24internal/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
Intent
AGENTS.mdLoading diff…
MakefileLoading diff…
go.modLoading diff…
go.sumLoading diff…
internal/calendar/app.goLoading diff…
internal/calendar/auth.goLoading diff…
internal/calendar/auth_keymail.goLoading diff…
internal/calendar/credits/notices.jsonLoading diff…
internal/calendar/home.goLoading diff…
internal/calendar/home_connect_item_test.goLoading diff…
internal/calendar/home_consumer_test.goLoading diff…
internal/calendar/home_door_test.goLoading diff…
internal/calendar/home_router_test.goLoading diff…
internal/calendar/keymail_signin_test.goLoading diff…
internal/calendar/native_exchange_test.goLoading diff…
internal/calendar/person.goLoading diff…
internal/calendar/render.goLoading diff…
internal/calendar/routes.goLoading diff…
internal/calendar/serving.goLoading diff…
internal/calendar/signin.goLoading diff…
internal/calendar/signin_admission.goLoading diff…
internal/calendar/signin_browser_test.goLoading diff…
internal/calendar/signin_door_contract_test.goLoading diff…
internal/calendar/signin_door_helpers_test.goLoading diff…
internal/calendar/signin_door_refusal_test.goLoading diff…
internal/calendar/signin_door_remember_test.goLoading diff…
internal/calendar/signin_door_return_test.goLoading diff…
internal/calendar/signin_door_states_test.goLoading diff…
internal/calendar/signin_door_team_test.goLoading diff…
internal/calendar/signin_out.goLoading diff…
internal/calendar/signin_return.goLoading diff…
internal/calendar/signin_timing_test.goLoading diff…
internal/calendar/static/busy.jsLoading diff…
internal/calendar/static/chrome.cssLoading diff…
internal/calendar/static/chrome.jsLoading diff…
internal/calendar/static/datetime.jsLoading diff…
internal/calendar/static/rastrillo.jsLoading diff…
internal/calendar/static/select.jsLoading diff…
internal/calendar/static/theme.cssLoading diff…
internal/calendar/static/tokens.cssLoading diff…
internal/calendar/team_access.goLoading diff…
internal/calendar/team_access_test.goLoading diff…
internal/calendar/team_fixture_test.goLoading diff…
internal/calendar/team_home_only.goLoading diff…
internal/calendar/team_identity_test.goLoading diff…
internal/calendar/templates/home.htmlLoading diff…
internal/calendar/templates/layout.htmlLoading diff…
internal/calendar/templates/signin.htmlLoading diff…
internal/calendar/testing.goLoading diff…
internal/calendartest/auth_test.goLoading diff…
internal/calendartest/browser_steps_test.goLoading diff…
internal/calendartest/browser_test.goLoading diff…
internal/calendartest/csp_browser_test.goLoading diff…
internal/calendartest/formfoot_browser_test.goLoading diff…
internal/calendartest/playwright_test.goLoading diff…
internal/calendartest/quickadd_browser_test.goLoading diff…
internal/calendartest/signed_out_test.goLoading diff…
internal/calendartest/signin_confirm_test.goLoading diff…
internal/calendartest/signin_door_test.goLoading diff…
internal/calendartest/vendored_test.goLoading diff…
internal/calendartest/zoom_browser_test.goLoading diff…
internal/guardstest/guards_test.goLoading diff…