Sign-in: the smart door (smart-door step 6, Calendar)
Calendar adopts the smart sign-in door, as Docs, Sheets and Slides did. Bumps: rastrillo v0.27.1 to v0.42.0, Home connect/handoff to 150d94e, estilo to 468fab1. - SigninPath is /signin in both modes; the three door routes replace homeSignin and teamSignin. - An admission probe of requirePerson runs first. Web sessions only; native and guest are never judged. Any 5xx is undecided. - Refusal and removal show on the plain door; Oficina ID is remembered only when admitted. - Return memory, and Forget chained to id.oficina.works. - Team mode: Config.Admit plus the choose page. - Fixed along the way: a storage error is 503, not 404; removal ends the session at the door, not inside the check; doors are drawn signed out; the toolbar margin is zeroed for the new seg-tabs. - rastrillo catch-up: the English locale pack, chromedp v0.21, minified assets, hand-copied vendored files (doctor is blind while native.go needs the old path), credits regenerated. - One additive migration: Home linkstore 0003_choice_proofs. Reviewed by Claude Fable: APPROVE AFTER FIXES, then APPROVE at 5dde63b. CI passed. Discussion 48. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from feat/smart-door into main.
AGENTS.md+45 −3Makefile+12 −2go.mod+13 −13go.sum+24 −28internal/calendar/app.go+12 −16internal/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+20 −0internal/calendar/signin.go+184 −173internal/calendar/signin_admission.go+261 −0internal/calendar/signin_browser_test.go+227 −0internal/calendar/signin_door_contract_test.go+150 −0internal/calendar/signin_door_gaps_test.go+110 −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/calendar.css+8 −0internal/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+27 −26internal/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.136s ? amadan.net/oficina/calendar/cmd/calendar-contract [no test files] ok amadan.net/oficina/calendar/internal/calendar 27.946s ? 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 3.928s ok amadan.net/oficina/calendar/internal/guardstest 0.089s ? amadan.net/oficina/calendar/scripts/writeestilo [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
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_gaps_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/calendar.cssLoading 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…