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>
2 files changed,
+12
−3
internal/sheets/home_native_test.go+7 −0internal/sheets/templates/home_link.html+5 −3
CI passed — run details
CI log
amadan: .amadan/timeout: this job's budget is 15m0s (this runner allows up to 30m0s) === vet === CGO_ENABLED=0 go vet ./... CGO_ENABLED=0 go vet -tags browser ./internal/sheets/ === fmt === === build === CGO_ENABLED=0 go build ./... === migrations === go tool rastrillo migration check rastrillo migration check: models and migrations agree === go-test === CGO_ENABLED=0 go test -count=1 ./... ? amadan.net/oficina/sheets/cmd/sheets [no test files] ? amadan.net/oficina/sheets/cmd/sheets-contract [no test files] ok amadan.net/oficina/sheets/internal/guardstest 0.157s ok amadan.net/oficina/sheets/internal/sheets 15.107s ok amadan.net/oficina/sheets/internal/sheets/calc 0.013s ok amadan.net/oficina/sheets/internal/sheets/format 0.003s ? amadan.net/oficina/sheets/internal/sheets/keymailtest [no test files] ok amadan.net/oficina/sheets/internal/sheets/live 0.055s ok amadan.net/oficina/sheets/internal/sheets/seal 0.002s ok amadan.net/oficina/sheets/internal/sheets/sealtest 0.002s ok amadan.net/oficina/sheets/internal/sheets/store 6.024s ok amadan.net/oficina/sheets/internal/sheets/teamstate 0.108s ok amadan.net/oficina/sheets/internal/sheets/xlsx 4.724s ? amadan.net/oficina/sheets/tools/gencorpus [no test files] === race === go test -race -count=1 ./internal/sheets/store/... ./internal/sheets/live/... ok amadan.net/oficina/sheets/internal/sheets/store 71.496s ok amadan.net/oficina/sheets/internal/sheets/live 1.065s
diff --git a/internal/sheets/home_native_test.go b/internal/sheets/home_native_test.go| index 4ce3831..1d47c64 100644 |
| --- a/internal/sheets/home_native_test.go |
| +++ b/internal/sheets/home_native_test.go |
| @@ -231,6 +231,13 @@ func TestTeamMemberChoicePage(t *testing.T) { |
| t.Fatalf("choose page lacks %q: %s", want, body) |
| } |
| } |
| + // "I'm new here" leads; connecting an existing account is the |
| + // secondary choice (Paul's ruling, 2026-11-19). Emphasis only. |
| + 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: %s", body) |
| + } |
| if connected := f.choose(t, "connect"); connected.Code != http.StatusSeeOther || !strings.HasPrefix(connected.Header().Get("Location"), "/signin/local") { |
| t.Fatalf("connect = %d %q", connected.Code, connected.Header().Get("Location")) |
| } |
diff --git a/internal/sheets/templates/home_link.html b/internal/sheets/templates/home_link.html| index 7f3cc4b..23c7e5b 100644 |
| --- a/internal/sheets/templates/home_link.html |
| +++ b/internal/sheets/templates/home_link.html |
| @@ -3,9 +3,11 @@ |
| <div rst-box> |
| <p>{{.Body}}</p> |
| {{- /* The member choice (Home spec 2026-11-14-oficina-id-native.md §8): |
| - two POSTs carrying the proof's form token, neither the default. */}} |
| + two POSTs carrying the proof's form token, neither the default. |
| + "I'm new here" leads; connecting an existing account is the |
| + secondary choice (Paul's ruling, 2026-11-19). */}} |
| <div rst-form-foot> |
| - <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></div> |
| + <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></div> |
| </div> |
| {{else}}{{template "home-connect" .PageData}}{{end}}{{end}}{{end}} |