oficina / equipo Public

Settings: the rail becomes the Settings nav on a desktop

Paul, 2026-11-10: "The settings nav should probably replace the main
nav on this view, right?" Inside Settings the rail itself shows the
Settings nav: "‹ Equipo" (back to where the person was before
Settings, the Conversation without scripts or history), then Thinking
words, Connections with Add a connection under it, Housekeeping,
Notebook and Teams. Settings is two columns. The swap is the same rail,
its nav sliding in briefly only when the person crosses into or out of
Settings (from the Referer), never between sections; nothing slides
under reduced motion. The phone keeps its drill-in.

Also: the Add page's heading stacks its lede, the Add link sits clear
of the list, and the screenshots are redone for the two columns.

Tests: TestPagesSettingsRail (failed first: no Settings nav in the
rail) and TestBrowserSettingsRail at 1280 and 390; TestBrowserSettings
Menu follows the two columns. The thintest test budget rises, with its
reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 7f4a90038099492b00e8be74e283b7d6d3cad086 parent eab9fff
40 files changed, +214 −20
  • .rastrillo/budgets.txt +1 −1
  • docs/mockups/built/2026-11-10/conn-add-chooser-1280.png binary
  • docs/mockups/built/2026-11-10/conn-add-chooser-390.png binary
  • docs/mockups/built/2026-11-10/conn-add-codex-code-1280.png binary
  • docs/mockups/built/2026-11-10/conn-add-codex-code-390.png binary
  • docs/mockups/built/2026-11-10/conn-add-connected-1280.png binary
  • docs/mockups/built/2026-11-10/conn-add-connected-390.png binary
  • docs/mockups/built/2026-11-10/conn-claude-copy-link-1280.png binary
  • docs/mockups/built/2026-11-10/conn-claude-copy-link-390.png binary
  • docs/mockups/built/2026-11-10/conn-codex-copy-link-1280.png binary
  • docs/mockups/built/2026-11-10/conn-codex-copy-link-390.png binary
  • docs/mockups/built/2026-11-10/conn-ended-note-1280.png binary
  • docs/mockups/built/2026-11-10/conn-ended-note-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-bad-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-bad-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-card-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-card-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-chooser-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-chooser-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-connected-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-connected-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-rejected-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-rejected-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-renew-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-renew-390.png binary
  • docs/mockups/built/2026-11-10/conn-token-waiting-1280.png binary
  • docs/mockups/built/2026-11-10/conn-token-waiting-390.png binary
  • docs/mockups/built/2026-11-10/settings-rail-1280.png binary
  • docs/mockups/built/2026-11-10/settings-rail-390.png binary
  • docs/mockups/built/2026-11-10/settings-rail-add-1280.png binary
  • internal/equipo/handlers.go +13 −8
  • internal/equipo/icons/icons.go +1 −0
  • internal/equipo/settings_hub.go +19 −0
  • internal/equipo/static/equipo.css +24 −2
  • internal/equipo/static/nav-stream.js +8 −0
  • internal/equipo/templates/chrome.html +2 −2
  • internal/equipo/templates/settings_nav.html +1 −0
  • internal/headless/browser_conn_add_test.go +1 −1
  • internal/thintest/settings_browser_test.go +60 −6
  • internal/thintest/settings_rail_pages_test.go +84 −0

