oficina / slides Public

Door-copy nits in Slides: 'Connect' action, connect at Home main

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 728851566dc4ae8e7f635b287c311e305b696bbc parent ed257cd
4 files changed, +31 −4
  • go.mod +1 −1
  • go.sum +2 −2
  • internal/slides/home_test.go +27 −0
  • internal/slides/locales/en.toml +1 −1

CI passed — run details

diff --git a/go.mod b/go.mod
index cb506be..c1de2d9 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ toolchain go1.26.5
require (
amadan.net/oficina/estilo.git v0.0.0-20261001084202-0b4d92c3dc16
- 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/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327
diff --git a/go.sum b/go.sum
index b322140..345ec50 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/rastrillo v0.26.1-0.20260908075707-29e4491631bd h1:jlFSt95M1ontOg+VePU+kIJpChtWqDQAbnmlxqCnbgc=
diff --git a/internal/slides/home_test.go b/internal/slides/home_test.go
index b089805..6400586 100644
--- a/internal/slides/home_test.go
+++ b/internal/slides/home_test.go
@@ -648,3 +648,30 @@ func TestHomeEditorPresentationAndExportUseExistingOwner(t *testing.T) {
}
t.Fatal("Home export did not become readable PDF")
}
+
+// Astra's door-copy review: the account-connection start page's action
+// is the verb the page is about, "Connect", not a bare "Continue".
+func TestHomeStartPageActionSaysConnect(t *testing.T) {
+ mux, a, u := homeFixture(t)
+ loc, err := rastrillo.NewLocales(Locales, DefaultLocale, rastrillo.BaseCatalog(), LocaleFS)
+ if err != nil {
+ t.Fatal(err)
+ }
+ r := httptest.NewRequest("GET", homeTestOrigin+"/account/home", nil)
+ r.AddCookie(homeSession(t, a, u.Email, "magiclink"))
+ w := httptest.NewRecorder()
+ loc.Middleware(mux).ServeHTTP(w, r)
+ if w.Code != 200 {
+ t.Fatal(w.Code)
+ }
+ b := w.Body.String()
+ if !strings.Contains(b, "Connect your Oficina account") {
+ t.Fatal("not the connection start page")
+ }
+ if !strings.Contains(b, ">Connect</button>") {
+ t.Error("the start action does not say Connect")
+ }
+ if strings.Contains(b, ">Continue</button>") {
+ t.Error("the start action still says Continue")
+ }
+}
diff --git a/internal/slides/locales/en.toml b/internal/slides/locales/en.toml
index 334e5f6..64292ef 100644
--- a/internal/slides/locales/en.toml
+++ b/internal/slides/locales/en.toml
@@ -592,7 +592,7 @@ slides.export.error.store = "The PDF was made but couldn't be stored. Try again.
# answer 3 to the shared chrome spec's §13).
slides.home.start_title = "Connect your Oficina account"
slides.home.start_body = "Use your Oficina account to sign in to this Slides account. Your decks and sharing settings stay as they are."
-slides.home.start_action = "Continue"
+slides.home.start_action = "Connect"
slides.home.cancel_action = "Back"
slides.home.confirm_title = "Confirm account connection"
slides.home.confirm_body = "Connect the account below to the Oficina account you just signed in to."