Name the Settings chat row Connection; record the approved headings
Paul approved the section headings You, This Base and Ask Base on 2026-11-14 and renaming the row under Ask Base to Connection, so the heading isn't repeated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+16
−15
docs/copy-pending.md+4 −3internal/browsertest/settings_test.go+1 −1internal/web/templates/settings.html+1 −1internal/webtest/ask_test.go+6 −6internal/webtest/settings_test.go+4 −4
diff --git a/docs/copy-pending.md b/docs/copy-pending.md| index 2cdac6e..f149bc5 100644 |
| --- a/docs/copy-pending.md |
| +++ b/docs/copy-pending.md |
| @@ -395,7 +395,8 @@ Review 10 (pending): Paul's live check of Settings. Settings is grouped into sec |
| | File | Context | Text | |
| |---|---|---| |
| -| internal/web/templates/settings.html | PENDING: Settings, the heading over Signed in as, Appearance, Passkeys (and Oficina account) | You | |
| -| internal/web/templates/settings.html | PENDING: Settings, the heading over Base name | This Base | |
| -| internal/web/templates/settings.html | PENDING: Settings, the heading over the Ask Base row (shown only with the chat on; the row keeps its approved name, Ask Base) | Ask Base | |
| +| internal/web/templates/settings.html | APPROVED (Paul, 2026-11-14): Settings, the heading over Signed in as, Appearance, Passkeys (and Oficina account) | You | |
| +| internal/web/templates/settings.html | APPROVED (Paul, 2026-11-14): Settings, the heading over Base name | This Base | |
| +| internal/web/templates/settings.html | APPROVED (Paul, 2026-11-14): Settings, the heading over the Ask Base row (shown only with the chat on; the row keeps its approved name, Ask Base) | Ask Base | |
| +| internal/web/templates/settings.html | APPROVED (Paul, 2026-11-14): CHANGED, the row under the Ask Base heading, renamed so it doesn't repeat the heading | ~~Ask Base~~ → Connection | |
| | internal/web/templates/partials/crumb.html | APPROVED: the X at the top right of Settings, Store, People, Uninstall and /ask, a link Home; its accessible name reuses the chat's approved close | Close | |
diff --git a/internal/browsertest/settings_test.go b/internal/browsertest/settings_test.go| index 5117822..01145a6 100644 |
| --- a/internal/browsertest/settings_test.go |
| +++ b/internal/browsertest/settings_test.go |
| @@ -21,7 +21,7 @@ const settingsLayoutJS = `(() => { |
| if (heads !== "You, This Base, Ask Base") problems.push("headings: " + heads); |
| const rows = [...document.querySelectorAll(".settings .rows li")]; |
| const names = rows.map(li => li.querySelector(".who").firstChild.textContent).join(", "); |
| - if (names !== "Signed in as, Appearance, Passkeys, Base name, Ask Base") problems.push("rows: " + names); |
| + if (names !== "Signed in as, Appearance, Passkeys, Base name, Connection") problems.push("rows: " + names); |
| const heights = new Set(rows.map(li => Math.round(li.getBoundingClientRect().height))); |
| if (heights.size !== 1) problems.push("rows of heights " + [...heights].join(", ")); |
| const btn = document.querySelector(".settings .rows .btn.ghost:not([hidden])").getBoundingClientRect(); |
diff --git a/internal/web/templates/settings.html b/internal/web/templates/settings.html| index c55da47..3f4dd3b 100644 |
| --- a/internal/web/templates/settings.html |
| +++ b/internal/web/templates/settings.html |
| @@ -19,7 +19,7 @@ |
| </section> |
| {{with .Equipo}}<section class="group" aria-labelledby="set-ask"><h3 id="set-ask">Ask Base</h3> |
| <ul class="rows"> |
| -<li><div class="who">Ask Base<small>{{if eq . "ready"}}{{with $.EquipoPerson}}Connected as {{.}}{{else}}Connected{{end}}{{else if eq . "pending"}}Waiting for your approval{{else if eq . "reconnect"}}Needs setting up again{{else}}Not set up{{end}}</small></div>{{if eq . "ready"}}<form method="post" action="/ask/disconnect"><button class="btn ghost" type="submit">Disconnect</button></form>{{else if eq . "pending"}}<a class="btn ghost" href="/ask/connect?next=settings">Finish setting up</a>{{else}}<form method="post" action="/ask/connect"><input type="hidden" name="next" value="settings"><button class="btn ghost" type="submit">{{if eq . "reconnect"}}Set it up again{{else}}Set up Ask Base{{end}}</button></form>{{end}}</li> |
| +<li><div class="who">Connection<small>{{if eq . "ready"}}{{with $.EquipoPerson}}Connected as {{.}}{{else}}Connected{{end}}{{else if eq . "pending"}}Waiting for your approval{{else if eq . "reconnect"}}Needs setting up again{{else}}Not set up{{end}}</small></div>{{if eq . "ready"}}<form method="post" action="/ask/disconnect"><button class="btn ghost" type="submit">Disconnect</button></form>{{else if eq . "pending"}}<a class="btn ghost" href="/ask/connect?next=settings">Finish setting up</a>{{else}}<form method="post" action="/ask/connect"><input type="hidden" name="next" value="settings"><button class="btn ghost" type="submit">{{if eq . "reconnect"}}Set it up again{{else}}Set up Ask Base{{end}}</button></form>{{end}}</li> |
| </ul> |
| </section> |
| {{end}}<section class="group signout"> |
diff --git a/internal/webtest/ask_test.go b/internal/webtest/ask_test.go| index a2b627c..fadbbe6 100644 |
| --- a/internal/webtest/ask_test.go |
| +++ b/internal/webtest/ask_test.go |
| @@ -140,7 +140,7 @@ func TestAskFieldOpensChat(t *testing.T) { |
| } |
| } |
| settings := a.get("/settings").Body |
| - for _, want := range []string{"Ask Base<small>Not set up</small>", `action="/ask/connect"`, ">Set up Ask Base</button>"} { |
| + for _, want := range []string{"Connection<small>Not set up</small>", `action="/ask/connect"`, ">Set up Ask Base</button>"} { |
| if !strings.Contains(settings, want) { |
| t.Errorf("Settings lacks %q:\n%s", want, settings) |
| } |
| @@ -191,7 +191,7 @@ func TestConnectEquipo(t *testing.T) { |
| t.Fatal("the bearer is stored in the clear") |
| } |
| settings := a.get("/settings").Body |
| - if !strings.Contains(settings, "Ask Base<small>Connected</small>") || !strings.Contains(settings, `action="/ask/disconnect"`) { |
| + if !strings.Contains(settings, "Connection<small>Connected</small>") || !strings.Contains(settings, `action="/ask/disconnect"`) { |
| t.Errorf("Settings after connecting:\n%s", settings) |
| } |
| a.noLeak(token) |
| @@ -554,7 +554,7 @@ func TestDisconnectRevokesDevice(t *testing.T) { |
| if _, ok, _ := store.EquipoLinkFor(context.Background(), a.DB, a.ownerID()); ok { |
| t.Fatal("link kept") |
| } |
| - if s := a.get("/settings").Body; !strings.Contains(s, "Ask Base<small>Not set up</small>") { |
| + if s := a.get("/settings").Body; !strings.Contains(s, "Connection<small>Not set up</small>") { |
| t.Errorf("Settings:\n%s", s) |
| } |
| } |
| @@ -817,13 +817,13 @@ func TestAskApprovedWords(t *testing.T) { |
| askStates(t, func(state string, a *testApp, f *equipotest.Fake, pages map[string]string) { |
| row := func(value string) { |
| t.Helper() |
| - expect(t, state+" /settings", pages["/settings"], `<div class="who">Ask Base<small>(.*?)</small>`, value) |
| + expect(t, state+" /settings", pages["/settings"], `<div class="who">Connection<small>(.*?)</small>`, value) |
| } |
| // The row's control: its button or its link, by its text. |
| settingsAction := func(want string) { |
| t.Helper() |
| expect(t, state+" /settings control", pages["/settings"], |
| - `<div class="who">Ask Base<small>.*?</small></div>\s*(?:<form[^>]*>(?:<input[^>]*>)*)?<(?:button|a) [^>]*class="btn ghost"[^>]*>(.*?)</(?:button|a)>`, want) |
| + `<div class="who">Connection<small>.*?</small></div>\s*(?:<form[^>]*>(?:<input[^>]*>)*)?<(?:button|a) [^>]*class="btn ghost"[^>]*>(.*?)</(?:button|a)>`, want) |
| } |
| setup := pages["setup"] |
| title := func(want string) { expect(t, state+" setup title", setup, `<title>(.*?)</title>`, want+" · Acme") } |
| @@ -861,7 +861,7 @@ func TestAskApprovedWords(t *testing.T) { |
| case "setup unavailable": |
| expect(t, state+" setup problem", setup, `<p class="status" role="alert">(.*?)</p>`, "Ask Base isn't answering. Try again in a minute.") |
| case "ready": |
| - if got := elementText(t, state+" /settings", pages["/settings"], `<div class="who">Ask Base<small>(.*?)</small>`); !strings.HasPrefix(got, "Connected") { |
| + if got := elementText(t, state+" /settings", pages["/settings"], `<div class="who">Connection<small>(.*?)</small>`); !strings.HasPrefix(got, "Connected") { |
| t.Errorf("ready /settings row: %q", got) |
| } |
| if len(visibleBlocks(pages["/ask"])) != 0 { |
diff --git a/internal/webtest/settings_test.go b/internal/webtest/settings_test.go| index ace6c30..a3a2a29 100644 |
| --- a/internal/webtest/settings_test.go |
| +++ b/internal/webtest/settings_test.go |
| @@ -125,18 +125,18 @@ func TestSettingsShowsEquipoPerson(t *testing.T) { |
| f.SetAddress("ana@equipo.example") |
| a.connectEquipo(f) |
| a.get("/ask") |
| - if s := a.get("/settings").Body; !strings.Contains(s, "Ask Base<small>Connected as ana@equipo.example</small>") { |
| + if s := a.get("/settings").Body; !strings.Contains(s, "Connection<small>Connected as ana@equipo.example</small>") { |
| t.Fatalf("Settings:\n%s", s) |
| } |
| f.SetAddress("bea@equipo.example") |
| a.get("/ask/state") |
| - if s := a.get("/settings").Body; !strings.Contains(s, "Ask Base<small>Connected as bea@equipo.example</small>") { |
| + if s := a.get("/settings").Body; !strings.Contains(s, "Connection<small>Connected as bea@equipo.example</small>") { |
| t.Fatalf("Settings after a change:\n%s", s) |
| } |
| // Connecting again may be someone else: until Base reads who, it says |
| // only that it is connected. |
| a.approveEquipo(f) |
| - if s := a.get("/settings").Body; !strings.Contains(s, "Ask Base<small>Connected</small>") { |
| + if s := a.get("/settings").Body; !strings.Contains(s, "Connection<small>Connected</small>") { |
| t.Fatalf("Settings after reconnecting:\n%s", s) |
| } |
| } |
| @@ -207,7 +207,7 @@ func TestSettingsSections(t *testing.T) { |
| check("chat on", ask.get("/settings").Body, []string{ |
| "You: Signed in as, Appearance, Passkeys,", |
| "This Base: Base name,", |
| - "Ask Base: Ask Base,", |
| + "Ask Base: Connection,", |
| ": sign out", |
| }) |
| } |