CI passed — run details

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 4b0ce67b..bb92ff94 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -63,4 +63,4 @@ perf GET /conversation/attachments/{id} skip Composer attachments: the bytes of
perf GET /conversation/attachments/{id}/preview skip Composer attachments: an image thumbnail inside the conversation; a file, not a screen.
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s Mac runners slice B: TestReleaseRunnerHasNoFakeWorker builds the release runner exactly as make release-runner does and the thin package under the testbuild tag (measured 11.9s locally with a warm cache).
-size internal/thintest - 9550 Claude setup tokens add the token and Check again contracts; measured 9444 with the composer and Mac lines merged. The instant thinking line adds its browser drive (instant_browser_test.go, about 230 lines); measured 9064 with the composer and Mac lines merged. Mac runners add the role, scoping, migration, placement, withdrawal, transfer and publication contracts (about 900 test lines) beside the thin v1 contracts; one package keeps one instance harness.
+size internal/thintest - 9750 The Connections Add page and the Settings rail add their page contracts and the rail's browser drive (connections_add_pages_test.go, settings_rail_pages_test.go, about 230 lines); measured 9676. Claude setup tokens add the token and Check again contracts; measured 9444 with the composer and Mac lines merged. The instant thinking line adds its browser drive (instant_browser_test.go, about 230 lines); measured 9064 with the composer and Mac lines merged. Mac runners add the role, scoping, migration, placement, withdrawal, transfer and publication contracts (about 900 test lines) beside the thin v1 contracts; one package keeps one instance harness.
diff --git a/docs/mockups/built/2026-11-10/conn-add-chooser-1280.png b/docs/mockups/built/2026-11-10/conn-add-chooser-1280.png
index 20589fc0..21272af6 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-chooser-1280.png and b/docs/mockups/built/2026-11-10/conn-add-chooser-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-add-chooser-390.png b/docs/mockups/built/2026-11-10/conn-add-chooser-390.png
index dd6a013d..88b3ce1e 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-chooser-390.png and b/docs/mockups/built/2026-11-10/conn-add-chooser-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-add-codex-code-1280.png b/docs/mockups/built/2026-11-10/conn-add-codex-code-1280.png
index 7e77def3..67d17e47 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-codex-code-1280.png and b/docs/mockups/built/2026-11-10/conn-add-codex-code-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-add-codex-code-390.png b/docs/mockups/built/2026-11-10/conn-add-codex-code-390.png
index ef167ddc..11b3985d 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-codex-code-390.png and b/docs/mockups/built/2026-11-10/conn-add-codex-code-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-add-connected-1280.png b/docs/mockups/built/2026-11-10/conn-add-connected-1280.png
index d4646d65..23f5743b 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-connected-1280.png and b/docs/mockups/built/2026-11-10/conn-add-connected-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-add-connected-390.png b/docs/mockups/built/2026-11-10/conn-add-connected-390.png
index 350ad816..68365968 100644
Binary files a/docs/mockups/built/2026-11-10/conn-add-connected-390.png and b/docs/mockups/built/2026-11-10/conn-add-connected-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-claude-copy-link-1280.png b/docs/mockups/built/2026-11-10/conn-claude-copy-link-1280.png
index d161e910..801007a9 100644
Binary files a/docs/mockups/built/2026-11-10/conn-claude-copy-link-1280.png and b/docs/mockups/built/2026-11-10/conn-claude-copy-link-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-claude-copy-link-390.png b/docs/mockups/built/2026-11-10/conn-claude-copy-link-390.png
index 214d93fc..aed490c0 100644
Binary files a/docs/mockups/built/2026-11-10/conn-claude-copy-link-390.png and b/docs/mockups/built/2026-11-10/conn-claude-copy-link-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-codex-copy-link-1280.png b/docs/mockups/built/2026-11-10/conn-codex-copy-link-1280.png
index 9e609d58..154fc42b 100644
Binary files a/docs/mockups/built/2026-11-10/conn-codex-copy-link-1280.png and b/docs/mockups/built/2026-11-10/conn-codex-copy-link-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-codex-copy-link-390.png b/docs/mockups/built/2026-11-10/conn-codex-copy-link-390.png
index 26a18fbf..b85d4984 100644
Binary files a/docs/mockups/built/2026-11-10/conn-codex-copy-link-390.png and b/docs/mockups/built/2026-11-10/conn-codex-copy-link-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-ended-note-1280.png b/docs/mockups/built/2026-11-10/conn-ended-note-1280.png
new file mode 100644
index 00000000..12156572
Binary files /dev/null and b/docs/mockups/built/2026-11-10/conn-ended-note-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-ended-note-390.png b/docs/mockups/built/2026-11-10/conn-ended-note-390.png
new file mode 100644
index 00000000..8c8e11c1
Binary files /dev/null and b/docs/mockups/built/2026-11-10/conn-ended-note-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-bad-1280.png b/docs/mockups/built/2026-11-10/conn-token-bad-1280.png
index 65be9c5e..c5801fb5 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-bad-1280.png and b/docs/mockups/built/2026-11-10/conn-token-bad-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-bad-390.png b/docs/mockups/built/2026-11-10/conn-token-bad-390.png
index 55f09ad1..066ca1ad 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-bad-390.png and b/docs/mockups/built/2026-11-10/conn-token-bad-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-card-1280.png b/docs/mockups/built/2026-11-10/conn-token-card-1280.png
index 4a632c3c..58f9386c 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-card-1280.png and b/docs/mockups/built/2026-11-10/conn-token-card-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-card-390.png b/docs/mockups/built/2026-11-10/conn-token-card-390.png
index 6641bf8e..6a979844 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-card-390.png and b/docs/mockups/built/2026-11-10/conn-token-card-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-chooser-1280.png b/docs/mockups/built/2026-11-10/conn-token-chooser-1280.png
index 68451735..0c3c1761 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-chooser-1280.png and b/docs/mockups/built/2026-11-10/conn-token-chooser-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-chooser-390.png b/docs/mockups/built/2026-11-10/conn-token-chooser-390.png
index 8a54faa2..5dee3246 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-chooser-390.png and b/docs/mockups/built/2026-11-10/conn-token-chooser-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-connected-1280.png b/docs/mockups/built/2026-11-10/conn-token-connected-1280.png
index cf29e293..91ddc526 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-connected-1280.png and b/docs/mockups/built/2026-11-10/conn-token-connected-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-connected-390.png b/docs/mockups/built/2026-11-10/conn-token-connected-390.png
index 51b3cab8..05a7f755 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-connected-390.png and b/docs/mockups/built/2026-11-10/conn-token-connected-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-rejected-1280.png b/docs/mockups/built/2026-11-10/conn-token-rejected-1280.png
index ac45c345..d14579f9 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-rejected-1280.png and b/docs/mockups/built/2026-11-10/conn-token-rejected-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-rejected-390.png b/docs/mockups/built/2026-11-10/conn-token-rejected-390.png
index 0cc9bfaa..f6fe9b94 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-rejected-390.png and b/docs/mockups/built/2026-11-10/conn-token-rejected-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-renew-1280.png b/docs/mockups/built/2026-11-10/conn-token-renew-1280.png
index 07a09b8f..3e1cf3bc 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-renew-1280.png and b/docs/mockups/built/2026-11-10/conn-token-renew-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-renew-390.png b/docs/mockups/built/2026-11-10/conn-token-renew-390.png
index a3aabf31..9baee42b 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-renew-390.png and b/docs/mockups/built/2026-11-10/conn-token-renew-390.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-waiting-1280.png b/docs/mockups/built/2026-11-10/conn-token-waiting-1280.png
index 8a2a3c25..6250461b 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-waiting-1280.png and b/docs/mockups/built/2026-11-10/conn-token-waiting-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/conn-token-waiting-390.png b/docs/mockups/built/2026-11-10/conn-token-waiting-390.png
index 2bf440ba..66aab193 100644
Binary files a/docs/mockups/built/2026-11-10/conn-token-waiting-390.png and b/docs/mockups/built/2026-11-10/conn-token-waiting-390.png differ
diff --git a/docs/mockups/built/2026-11-10/settings-rail-1280.png b/docs/mockups/built/2026-11-10/settings-rail-1280.png
new file mode 100644
index 00000000..d775ceea
Binary files /dev/null and b/docs/mockups/built/2026-11-10/settings-rail-1280.png differ
diff --git a/docs/mockups/built/2026-11-10/settings-rail-390.png b/docs/mockups/built/2026-11-10/settings-rail-390.png
new file mode 100644
index 00000000..c79c2e2e
Binary files /dev/null and b/docs/mockups/built/2026-11-10/settings-rail-390.png differ
diff --git a/docs/mockups/built/2026-11-10/settings-rail-add-1280.png b/docs/mockups/built/2026-11-10/settings-rail-add-1280.png
new file mode 100644
index 00000000..b1929210
Binary files /dev/null and b/docs/mockups/built/2026-11-10/settings-rail-add-1280.png differ
diff --git a/internal/equipo/handlers.go b/internal/equipo/handlers.go
index af75128e..035b2559 100644
--- a/internal/equipo/handlers.go
+++ b/internal/equipo/handlers.go
@@ -54,14 +54,18 @@ type pageData struct {
Thinking thinkingView
Settings settingsHubView
SettingsNav []settingsLink
- Coordinator conversation.CoordinatorPage
- Plan planning.Page
- Rendered RenderedChangeView
- Live live.View
- Topic, CollectionTopic string
- Tasks []TaskViewData
- TaskView TaskViewData
- Work SpecialistWorkView
+ // RailArriving: the person crossed into or out of Settings, so the
+ // rail's nav (the Settings one or the main one) arrives with a calm
+ // slide (settings_hub.go).
+ RailArriving bool
+ Coordinator conversation.CoordinatorPage
+ Plan planning.Page
+ Rendered RenderedChangeView
+ Live live.View
+ Topic, CollectionTopic string
+ Tasks []TaskViewData
+ TaskView TaskViewData
+ Work SpecialistWorkView
library.NavigationView
Rail railView
Connections []ConnectionView
@@ -110,6 +114,7 @@ func (a *application) page(r *http.Request, key string) (pageData, error) {
if ctx, address, ok := sessionContext(r); ok {
data.Rail = a.rail(ctx, address)
}
+ data.RailArriving = crossedSettings(r)
return data, nil
}
func (a *application) failure(w http.ResponseWriter, r *http.Request, err error) {
diff --git a/internal/equipo/icons/icons.go b/internal/equipo/icons/icons.go
index e958bd83..ee91a325 100644
--- a/internal/equipo/icons/icons.go
+++ b/internal/equipo/icons/icons.go
@@ -55,6 +55,7 @@ var icons = map[string]template.HTML{
"cpu": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><rect width="16" height="16" x="4" y="4" rx="2"/><rect width="6" height="6" x="9" y="9" rx="1"/><path d="M15 2v2"/><path d="M15 20v2"/><path d="M2 15h2"/><path d="M2 9h2"/><path d="M20 15h2"/><path d="M20 9h2"/><path d="M9 2v2"/><path d="M9 20v2"/></svg>`,
"more-horizontal": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>`,
"chevron-right": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="m9 18 6-6-6-6"/></svg>`,
+ "chevron-left": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="m15 18-6-6 6-6"/></svg>`,
"copy": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,
"x": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,
"x-circle": `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,
diff --git a/internal/equipo/settings_hub.go b/internal/equipo/settings_hub.go
index 95fa3bee..7cfcc017 100644
--- a/internal/equipo/settings_hub.go
+++ b/internal/equipo/settings_hub.go
@@ -2,6 +2,8 @@ package equipo
import (
"net/http"
+ "net/url"
+ "strings"
)
// Settings (Paul, 2026-11-09: "settings could probably get a submenu on
@@ -15,6 +17,23 @@ import (
//
// Usage is not a section yet: there is no usage view to put there.
+// Paul, 2026-11-10: "The settings nav should probably replace the main
+// nav on this view, right?" On a desktop the rail itself becomes the
+// Settings nav ("‹ Equipo", then the sections), so Settings is two
+// columns; the phone keeps its drill-in. The swap is the same rail with a
+// calm slide of its nav, only when the person crosses into or out of
+// Settings (the Referer says from where), never between sections.
+func crossedSettings(r *http.Request) bool {
+ from, err := url.Parse(r.Referer())
+ if r.Referer() == "" || err != nil || from.Host != r.Host {
+ return false
+ }
+ in := func(p string) bool {
+ return p == "/conversation/settings" || strings.HasPrefix(p, "/conversation/settings/")
+ }
+ return in(from.Path) != in(r.URL.Path)
+}
+
// settingsLink is one entry of the Settings menu.
type settingsLink struct {
Key, Href, CopyKey, Icon string
diff --git a/internal/equipo/static/equipo.css b/internal/equipo/static/equipo.css
index a07d94d3..cf4d90de 100644
--- a/internal/equipo/static/equipo.css
+++ b/internal/equipo/static/equipo.css
@@ -795,13 +795,14 @@ a[equipo-source]:hover { color: var(--rst-text); text-decoration: underline; tex
[equipo-conn-row][data-needs] [equipo-conn-quiet] { display: none; }
[equipo-conn-row][data-needs] [equipo-conn-more] { display: block; order: -1; }
[equipo-conn-add-area] { margin-block-start: var(--rst-sp-3); }
-[equipo-conn-add-foot] { display: flex; align-items: flex-start; gap: var(--rst-sp-3); color: var(--rst-text-faint, var(--rst-text-muted)); font-size: var(--rst-fs-xs); }
+[equipo-conn-add-foot] { display: flex; align-items: flex-start; gap: var(--rst-sp-3); margin-block-start: var(--rst-sp-3); color: var(--rst-text-faint, var(--rst-text-muted)); font-size: var(--rst-fs-xs); }
[equipo-conn-add-foot] > span { padding-block-start: .45rem; }
[equipo-conn-add] { display: inline-flex; align-items: center; gap: .4em; }
[equipo-conn-add] .icon { margin: 0; }
/* Add a connection, its own page (Paul, 2026-11-10): the chooser is the
page's card, its heading the page's. */
[equipo-conn-chooser] > form:first-child [equipo-conn-opt] { border-block-start: 0; }
+[equipo-connections][data-adding] [equipo-conn-page-head] { flex-direction: column; align-items: flex-start; gap: var(--rst-sp-1); }
[equipo-conn-chooser], [equipo-conn-card] { border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-surface); box-shadow: var(--rst-shadow-lift, none); max-inline-size: 34rem; overflow: hidden; animation: equipo-pop-in .25s var(--equipo-ease, ease) both; }
@keyframes equipo-pop-in { from { opacity: 0; transform: translateY(-.3rem) scale(.985); } }
[equipo-conn-chooser] header { padding: var(--rst-sp-3) var(--rst-sp-4) var(--rst-sp-2); }
@@ -1147,8 +1148,29 @@ a[equipo-source]:hover { color: var(--rst-text); text-decoration: underline; tex
[equipo-settings-link] > span { flex: 1; min-inline-size: 0; }
[equipo-settings-link] > .icon:last-child { flex: none; inline-size: 1rem; block-size: 1rem; margin: 0; color: var(--rst-text-faint); }
[equipo-settings-body] { min-inline-size: 0; }
+/* On a desktop the rail itself is the Settings nav (Paul, 2026-11-10):
+ two columns, the main nav waiting behind "‹ Equipo". It arrives with
+ a short slide when the person crosses into Settings, and the main nav
+ slides back when they leave; between sections nothing moves. */
+[equipo-settings-rail] { display: none; }
+[equipo-settings-rail] [equipo-settings-leave] { margin-block-end: var(--rst-sp-2); color: var(--rst-text-muted); font-weight: 500; }
+[equipo-settings-rail] [equipo-settings-leave] .icon { margin-inline-end: var(--rst-sp-1); }
+[equipo-settings-rail] [equipo-nav-group] { margin-block-start: 0; }
+[equipo-settings-rail] [equipo-settings-sub] { padding-inline-start: 1.9rem; font-size: var(--rst-fs-sm); }
+[equipo-settings-rail] [equipo-settings-sub] .icon { inline-size: .9em; block-size: .9em; }
+@keyframes equipo-rail-deeper { from { opacity: 0; transform: translateX(.75rem); } }
+@keyframes equipo-rail-back { from { opacity: 0; transform: translateX(-.75rem); } }
@media (min-width: 800px) {
- [equipo-settings-layout] { grid-template-columns: 13rem minmax(0, 1fr); }
+ [rst-shell-rail]:has([equipo-settings-rail]) > #rail { display: none; }
+ [equipo-settings-rail] { display: flex; }
+ [equipo-settings-layout] > [equipo-settings-nav] { display: none; }
+}
+@media (min-width: 800px) and (prefers-reduced-motion: no-preference) {
+ [equipo-settings-rail][data-arriving] { animation: equipo-rail-deeper .28s var(--equipo-ease, ease) both; }
+ #rail[data-arriving] { animation: equipo-rail-back .28s var(--equipo-ease, ease) both; }
+}
+@media (min-width: 800px) {
+ [equipo-settings-layout] { grid-template-columns: minmax(0, 1fr); }
[equipo-settings-nav] { position: sticky; inset-block-start: var(--rst-sp-4); }
[equipo-settings-link] { min-block-size: 2.25rem; padding: 0 var(--rst-sp-3); border-radius: var(--rst-radius); font-size: var(--rst-fs-sm); }
[equipo-settings-link]:hover { background: var(--rst-tint-hover, var(--rst-surface-2)); }
diff --git a/internal/equipo/static/nav-stream.js b/internal/equipo/static/nav-stream.js
index 0300f8f0..d7e926fc 100644
--- a/internal/equipo/static/nav-stream.js
+++ b/internal/equipo/static/nav-stream.js
@@ -7,6 +7,14 @@
// follow, and elapsed clocks tick here, on every page.
(function () {
"use strict";
+ // Settings' "‹ Equipo" goes back to where the person was before
+ // Settings (the Conversation without scripts, or when there is none).
+ var BEFORE = "equipo.before-settings";
+ try {
+ var leave = document.querySelector("[data-settings-leave]");
+ if (!leave) sessionStorage.setItem(BEFORE, location.pathname + location.search + location.hash);
+ else if (sessionStorage.getItem(BEFORE)) leave.setAttribute("href", sessionStorage.getItem(BEFORE));
+ } catch (e) { /* the Conversation it is */ }
var rail = document.querySelector("[data-nav-stream]");
var KEY = "equipo.spec.open";
function opened() {
diff --git a/internal/equipo/templates/chrome.html b/internal/equipo/templates/chrome.html
index e5b731cd..e4496628 100644
--- a/internal/equipo/templates/chrome.html
+++ b/internal/equipo/templates/chrome.html
@@ -5,8 +5,8 @@
{{define "up-label"}}{{.TeamName}}{{end}}
{{define "brand"}}<a rst-shell-brand href="/work">{{icon "users"}}{{.TeamName}}</a>{{end}}
{{define "nav"}}
-{{template "region:rail" .}}{{end}}
-{{define "region:rail"}}<nav rst-shell-nav id="rail" data-nav-stream data-cursor="{{.Rail.Cursor}}" data-key="{{.Key}}" data-ago-formats="{{agoFormats}}">
+{{template "region:rail" .}}{{if .SettingsNav}}{{template "settings-rail" .}}{{end}}{{end}}
+{{define "region:rail"}}<nav rst-shell-nav id="rail"{{if and .RailArriving (not .SettingsNav)}} data-arriving{{end}} data-nav-stream data-cursor="{{.Rail.Cursor}}" data-key="{{.Key}}" data-ago-formats="{{agoFormats}}">
<div equipo-team-heading>{{template "brand" .}}</div>
{{$key := .Key}}{{$rail := .Rail}}
{{$team := false}}{{range .Nav}}{{if and (eq .Group "team") (not $team)}}{{$team = true}}{{template "rail-specialists" $rail}}<p equipo-nav-group>{{copy "nav.team"}}</p>{{end}}<a id="nav-{{.Key}}" href="{{.Href}}"{{if eq .Key $key}} aria-current="page"{{end}}>{{icon .Icon}}<span>{{copy .CopyKey}}</span>{{if eq .Key "tasks"}}{{template "rail-count" $rail.Tasks}}{{else if eq .Key "projects"}}{{template "rail-count" $rail.Projects}}{{else if eq .Key "needs-you"}}{{template "rail-count-attention" $rail.Needs}}{{end}}</a>
diff --git a/internal/equipo/templates/settings_nav.html b/internal/equipo/templates/settings_nav.html
index a3b922e9..02bae4f3 100644
--- a/internal/equipo/templates/settings_nav.html
+++ b/internal/equipo/templates/settings_nav.html
@@ -1,3 +1,4 @@
{{define "settings-nav"}}<nav equipo-settings-nav aria-label="{{copy "nav.settings"}}"><h2 equipo-settings-nav-title>{{copy "nav.settings"}}</h2><ul role="list">{{range .SettingsNav}}<li><a href="{{.Href}}" equipo-settings-link data-settings-link="{{.Key}}"{{if .Current}} aria-current="page"{{end}}>{{icon .Icon}}<span>{{copy .CopyKey}}</span>{{icon "chevron-right"}}</a></li>{{end}}</ul></nav>{{end}}
{{define "settings-up"}}{{if .Settings.Root}}/work#nav-settings-hub{{else}}/conversation/settings{{end}}{{end}}
{{define "settings-up-label"}}{{if .Settings.Root}}{{.TeamName}}{{else}}{{copy "nav.settings"}}{{end}}{{end}}
+{{define "settings-rail"}}<nav rst-shell-nav equipo-settings-rail{{if .RailArriving}} data-arriving{{end}} aria-label="{{copy "nav.settings"}}"><a href="/conversation" equipo-settings-leave data-settings-leave>{{icon "chevron-left"}}<span>{{copy "brand"}}</span></a><p equipo-nav-group>{{copy "nav.settings"}}</p>{{range .SettingsNav}}<a href="{{.Href}}" data-rail-settings="{{.Key}}"{{if and .Current (not $.Models.Adding)}} aria-current="page"{{end}}>{{icon .Icon}}<span>{{copy .CopyKey}}</span></a>{{if eq .Key "connections"}}<a href="/conversation/settings/connections/add" equipo-settings-sub data-rail-settings="connections-add"{{if $.Models.Adding}} aria-current="page"{{end}}>{{icon "plus"}}<span>{{copy "chat.connections.add"}}</span></a>{{end}}{{end}}</nav>{{end}}
diff --git a/internal/headless/browser_conn_add_test.go b/internal/headless/browser_conn_add_test.go
index d31c5b35..66bf47a1 100644
--- a/internal/headless/browser_conn_add_test.go
+++ b/internal/headless/browser_conn_add_test.go
@@ -42,7 +42,7 @@ func TestBrowserConnectionsAddPage(t *testing.T) {
if width < 600 {
p.check(`(()=>{const back=document.querySelector('[rst-shell-back] a');return back.checkVisibility() && back.getAttribute('href')==='/conversation/settings/connections' && back.textContent.trim()==='Connections' && !document.querySelector('[equipo-settings-nav]').checkVisibility()})()`, "390: no way back to Connections in the bar")
} else {
- p.check(`document.querySelector('[equipo-settings-nav]').checkVisibility()`, "1280: the Settings menu is not beside the page")
+ p.check(`document.querySelector('[equipo-settings-rail]').checkVisibility() && document.querySelector('[equipo-settings-rail] [aria-current="page"]').dataset.railSettings==='connections-add'`, "1280: the rail is not the Settings nav with Add a connection current")
}
p.run(waitLong(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`))
shot("add-chooser")
diff --git a/internal/thintest/settings_browser_test.go b/internal/thintest/settings_browser_test.go
index 186685de..3d87543c 100644
--- a/internal/thintest/settings_browser_test.go
+++ b/internal/thintest/settings_browser_test.go
@@ -100,14 +100,15 @@ func TestBrowserSettingsMenu(t *testing.T) {
// Desktop.
p := openInner(t, r.inst.URL, r.inst.Cookie(), 1280, 900, false, scheme, "no-preference")
p.open("/conversation/settings/thinking")
- p.check(`(()=>{const n=document.querySelector('[equipo-settings-nav]').getBoundingClientRect(),b=document.querySelector('[equipo-settings-body]').getBoundingClientRect(),rail=document.querySelector('[rst-shell-rail]').getBoundingClientRect();return n.width>150&&n.right<=b.left&&Math.abs(n.top-b.top)<40&&rail.width>150&&rail.right<=n.left})()`, scheme+" 1280: the menu is not a second sidebar beside the section")
- p.check(`(()=>{const c=document.querySelector('[equipo-settings-link][aria-current="page"]'),o=document.querySelector('[equipo-settings-link]:not([aria-current])');return c.dataset.settingsLink==='thinking'&&getComputedStyle(c).backgroundColor!==getComputedStyle(o).backgroundColor&&getComputedStyle(c.querySelector('.icon:last-child')).display==='none'})()`, scheme+" 1280: the current section is not marked")
- p.check(`document.querySelector('#rail a[href="/conversation/settings"]').getAttribute('aria-current')==='page'`, scheme+" 1280: the rail does not show Settings")
+ // Two columns (Paul, 2026-11-10): the rail is the Settings nav.
+ p.check(`(()=>{const n=document.querySelector('[equipo-settings-rail]').getBoundingClientRect(),b=document.querySelector('[equipo-settings-body]').getBoundingClientRect();return n.width>150&&n.right<=b.left&&!document.querySelector('#rail').checkVisibility()&&!document.querySelector('[equipo-settings-nav]').checkVisibility()})()`, scheme+" 1280: the rail is not the Settings nav beside the section")
+ p.check(`(()=>{const c=document.querySelector('[equipo-settings-rail] [aria-current="page"]'),o=document.querySelector('[equipo-settings-rail] [data-rail-settings]:not([aria-current])');return c.dataset.railSettings==='thinking'&&getComputedStyle(c).backgroundColor!==getComputedStyle(o).backgroundColor})()`, scheme+" 1280: the current section is not marked")
+ p.check(`document.querySelector('[data-settings-leave]').checkVisibility()`, scheme+" 1280: no way back to Equipo")
p.wait(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`, "the slide settled")
p.shot("settings-menu-1280-" + scheme)
- p.click(`[data-settings-link="housekeeping"]`)
- p.wait(`location.pathname==='/conversation/settings/housekeeping' && document.querySelector('[equipo-settings-link][aria-current="page"]').dataset.settingsLink==='housekeeping' && !!document.querySelector('[data-hk-settings]')`, "Housekeeping from the menu")
- p.click(`[data-settings-link="connections"]`)
+ p.click(`[data-rail-settings="housekeeping"]`)
+ p.wait(`location.pathname==='/conversation/settings/housekeeping' && document.querySelector('[equipo-settings-rail] [aria-current="page"]').dataset.railSettings==='housekeeping' && !!document.querySelector('[data-hk-settings]')`, "Housekeeping from the menu")
+ p.click(`[data-rail-settings="connections"]`)
p.wait(`location.pathname==='/conversation/settings/connections' && !!document.querySelector('[equipo-settings-layout] [data-connections]')`, "Connections from the menu")
p.wait(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`, "the slide settled")
p.shot("settings-connections-1280-" + scheme)
@@ -132,3 +133,56 @@ func TestBrowserSettingsMenu(t *testing.T) {
q.stop()
}
}
+
+// TestBrowserSettingsRail: Paul, 2026-11-10: "The settings nav should
+// probably replace the main nav on this view, right?" At 1280 Settings
+// is two columns: the rail itself turns into the Settings nav ("‹
+// Equipo", the sections, Add a connection under Connections) with a
+// short slide as the person crosses in, and none between sections; "‹
+// Equipo" goes back to where they were, the main nav sliding back. The
+// rail does not move or resize. Under reduced motion nothing slides. At
+// 390 the drill-in stays: no Settings nav in the rail, the way back to
+// Settings in the bar.
+func TestBrowserSettingsRail(t *testing.T) {
+ r := newToolRig(t)
+ const settled = `document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`
+ const sliding = `(n=>!!n && n.hasAttribute('data-arriving') && n.getAnimations().length>0)`
+ p := openInner(t, r.inst.URL, r.inst.Cookie(), 1280, 900, false, "light", "no-preference")
+ p.open("/tasks")
+ p.check(`(()=>{sessionStorage.setItem('rail',JSON.stringify(document.querySelector('[rst-shell-rail]').getBoundingClientRect()));return document.querySelector('#rail').checkVisibility() && !document.querySelector('[equipo-settings-rail]')})()`, "1280: the main nav is not the rail outside Settings")
+ p.click(`#rail a[href="/conversation/settings"]`)
+ p.wait(`location.pathname==='/conversation/settings' && `+sliding+`(document.querySelector('[equipo-settings-rail]'))`, "the Settings nav slides in")
+ p.check(`(()=>{const was=JSON.parse(sessionStorage.getItem('rail')),now=document.querySelector('[rst-shell-rail]').getBoundingClientRect();const n=document.querySelector('[equipo-settings-rail]');const links=[...n.querySelectorAll('a')].map(a=>a.dataset.railSettings||'leave');return Math.abs(was.left-now.left)<1&&Math.abs(was.width-now.width)<1&&!document.querySelector('#rail').checkVisibility()&&links.join()==='leave,thinking,connections,connections-add,housekeeping,notebook,teams'&&n.querySelector('[data-settings-leave]').textContent.trim()==='Equipo'&&n.querySelector('[data-settings-leave]').getAttribute('href')==='/tasks'})()`, "1280: the rail moved, or is not ‹ Equipo and the sections, or ‹ Equipo does not lead back to Tasks")
+ p.check(`(()=>{const n=document.querySelector('[equipo-settings-rail]').getBoundingClientRect(),b=document.querySelector('[equipo-settings-body]').getBoundingClientRect();return n.right<=b.left&&b.left-n.right<120&&!document.querySelector('[equipo-settings-nav]').checkVisibility()})()`, "1280: Settings is not two columns")
+ p.wait(settled, "the slide settled")
+ p.shot("settings-rail-1280")
+ // Between sections nothing slides.
+ p.click(`[data-rail-settings="connections-add"]`)
+ p.wait(`location.pathname==='/conversation/settings/connections/add'`, "Add a connection from the rail")
+ p.check(`!document.querySelector('[data-arriving]') && document.querySelector('[equipo-settings-rail] [aria-current="page"]').dataset.railSettings==='connections-add'`, "1280: moving between sections slid, or Add a connection is not current")
+ p.shot("settings-rail-add-1280")
+ // ‹ Equipo: back to Tasks, the main nav sliding back.
+ p.click(`[data-settings-leave]`)
+ p.wait(`location.pathname==='/tasks' && `+sliding+`(document.querySelector('#rail'))`, "the main nav slides back")
+ p.stop()
+
+ // Reduced motion: the same swap, nothing slides.
+ q := openInner(t, r.inst.URL, r.inst.Cookie(), 1280, 900, false, "light", "reduce")
+ q.open("/conversation")
+ q.click(`#rail a[href="/conversation/settings"]`)
+ q.wait(`location.pathname==='/conversation/settings' && document.querySelector('[equipo-settings-rail]').checkVisibility()`, "Settings")
+ q.check(`document.querySelector('[equipo-settings-rail]').getAnimations().length===0 && document.querySelector('[data-settings-leave]').getAttribute('href')==='/conversation'`, "1280 reduced motion: the rail slid, or ‹ Equipo does not lead back")
+ q.stop()
+
+ // The phone keeps its drill-in.
+ m := openInner(t, r.inst.URL, r.inst.Cookie(), 390, 844, true, "light", "no-preference")
+ for _, path := range []string{"/conversation/settings", "/conversation/settings/connections", "/conversation/settings/connections/add"} {
+ m.open(path)
+ m.check(`!document.querySelector('[equipo-settings-rail]').checkVisibility() && document.documentElement.scrollWidth<=390`, "390: the Settings nav shows in the rail at "+path)
+ }
+ m.open("/conversation/settings")
+ m.check(`document.querySelector('[equipo-settings-nav]').checkVisibility()`, "390: the Settings menu is not the page")
+ m.wait(settled, "the slide settled")
+ m.shot("settings-rail-390")
+ m.stop()
+}
diff --git a/internal/thintest/settings_rail_pages_test.go b/internal/thintest/settings_rail_pages_test.go
new file mode 100644
index 00000000..eee89860
--- /dev/null
+++ b/internal/thintest/settings_rail_pages_test.go
@@ -0,0 +1,84 @@
+package thintest
+
+import (
+ "io"
+ "net/http"
+ "strings"
+ "testing"
+)
+
+// TestPagesSettingsRail: Paul, 2026-11-10: "The settings nav should
+// probably replace the main nav on this view, right?" Every Settings page
+// carries the Settings nav in the rail itself: "‹ Equipo" first (to the
+// Conversation without scripts), then the sections, Add a connection
+// under Connections, the current one marked. The rail marks its nav as
+// arriving only when the person crossed into or out of Settings.
+func TestPagesSettingsRail(t *testing.T) {
+ r := &toolRig{rig: newRig(t)}
+ owner := r.inst.Cookie()
+ get := func(path, referer string) string {
+ t.Helper()
+ req, _ := http.NewRequest("GET", r.inst.URL+path, nil)
+ req.AddCookie(owner)
+ if referer != "" {
+ req.Header.Set("Referer", r.inst.URL+referer)
+ }
+ res, err := http.DefaultClient.Do(req)
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer res.Body.Close()
+ raw, _ := io.ReadAll(res.Body)
+ if res.StatusCode != 200 {
+ t.Fatalf("GET %s: %d", path, res.StatusCode)
+ }
+ return string(raw)
+ }
+ rail := func(page string) string {
+ _, after, ok := strings.Cut(page, "<nav rst-shell-nav equipo-settings-rail")
+ if !ok {
+ return ""
+ }
+ nav, _, _ := strings.Cut(after, "</nav>")
+ return nav
+ }
+ for path, current := range map[string]string{
+ "/conversation/settings/thinking": "thinking",
+ "/conversation/settings/connections": "connections",
+ "/conversation/settings/connections/add": "connections-add",
+ "/conversation/settings/housekeeping": "housekeeping",
+ "/conversation/settings/notebook": "notebook",
+ } {
+ nav := rail(get(path, ""))
+ if nav == "" {
+ t.Fatalf("%s: no Settings nav in the rail", path)
+ }
+ for _, want := range []string{`<a href="/conversation" equipo-settings-leave data-settings-leave>`, ">Equipo</span>", `data-rail-settings="thinking"`, `data-rail-settings="connections"`, `href="/conversation/settings/connections/add" equipo-settings-sub data-rail-settings="connections-add"`, `data-rail-settings="housekeeping"`, `data-rail-settings="notebook"`, `data-rail-settings="teams"`} {
+ if !strings.Contains(nav, want) {
+ t.Fatalf("%s: the rail's Settings nav lacks %s", path, want)
+ }
+ }
+ if strings.Count(nav, `aria-current="page"`) != 1 || !strings.Contains(nav, `data-rail-settings="`+current+`" aria-current="page"`) {
+ t.Fatalf("%s: %s is not the one current entry", path, current)
+ }
+ if strings.Index(nav, "data-settings-leave") > strings.Index(nav, "data-rail-settings") {
+ t.Fatalf("%s: Equipo is not first", path)
+ }
+ }
+ if rail(get("/conversation", "")) != "" {
+ t.Fatal("the Settings nav is in the rail outside Settings")
+ }
+ // Arriving: only across the boundary, and only the nav that is new.
+ if !strings.Contains(get("/conversation/settings/thinking", "/conversation"), "equipo-settings-rail data-arriving") {
+ t.Fatal("entering Settings does not mark its nav arriving")
+ }
+ if strings.Contains(get("/conversation/settings/connections", "/conversation/settings/thinking"), "data-arriving") {
+ t.Fatal("moving between sections marks a nav arriving")
+ }
+ if !strings.Contains(get("/conversation", "/conversation/settings/thinking"), `id="rail" data-arriving`) {
+ t.Fatal("leaving Settings does not mark the main nav arriving")
+ }
+ if strings.Contains(get("/tasks", "/conversation"), "data-arriving") {
+ t.Fatal("an ordinary page marks its nav arriving")
+ }
+}