oficina / calendar Public

Door-copy nits: the connection pages stop saying Home

Pin home/connect to Home main 2bec942 (Home #79's English), so the
account-connection screen says "Connect your Oficina account" and
"Connect" instead of naming Home (Astra, home.go:59). No existing test
asserted the old wording; a new one pins the new.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev b55658febaaa44fcbc98b51820c9d60566594047 parent db62cba
3 files changed, +31 −3
  • go.mod +1 −1
  • go.sum +2 −2
  • internal/calendar/home_door_test.go +28 −0

CI failed — run details

CI log
=== vet ===
go vet ./...
go: downloading amadan.net/oficina/home/connect v0.0.0-20261001093757-2bec942ddd0c
=== fmt ===
=== test ===
go test ./...
?   	amadan.net/oficina/calendar/cmd/calendar	[no test files]
ok  	amadan.net/oficina/calendar/internal/calendar	4.576s
?   	amadan.net/oficina/calendar/internal/calendar/icons	[no test files]
?   	amadan.net/oficina/calendar/internal/calendar/seal	[no test files]
--- FAIL: TestTransientControlFailureAtBootRecovers (2.01s)
    schedule_recovery_test.go:25: timer was not armed
2026/10/01 10:55:04 INFO migrate applied="[sessions/0001_init auth/0001_init auth/0002_sessions_backfill calendar/0001_create_people calendar/0002_alter_people calendar/0003_alter_reminders calendar/0004_create_attendees calendar/0005_alter_people calendar/0006_alter_reminder_queues]" skipped=0 adopted=false
2026/10/01 10:55:04 ERROR calendar: scheduled work registration failed stage=schedule.register err="calendar: this platform does not support safe scheduled work; update the platform before starting Calendar"
FAIL
FAIL	amadan.net/oficina/calendar/internal/calendartest	4.637s
ok  	amadan.net/oficina/calendar/internal/guardstest	0.042s
?   	amadan.net/oficina/calendar/scripts/writeestilo	[no test files]
FAIL
make: *** [Makefile:85: test] Error 1

amadan: step test failed: exit status 2

amadan: job failed at step test — its output is above, not at the tail of this log
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)
+ }
+ }
+}