oficina / docs Public

Lead the first-time choice with "I'm new here"

Paul's ruling (2026-11-19), option B: on the member choice page, "I'm
new here — continue with Oficina ID" is the primary button and comes
first; "Connect my existing account" follows as the secondary (ghost)
choice. Layout and emphasis only: no words added or changed. The test
asserts the order and emphasis.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 8de057d07888e8052a5e95475a70c4e5530b7f36 parent 7de2d40
2 files changed, +13 −3
  • internal/docs/team_router_test.go +8 −0
  • internal/docs/views/home_link.html +5 −3

CI passed — run details

diff --git a/internal/docs/team_router_test.go b/internal/docs/team_router_test.go
index 7a47f60..9b4da31 100644
--- a/internal/docs/team_router_test.go
+++ b/internal/docs/team_router_test.go
@@ -188,6 +188,14 @@ func (b *routerBrowser) choosePage(t *testing.T, finish *httptest.ResponseRecord
t.Fatalf("choose page=%d lacks %s\n%s", page.Code, want, body)
}
}
+ // "I'm new here" leads and "Connect my existing account" follows as
+ // the secondary choice (Paul's ruling, 2026-11-19): layout and
+ // emphasis only, the words unchanged.
+ lead := strings.Index(body, `rst-btn="primary" type="submit" name="choice" value="new"`)
+ second := strings.Index(body, `rst-btn="ghost" type="submit" name="choice" value="connect"`)
+ if lead < 0 || second < 0 || lead > second {
+ t.Fatalf("choose page does not lead with I'm new here\n%s", body)
+ }
m := chooseToken.FindStringSubmatch(body)
if m == nil {
t.Fatal("choose page carries no form token")
diff --git a/internal/docs/views/home_link.html b/internal/docs/views/home_link.html
index 2e4bf38..f484bd9 100644
--- a/internal/docs/views/home_link.html
+++ b/internal/docs/views/home_link.html
@@ -9,9 +9,11 @@
as estilo's homeconnect lays out the same screens for the other apps. */}}
<div rst-form-foot>
{{- if .Choice}}
- {{- /* The member choice: two POSTs carrying the proof's form token. */}}
- <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="primary" type="submit" name="choice" value="connect">{{.Choice.ConnectLabel}}</button></form>
- <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="ghost" type="submit" name="choice" value="new">{{.Choice.NewLabel}}</button></form>
+ {{- /* The member choice: two POSTs carrying the proof's form token.
+ "I'm new here" leads; connecting an existing account is the
+ secondary choice (Paul's ruling, 2026-11-19). */}}
+ <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="primary" type="submit" name="choice" value="new">{{.Choice.NewLabel}}</button></form>
+ <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="ghost" type="submit" name="choice" value="connect">{{.Choice.ConnectLabel}}</button></form>
{{- else if .PostAction}}<form method="post" action="{{.Action}}"><button rst-btn="primary" type="submit">{{.ActionLabel}}</button></form>
{{- else}}<a rst-btn="primary" href="{{.Action}}">{{.ActionLabel}}</a>{{end}}
{{- if .CancelLabel}}<a rst-btn="ghost" href="/">{{.CancelLabel}}</a>{{end}}</div>