The sign-in door no longer links the Colophon
Paul, 2026-11-19: "That makes no sense at all." / "Remove now." Missed in the first pass; found by Fable's estilo review. The open-source page stays public and under Help; a test forbids the door link. Reviewed by Claude Fable (APPROVE); CI passed at 58b061a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix/door-no-colophon into main.
2 files changed,
+7
−1
internal/calendar/home_door_test.go+7 −0internal/calendar/signin.go+0 −1
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/calendartest/ === fmt === === test === go test ./... ok amadan.net/oficina/calendar/cmd/calendar (cached) ? amadan.net/oficina/calendar/cmd/calendar-contract [no test files] ok amadan.net/oficina/calendar/internal/calendar 26.462s ? 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.999s ok amadan.net/oficina/calendar/internal/guardstest 0.086s ? amadan.net/oficina/calendar/scripts/writeestilo [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
diff --git a/internal/calendar/home_door_test.go b/internal/calendar/home_door_test.go| index b00bb28..d5982b7 100644 |
| --- a/internal/calendar/home_door_test.go |
| +++ b/internal/calendar/home_door_test.go |
| @@ -26,6 +26,13 @@ func TestHomeSignInPagesAreTheDoor(t *testing.T) { |
| } |
| } |
| } |
| + // Paul, 2026-11-19: no Colophon link on the sign-in door ("makes no |
| + // sense at all"). The open-source page stays public and under Help. |
| + for _, path := range []string{"/signin/local", "/signin/local?sent=1", "/signed-out"} { |
| + if body := f.do("GET", path, "").Body.String(); strings.Contains(body, `href="/help/open-source"`) { |
| + t.Errorf("GET %s links the open-source page from the door", path) |
| + } |
| + } |
| if body := f.do("GET", "/signed-out", "").Body.String(); strings.Contains(body, "Home") { |
| t.Errorf("/signed-out names Home to people:\n%s", body) |
| } |
diff --git a/internal/calendar/signin.go b/internal/calendar/signin.go| index 44dce25..f1510ad 100644 |
| --- a/internal/calendar/signin.go |
| +++ b/internal/calendar/signin.go |
| @@ -96,7 +96,6 @@ func (h *handlers) renderSignin(w http.ResponseWriter, r *http.Request, status i |
| q := r.URL.Query() |
| form := door(r) |
| form.Action = "/signin" |
| - form.OpenSource = &chrome.Link{Href: "/help/open-source", Label: "Open source"} |
| if q.Get("force") != "" { |
| // A failed Keymail exchange lands here as ?force=1&err=keymail. |
| // Posting force back asks for an emailed link instead, so the |