oficina / calendar Public

Door-copy nits in Calendar: connect at Home main, so connection pages never name 'Home'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from chore/door-copy-nits into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev baa9e70dc39895bbce7a540880f77687abd64a5b parent db62cba
3 files changed, +31 −3
  • go.mod +1 −1
  • go.sum +2 −2
  • internal/calendar/home_door_test.go +28 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
=== fmt ===
=== test ===
go test ./...
?   	amadan.net/oficina/calendar/cmd/calendar	[no test files]
ok  	amadan.net/oficina/calendar/internal/calendar	4.732s
?   	amadan.net/oficina/calendar/internal/calendar/icons	[no test files]
?   	amadan.net/oficina/calendar/internal/calendar/seal	[no test files]
ok  	amadan.net/oficina/calendar/internal/calendartest	2.418s
ok  	amadan.net/oficina/calendar/internal/guardstest	0.052s
?   	amadan.net/oficina/calendar/scripts/writeestilo	[no test files]
=== migration-check ===
go run github.com/carlosframework/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
diff --git a/go.mod b/go.mod
index e95c8ff..6e79be3 100644
--- a/go.mod
+++ b/go.mod
@@ -5,7 +5,7 @@ go 1.25.0
toolchain go1.26.5
require (
- amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9
+ amadan.net/oficina/home/connect v0.0.0-20261001093757-2bec942ddd0c
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489
amadan.net/rastrillo/rastrillo v0.26.1-0.20260908075707-29e4491631bd
github.com/carlosframework/rastrillo v0.23.0
diff --git a/go.sum b/go.sum
index 584fdf4..9c8d9d9 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
amadan.net/oficina/estilo.git v0.0.0-20261001084202-0b4d92c3dc16 h1:F5v3x25dEj1rJNnBm71G7shN+fM+T2actUlaGPvoeH8=
amadan.net/oficina/estilo.git v0.0.0-20261001084202-0b4d92c3dc16/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
-amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9 h1:K/PaOVdQqRMwifPD6ipiwLeGR5nbFSxm9FxjrDJlZcg=
-amadan.net/oficina/home/connect v0.0.0-20260923190447-01166fcfc0a9/go.mod h1:YroavXe43Wietec+po8mtSk4a9Bir2h31Q3iAf4MWxI=
+amadan.net/oficina/home/connect v0.0.0-20261001093757-2bec942ddd0c h1:3yxO2D8BxDLMGfFV2o6Sp9Z91yLnjDCIuRKHVWORa8A=
+amadan.net/oficina/home/connect v0.0.0-20261001093757-2bec942ddd0c/go.mod h1:YroavXe43Wietec+po8mtSk4a9Bir2h31Q3iAf4MWxI=
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489 h1:RPKtyry/71i06o8L+gjAaUyexbmG56kO1YPs601URAM=
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489/go.mod h1:YISpzFJ+iMgrM0rUL032OSzsAQbP4/nozvXLCCOcn1k=
amadan.net/rastrillo/native/server v0.0.0-20260923173546-2a5d07b2c8d3 h1:5EFx7BLJj/+G/rt8bTmeyMWVfF5s5Sns7ajTvX4w/I8=
diff --git a/internal/calendar/home_door_test.go b/internal/calendar/home_door_test.go
index 34723cf..b00bb28 100644
--- a/internal/calendar/home_door_test.go
+++ b/internal/calendar/home_door_test.go
@@ -33,3 +33,31 @@ func TestHomeSignInPagesAreTheDoor(t *testing.T) {
t.Errorf("/signed-out Cache-Control = %q, want no-store", got)
}
}
+
+// Astra's door-copy review: the account-connection start page speaks
+// the suite's words — "your Oficina account", the verb Connect — and
+// never names Home to people (home/connect English since Home #79).
+func TestHomeConnectStartPageNeverNamesHome(t *testing.T) {
+ f := newHomeRouterFixture(t)
+ f.local(t)
+ // A signed-in visit first, as TestHomeRouterRetainsExistingCalendarIdentity
+ // does: without one the connection page answers 403.
+ if w := f.do("GET", "/day/2026-09-10", ""); w.Code != 200 {
+ t.Fatal("local calendar", w.Code)
+ }
+ w := f.do("GET", "/account/home", "")
+ if w.Code != 200 {
+ t.Fatal(w.Code, w.Body.String())
+ }
+ b := w.Body.String()
+ for _, want := range []string{"Connect your Oficina account", ">Connect</button>"} {
+ if !strings.Contains(b, want) {
+ t.Errorf("the start page is missing %q", want)
+ }
+ }
+ for _, never := range []string{"Continue to Home", "Use Home", "to Home"} {
+ if strings.Contains(b, never) {
+ t.Errorf("the start page still says %q", never)
+ }
+ }
+}