id.*: the door's buttons are pills (Paul, 2026-11-21)
Every card at the door draws its buttons as the one-way door does: the main action a full-width pill, a secondary control a quiet text button (Paul, 2026-11-21, "yes to pill buttons"). estilo draws them from its own hooks, so each button on a door or hop page carries estilo-signin-action: bare for the main action, "danger" for Sign out all devices, Replace all passkeys and Generate a new set, "quiet" for Not now, Try again and Send email again (now ghost buttons). The lone links are the card's main action in their templates, not by CSS guessing: "Back to Oficina" (could not finish signing in), "Start again" (that link did not work), and Recovery codes' Continue. TestDoorButtonsCarryTheDoorsHooks holds every rst-btn on a door or hop page to its hook and variant. Tab titles are unchanged. estilo is pinned to feat/door-pills (716e200) for review; re-pin to estilo main once that lands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 files changed,
+123
−40
go.mod+1 −1go.sum+2 −4internal/home/door_copy_test.go+1 −1internal/home/door_pills_test.go+79 −0internal/home/door_test.go+2 −2internal/home/handoff_reveal_test.go+1 −1internal/home/id_exchange_test.go+1 −1internal/home/shared_chrome_test.go+9 −3internal/home/signout_test.go+1 −1internal/home/templates/assertion.html+1 −1internal/home/templates/directory_signed_out.html+3 −3internal/home/templates/directory_signout_all_failed.html+1 −1internal/home/templates/handoff_failed.html+1 −1internal/home/templates/id_error.html+2 −2internal/home/templates/id_forget.html+2 −2internal/home/templates/id_replace.html+1 −1internal/home/templates/id_replaced.html+2 −2internal/home/templates/id_signed_out.html+1 −1internal/home/templates/id_signout_all.html+1 −1internal/home/templates/id_signout_all_hop.html+1 −1internal/home/templates/operator_confirm_id.html+1 −1internal/home/templates/passkey_confirm.html+2 −2internal/home/templates/passkey_enrol.html+1 −1internal/home/templates/recovery_codes.html+2 −2internal/home/templates/resolve_handoff.html+1 −1internal/home/templates/signin_confirm.html+1 −1internal/home/templates/signin_failed.html+1 −1internal/home/templates/signout_confirm.html+1 −1
CI passed — run details
CI log
amadan: .amadan/timeout: this job's budget is 20m0s (this runner allows up to 30m0s) === vet === CGO_ENABLED=0 go vet ./... CGO_ENABLED=0 go vet -tags browser ./internal/home/ cd handoff && CGO_ENABLED=0 go vet ./... cd roster && CGO_ENABLED=0 go vet ./... cd dashboard && CGO_ENABLED=0 go vet ./... cd connect && CGO_ENABLED=0 go vet ./... cd teammode && CGO_ENABLED=0 go vet ./... === fmt === === build === CGO_ENABLED=0 go build ./... CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina ./internal/operatorlaunch cd handoff && CGO_ENABLED=0 go build ./... cd roster && CGO_ENABLED=0 go build ./... cd dashboard && CGO_ENABLED=0 go build ./... cd connect && CGO_ENABLED=0 go build ./... cd teammode && CGO_ENABLED=0 go build ./... === go-test === CGO_ENABLED=0 go test -count=1 ./... ? amadan.net/oficina/home/cmd/home [no test files] ok amadan.net/oficina/home/cmd/home-placeholder 1.073s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.315s ok amadan.net/oficina/home/internal/home 56.780s ok amadan.net/oficina/home/internal/home/directorydata 1.398s ok amadan.net/oficina/home/internal/home/logtest 0.003s ok amadan.net/oficina/home/internal/home/seal 0.002s ok amadan.net/oficina/home/internal/home/sealtest 0.003s ok amadan.net/oficina/home/internal/home/wisp 0.046s ok amadan.net/oficina/home/internal/operator 6.475s ok amadan.net/oficina/home/internal/operatorlaunch 4.119s ok amadan.net/oficina/home/internal/provisioner 48.955s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.678s ok amadan.net/oficina/home/handoff/seal 0.002s cd roster && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/roster 5.124s cd dashboard && CGO_ENABLED=0 go test ./... ok amadan.net/oficina/home/dashboard 0.011s cd connect && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/connect 1.424s ok amadan.net/oficina/home/connect/linkstore 0.445s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.104s ? amadan.net/oficina/home/teammode/teammodetest [no test files] === race === go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/ ok amadan.net/oficina/home/internal/home 344.152s ok amadan.net/oficina/home/internal/operator 82.925s ok amadan.net/oficina/home/internal/operatorlaunch 22.402s ok amadan.net/oficina/home/internal/home/directorydata 23.752s ok amadan.net/oficina/home/internal/provisioner 400.922s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.878s ok amadan.net/oficina/home/handoff/seal 1.015s cd roster && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/roster 6.964s cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/dashboard 1.064s cd connect && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/connect 6.294s ok amadan.net/oficina/home/connect/linkstore 6.458s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.956s ? amadan.net/oficina/home/teammode/teammodetest [no test files]
Intent
diff --git a/go.mod b/go.mod| index c610c67..886e114 100644 |
| --- a/go.mod |
| +++ b/go.mod |
| @@ -5,7 +5,7 @@ go 1.26.0 |
| toolchain go1.26.5 |
| require ( |
| - amadan.net/oficina/estilo.git v0.0.0-20261120104604-487cadb03b88 |
| + amadan.net/oficina/estilo.git v0.0.0-20261121223221-716e200fcf01 |
| amadan.net/oficina/home/dashboard v0.0.0-20261024234842-3774eb68f816 |
| amadan.net/oficina/home/handoff v0.0.0-20261120140933-17cdcaff3345 |
| amadan.net/oficina/home/roster v0.0.0-20261028165624-d942439ac4e4 |
diff --git a/go.sum b/go.sum| index 252c26d..bda6524 100644 |
| --- a/go.sum |
| +++ b/go.sum |
| @@ -1,11 +1,9 @@ |
| amadan.net/carlos/platform.git/launchctx v0.0.0-20260911135504-fb577f96f7d1 h1:RxwIRojWcVtwSdNAjtdz7y1bxHLh3GUgqT1TrXVKpyM= |
| amadan.net/carlos/platform.git/launchctx v0.0.0-20260911135504-fb577f96f7d1/go.mod h1:6fBmMWgtESLFXZURzu/HyRXM0vyLuo4+XGGdKuZ+wao= |
| -amadan.net/oficina/estilo.git v0.0.0-20261120104604-487cadb03b88 h1:wqpT3PmQQajULdOhtjJ/yENvdVB/NFG0QM7jlaEPS8s= |
| -amadan.net/oficina/estilo.git v0.0.0-20261120104604-487cadb03b88/go.mod h1:2UFIFrbTrhew8EFM0C94WmTo2OASM2pHEgT4jzeE/s8= |
| +amadan.net/oficina/estilo.git v0.0.0-20261121223221-716e200fcf01 h1:Ig5kyhUVoZy3GWIpNCz/XJDZoU7Wm8BxxxC2DowAhE0= |
| +amadan.net/oficina/estilo.git v0.0.0-20261121223221-716e200fcf01/go.mod h1:2UFIFrbTrhew8EFM0C94WmTo2OASM2pHEgT4jzeE/s8= |
| amadan.net/oficina/home/dashboard v0.0.0-20261024234842-3774eb68f816 h1:AFDuOio0MxNxN9ZWVc3lul1QHkNjNUCO56kXpe/Fw3I= |
| amadan.net/oficina/home/dashboard v0.0.0-20261024234842-3774eb68f816/go.mod h1:+7xsX+QyVFrKy5gDAGh+FZ5+75z4CibWTL0wl9DWAw0= |
| -amadan.net/oficina/home/handoff v0.0.0-20261114110939-e03a01a1881c h1:KxjjyIlEu3hY1G6l26IrI2PRcogOscpTeydRgNzimbA= |
| -amadan.net/oficina/home/handoff v0.0.0-20261114110939-e03a01a1881c/go.mod h1:YISpzFJ+iMgrM0rUL032OSzsAQbP4/nozvXLCCOcn1k= |
| amadan.net/oficina/home/handoff v0.0.0-20261120140933-17cdcaff3345 h1:3fR/a8Mqiwsnhv7Cu6FFzVHVtdqRTxyl1EpXeL6IaV0= |
| amadan.net/oficina/home/handoff v0.0.0-20261120140933-17cdcaff3345/go.mod h1:Mn5Rsm7Vcd6VZArBKMawza2yO+Fjo8KB1Ii6UcjcJHQ= |
| amadan.net/oficina/home/roster v0.0.0-20261028165624-d942439ac4e4 h1:jg3sS7hy8Qaewrv/7CZ4kjIYE62FaIG4KMlfNs918dY= |
diff --git a/internal/home/door_copy_test.go b/internal/home/door_copy_test.go| index 41e298a..ca55907 100644 |
| --- a/internal/home/door_copy_test.go |
| +++ b/internal/home/door_copy_test.go |
| @@ -83,7 +83,7 @@ func TestDoorSpeaksTheSuiteCopy(t *testing.T) { |
| "<title>Signed out · Oficina</title>", |
| "<h1>You’re signed out</h1>", |
| "You are signed out of the directory in this browser.", |
| - `rst-btn="primary">Sign in</a>`) |
| + `rst-btn="primary" estilo-signin-action>Sign in</a>`) |
| mustNotContain(t, "/signed-out", out.Body.String(), "You’ve signed out of Oficina on this device.", "Home") |
| } |
diff --git a/internal/home/door_pills_test.go b/internal/home/door_pills_test.go| new file mode 100644 |
| index 0000000..bb973c7 |
| --- /dev/null |
| +++ b/internal/home/door_pills_test.go |
| @@ -0,0 +1,79 @@ |
| +package home |
| + |
| +import ( |
| + "os" |
| + "path/filepath" |
| + "regexp" |
| + "slices" |
| + "strings" |
| + "testing" |
| +) |
| + |
| +// Every card at the door draws its buttons as the door does (Paul, |
| +// 2026-11-21, "yes to pill buttons"): the main action a full-width pill, |
| +// a secondary control a quiet text button. estilo's chrome.css draws them |
| +// from its own hooks, never from rst-btn (estilo AGENTS.md, Vocabulary), |
| +// so every button on a door or hop page must carry estilo-signin-action, |
| +// with the variant that matches its rst-btn: "danger" for a danger |
| +// button, "quiet" for a ghost one. A button in a door sign-in form |
| +// (estilo-signin-form) or Forget (estilo-signin-forget) is reached by |
| +// those hooks instead. A card whose one way forward is a link draws it as |
| +// a primary button in its template; the CSS never guesses. |
| +func TestDoorButtonsCarryTheDoorsHooks(t *testing.T) { |
| + btn := regexp.MustCompile(`<(a|button)\b[^>]*\brst-btn\b[^>]*>`) |
| + variant := regexp.MustCompile(`\brst-btn(?:="([^"]*)")?`) |
| + action := regexp.MustCompile(`\bestilo-signin-action(?:="([^"]*)")?`) |
| + pages := map[string]bool{} |
| + for name := range doorPages { |
| + pages[name] = true |
| + } |
| + for name := range hopPages { |
| + pages[name] = true |
| + } |
| + n := 0 |
| + for name := range pages { |
| + src, err := os.ReadFile(filepath.Join("templates", name)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + page := string(src) |
| + hooked := strings.Contains(page, "estilo-signin-form") || strings.Contains(page, "estilo-signin-forget") |
| + for _, tag := range btn.FindAllString(page, -1) { |
| + n++ |
| + v := strings.Fields(variant.FindStringSubmatch(tag)[1]) |
| + m := action.FindStringSubmatch(tag) |
| + if m == nil { |
| + if !hooked { |
| + t.Errorf("%s: %s has no estilo-signin-action, so the door draws it as rastrillo's plain button", name, tag) |
| + } |
| + continue |
| + } |
| + want := "" |
| + switch { |
| + case slices.Contains(v, "danger"): |
| + want = "danger" |
| + case slices.Contains(v, "ghost"): |
| + want = "quiet" |
| + } |
| + if m[1] != want { |
| + t.Errorf("%s: %s is estilo-signin-action=%q, want %q", name, tag, m[1], want) |
| + } |
| + } |
| + } |
| + if n == 0 { |
| + t.Fatal("found no buttons on the door's pages") |
| + } |
| + // The lone links Paul's ruling names are the card's main action. |
| + for name, want := range map[string]string{ |
| + "handoff_failed.html": `<a rst-btn="primary" estilo-signin-action href="{{.Data.HomeURL}}">Back to Oficina</a>`, |
| + "signin_failed.html": `<a rst-btn="primary" estilo-signin-action href="{{.Data.Again}}">Start again</a>`, |
| + } { |
| + src, err := os.ReadFile(filepath.Join("templates", name)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if !strings.Contains(string(src), want) { |
| + t.Errorf("%s lacks %s", name, want) |
| + } |
| + } |
| +} |
diff --git a/internal/home/door_test.go b/internal/home/door_test.go| index e97efac..27c86aa 100644 |
| --- a/internal/home/door_test.go |
| +++ b/internal/home/door_test.go |
| @@ -530,7 +530,7 @@ func TestDoorForgetChain(t *testing.T) { |
| const back = "https://blue.docs.oficina.works/signed-out" |
| page := exchangeRequest(app.App, "GET", Origin+forgetChainPath+"?return="+url.QueryEscape(back), "", nil, link) |
| body := page.Body.String() |
| - for _, want := range []string{`<form method="post" action="/forget"`, `<input type="hidden" name="return" value="` + back + `">`, ">Forget me on Oficina ID too</button>", `<a href="` + back + `">Not now</a>`} { |
| + for _, want := range []string{`<form method="post" action="/forget"`, `<input type="hidden" name="return" value="` + back + `">`, ">Forget me on Oficina ID too</button>", `<a rst-btn="ghost" estilo-signin-action="quiet" href="` + back + `">Not now</a>`} { |
| if !strings.Contains(body, want) { |
| t.Errorf("confirm page missing %q", want) |
| } |
| @@ -552,7 +552,7 @@ func TestDoorForgetChain(t *testing.T) { |
| "https://blue.docs.oficina.works/%73igned-out", "/signed-out", "javascript:alert(1)", |
| } { |
| page := exchangeRequest(app.App, "GET", Origin+forgetChainPath+"?return="+url.QueryEscape(bad), "", nil) |
| - if !strings.Contains(page.Body.String(), `<a href="/signed-out">Not now</a>`) || strings.Contains(page.Body.String(), `name="return"`) || |
| + if !strings.Contains(page.Body.String(), `<a rst-btn="ghost" estilo-signin-action="quiet" href="/signed-out">Not now</a>`) || strings.Contains(page.Body.String(), `name="return"`) || |
| strings.Contains(page.Header().Get("Content-Security-Policy"), "blue.docs") { |
| t.Errorf("GET %q was trusted", bad) |
| } |
diff --git a/internal/home/handoff_reveal_test.go b/internal/home/handoff_reveal_test.go| index 4840566..e85d6b2 100644 |
| --- a/internal/home/handoff_reveal_test.go |
| +++ b/internal/home/handoff_reveal_test.go |
| @@ -81,7 +81,7 @@ func TestHandoffInterstitialStaysHiddenWhileItAutoSubmits(t *testing.T) { |
| t.Fatalf("the hidden card has no brand at its head:\n%s", main) |
| } |
| inner := main[start:strings.Index(main, "</section>")] |
| - if !strings.Contains(inner, `data-assertion-handoff`) || !strings.Contains(inner, `<button type="submit" rst-btn="primary">Continue</button>`) { |
| + if !strings.Contains(inner, `data-assertion-handoff`) || !strings.Contains(inner, `<button type="submit" rst-btn="primary" estilo-signin-action>Continue</button>`) { |
| t.Fatalf("hand-off form changed:\n%s", inner) |
| } |
| } |
diff --git a/internal/home/id_exchange_test.go b/internal/home/id_exchange_test.go| index 83f99b4..d1cf611 100644 |
| --- a/internal/home/id_exchange_test.go |
| +++ b/internal/home/id_exchange_test.go |
| @@ -53,7 +53,7 @@ func TestIDStraightIn(t *testing.T) { |
| t.Fatal("the Continue page is still drawn") |
| } |
| // The delivery is the hop: auto-submit, with Continue for script-off. |
| - for _, want := range []string{`action="` + directoryOrigin + handoff.CallbackPath + `"`, `data-assertion-handoff`, `<button type="submit" rst-btn="primary">Continue</button>`, versioned("/static/assertion.js")} { |
| + for _, want := range []string{`action="` + directoryOrigin + handoff.CallbackPath + `"`, `data-assertion-handoff`, `<button type="submit" rst-btn="primary" estilo-signin-action>Continue</button>`, versioned("/static/assertion.js")} { |
| if !strings.Contains(body, want) { |
| t.Fatalf("delivery lacks %q", want) |
| } |
diff --git a/internal/home/shared_chrome_test.go b/internal/home/shared_chrome_test.go| index 712c3ca..301b0f7 100644 |
| --- a/internal/home/shared_chrome_test.go |
| +++ b/internal/home/shared_chrome_test.go |
| @@ -260,10 +260,16 @@ func TestServerErrorKeepsTheWayHome(t *testing.T) { |
| if rec.Code != http.StatusInternalServerError { |
| t.Fatalf("status %d", rec.Code) |
| } |
| - if !strings.Contains(body, `<a rst-btn="primary" href="`+c.home+`">Go to Oficina</a>`) { |
| + // id.* draws the error in the door's card (id_error.html), so its |
| + // way home is the card's main action and Try again a quiet one. |
| + primary, secondary := `<a rst-btn="primary" href="`, `<a rst-btn href="` |
| + if c.app == f.p.credential.App { |
| + primary, secondary = `<a rst-btn="primary" estilo-signin-action href="`, `<a rst-btn="ghost" estilo-signin-action="quiet" href="` |
| + } |
| + if !strings.Contains(body, primary+c.home+`">Go to Oficina</a>`) { |
| t.Errorf("no Go to Oficina link to %s: %s", c.home, errorCTA(body)) |
| } |
| - again := `<a rst-btn href="` + strings.TrimPrefix(strings.TrimPrefix(c.target, directoryOrigin), Origin) + `">Try again</a>` |
| + again := secondary + strings.TrimPrefix(strings.TrimPrefix(c.target, directoryOrigin), Origin) + `">Try again</a>` |
| if got := strings.Contains(body, ">Try again</a>"); got != c.tryAgain { |
| t.Errorf("Try again shown %v, want %v: %s", got, c.tryAgain, errorCTA(body)) |
| } |
| @@ -372,7 +378,7 @@ func TestErrorPagesSplitByAccept(t *testing.T) { |
| if titleOf(body) != "Page not found · Oficina" || strings.Contains(body, "<div rst-error>") == onID || !strings.Contains(body, "We can’t find that page") || !strings.Contains(body, "<header estilo-bar") { |
| t.Errorf("not the error page under the bar: %q", titleOf(body)) |
| } |
| - if onID && (!strings.Contains(body, "<div estilo-door estilo-sky-host>") || !strings.Contains(body, "<span>Oficina ID</span>") || !strings.Contains(body, `<a rst-btn="primary" href="`+directoryOrigin+`/">Go to Oficina</a>`)) { |
| + if onID && (!strings.Contains(body, "<div estilo-door estilo-sky-host>") || !strings.Contains(body, "<span>Oficina ID</span>") || !strings.Contains(body, `<a rst-btn="primary" estilo-signin-action href="`+directoryOrigin+`/">Go to Oficina</a>`)) { |
| t.Errorf("id.*'s error page is not in the door's card:\n%s", body) |
| } |
| if got := strings.Contains(body, "<details estilo-account"); got != c.account { |
diff --git a/internal/home/signout_test.go b/internal/home/signout_test.go| index 40228c7..88cfd3d 100644 |
| --- a/internal/home/signout_test.go |
| +++ b/internal/home/signout_test.go |
| @@ -232,7 +232,7 @@ func isFinishSigningOut(rec *httptest.ResponseRecorder) bool { |
| strings.Contains(body, "<h1>Finish signing out</h1>") && |
| strings.Contains(body, "Select Sign out to finish signing out of Oficina on this device.") && |
| strings.Contains(body, `<form method="post" action="/signout"`) && |
| - strings.Contains(body, `<button type="submit" rst-btn="primary">Sign out</button>`) |
| + strings.Contains(body, `<button type="submit" rst-btn="primary" estilo-signin-action>Sign out</button>`) |
| } |
| // TestCredentialSignOutAdmitsRegisteredConsumers is round 2's widening |
diff --git a/internal/home/templates/assertion.html b/internal/home/templates/assertion.html| index e517e4a..eb0d16f 100644 |
| --- a/internal/home/templates/assertion.html |
| +++ b/internal/home/templates/assertion.html |
| @@ -14,7 +14,7 @@ |
| <p estilo-signin-body>Select Continue if this page doesn’t move on.</p> |
| <form method="post" action="{{.Data.Action}}" rst-form data-assertion-handoff> |
| <input type="hidden" name="assertion" value="{{.Data.Token}}"> |
| -<button type="submit" rst-btn="primary">Continue</button> |
| +<button type="submit" rst-btn="primary" estilo-signin-action>Continue</button> |
| </form> |
| {{end}} |
| {{define "scripts"}}{{/* The form is already parsed here. Async submits without waiting for CSS. */}}<script src='{{v "/static/assertion.js"}}' async></script>{{end}} |
diff --git a/internal/home/templates/directory_signed_out.html b/internal/home/templates/directory_signed_out.html| index 0f62138..42319f3 100644 |
| --- a/internal/home/templates/directory_signed_out.html |
| +++ b/internal/home/templates/directory_signed_out.html |
| @@ -4,15 +4,15 @@ |
| <h1>Finish signing out</h1> |
| <p estilo-signin-body>You are signed out of the directory. Finish signing out of Oficina ID before leaving this device.</p> |
| <form method="post" action="{{.Data.Action}}" data-assertion-handoff rst-form> |
| -<button type="submit" rst-btn="primary">Sign out of Oficina ID</button> |
| +<button type="submit" rst-btn="primary" estilo-signin-action>Sign out of Oficina ID</button> |
| </form> |
| {{else if .Data.AllDevices}}{{with signedOutDoor}} |
| <h1>All devices are signed out</h1> |
| <p estilo-signin-body>Your Oficina ID is signed out on id.oficina.works and oficina.works in every browser. The Oficina apps sign out as each device next checks in. A team's app already open in a browser stays signed in until its own session ends.</p> |
| -<p><a href="{{.Link.Href}}" rst-btn="primary">{{.Link.Label}}</a></p> |
| +<p><a href="{{.Link.Href}}" rst-btn="primary" estilo-signin-action>{{.Link.Label}}</a></p> |
| {{end}}{{else}}{{with signedOutDoor}} |
| <h1>{{.Heading}}</h1> |
| <p estilo-signin-body>You are signed out of the directory in this browser.</p> |
| -<p><a href="{{.Link.Href}}" rst-btn="primary">{{.Link.Label}}</a></p> |
| +<p><a href="{{.Link.Href}}" rst-btn="primary" estilo-signin-action>{{.Link.Label}}</a></p> |
| {{end}}{{end}}{{end}} |
| {{define "scripts"}}{{if .Data.Finish}}<script src='{{v "/static/assertion.js"}}' async></script>{{end}}{{end}} |
diff --git a/internal/home/templates/directory_signout_all_failed.html b/internal/home/templates/directory_signout_all_failed.html| index 5987651..68b1611 100644 |
| --- a/internal/home/templates/directory_signout_all_failed.html |
| +++ b/internal/home/templates/directory_signout_all_failed.html |
| @@ -3,5 +3,5 @@ |
| <h1>oficina.works may still be signed in</h1> |
| <p estilo-signin-body>id.oficina.works is signed out, and so are your Oficina apps as each device next checks in. Signing out of oficina.works didn’t finish, so it may still be signed in, in this browser and others.</p> |
| <p estilo-signin-body>Sign in again and press Sign out all devices once more to finish.</p> |
| -<p><a href="{{.Data.Again}}" rst-btn="primary">Sign in and try again</a></p> |
| +<p><a href="{{.Data.Again}}" rst-btn="primary" estilo-signin-action>Sign in and try again</a></p> |
| {{end}} |
diff --git a/internal/home/templates/handoff_failed.html b/internal/home/templates/handoff_failed.html| index a920954..81ff0f6 100644 |
| --- a/internal/home/templates/handoff_failed.html |
| +++ b/internal/home/templates/handoff_failed.html |
| @@ -2,5 +2,5 @@ |
| {{define "content"}} |
| <h1>Could not finish signing in</h1> |
| <p estilo-signin-body>Return to Oficina and open the app again.</p> |
| -<p><a href="{{.Data.HomeURL}}">Back to Oficina</a></p> |
| +<p><a rst-btn="primary" estilo-signin-action href="{{.Data.HomeURL}}">Back to Oficina</a></p> |
| {{end}} |
diff --git a/internal/home/templates/id_error.html b/internal/home/templates/id_error.html| index 34d2add..98a57ec 100644 |
| --- a/internal/home/templates/id_error.html |
| +++ b/internal/home/templates/id_error.html |
| @@ -5,8 +5,8 @@ |
| {{- with .Data.Error}} |
| <h1>{{.Title}}</h1> |
| <p estilo-signin-body>{{.Body}}</p> |
| -<p><a rst-btn="primary" href="{{.Home.Href}}">{{.Home.Label}}</a> |
| - {{- with .Back}} <a rst-btn href="{{.Href}}">{{.Label}}</a>{{end}}</p> |
| +<p><a rst-btn="primary" estilo-signin-action href="{{.Home.Href}}">{{.Home.Label}}</a> |
| + {{- with .Back}} <a rst-btn="ghost" estilo-signin-action="quiet" href="{{.Href}}">{{.Label}}</a>{{end}}</p> |
| {{- with .Ref}} |
| <p class="rst-mono" dir="auto">{{$.Data.Error.RefLabel}} {{.}}</p> |
| {{- end}} |
diff --git a/internal/home/templates/id_forget.html b/internal/home/templates/id_forget.html| index 9ee4961..bd93257 100644 |
| --- a/internal/home/templates/id_forget.html |
| +++ b/internal/home/templates/id_forget.html |
| @@ -4,7 +4,7 @@ |
| <p estilo-signin-body>Oficina ID remembers how you last signed in on this device. Forget it too, so the next person to use this device starts with a blank sign-in.</p> |
| <form method="post" action="/forget" rst-form> |
| {{with .Data.Return}}<input type="hidden" name="return" value="{{.}}">{{end}} |
| -<div rst-form-foot><button type="submit" rst-btn="primary">Forget me on Oficina ID too</button></div> |
| +<div rst-form-foot><button type="submit" rst-btn="primary" estilo-signin-action>Forget me on Oficina ID too</button></div> |
| </form> |
| -<p><a href="{{.Data.Back}}">Not now</a></p> |
| +<p><a rst-btn="ghost" estilo-signin-action="quiet" href="{{.Data.Back}}">Not now</a></p> |
| {{end}} |
diff --git a/internal/home/templates/id_replace.html b/internal/home/templates/id_replace.html| index 395defe..a333d2a 100644 |
| --- a/internal/home/templates/id_replace.html |
| +++ b/internal/home/templates/id_replace.html |
| @@ -3,7 +3,7 @@ |
| {{define "content"}} |
| <h1>Replace your passkeys</h1> |
| <p rst-callout rst-tone="warning"><span rst-callout-body>Adding a replacement removes all your existing passkeys, signs you out of Oficina ID on every device, and invalidates all your recovery codes. You may remain signed in to the directory and other apps. Sign in with the new passkey before creating new recovery codes.</span></p> |
| -<button id="passkey-replace" type="button" rst-btn="danger" data-passkey hidden>Replace all passkeys</button> |
| +<button id="passkey-replace" type="button" rst-btn="danger" estilo-signin-action="danger" data-passkey hidden>Replace all passkeys</button> |
| <p id="passkey-status" role="status"></p> |
| <noscript><p>Turn on JavaScript to add your replacement passkey.</p></noscript> |
| {{end}} |
diff --git a/internal/home/templates/id_replaced.html b/internal/home/templates/id_replaced.html| index d907015..62c25be 100644 |
| --- a/internal/home/templates/id_replaced.html |
| +++ b/internal/home/templates/id_replaced.html |
| @@ -4,7 +4,7 @@ |
| <p>You are signed out of Oficina ID on every device. Your previous passkeys and recovery codes no longer work. You may remain signed in to the directory and other apps. Sign in with your new passkey to create new recovery codes.</p> |
| {{if .Data.NoticeFailed}} |
| <p role="alert">Your passkeys were replaced, but we could not send the confirmation email.</p> |
| -{{if .Data.CanRetry}}<form method="post" action="/passkey/notice" rst-form><button type="submit" rst-btn>Send email again</button></form>{{else}}<p>The confirmation email can no longer be sent from this page.</p>{{end}} |
| +{{if .Data.CanRetry}}<form method="post" action="/passkey/notice" rst-form><button type="submit" rst-btn="ghost" estilo-signin-action="quiet">Send email again</button></form>{{else}}<p>The confirmation email can no longer be sent from this page.</p>{{end}} |
| {{end}} |
| -<a href="/signin?return_to=%2Fpasskey%2Fcodes" rst-btn="primary">Sign in with your new passkey</a> |
| +<a href="/signin?return_to=%2Fpasskey%2Fcodes" rst-btn="primary" estilo-signin-action>Sign in with your new passkey</a> |
| {{end}} |
diff --git a/internal/home/templates/id_signed_out.html b/internal/home/templates/id_signed_out.html| index da2d0d6..dd64dee 100644 |
| --- a/internal/home/templates/id_signed_out.html |
| +++ b/internal/home/templates/id_signed_out.html |
| @@ -2,7 +2,7 @@ |
| {{define "content"}} |
| <h1>You are signed out</h1> |
| <p>You are signed out of Oficina ID in this browser.</p> |
| -<a href="/signin" rst-btn="primary">Sign in</a> |
| +<a href="/signin" rst-btn="primary" estilo-signin-action>Sign in</a> |
| <form method="post" action="/signin/forget" estilo-signin-forget> |
| <input type="hidden" name="way" value="email"> |
| <button rst-btn="ghost" type="submit">{{forgetLabel}}</button> |
diff --git a/internal/home/templates/id_signout_all.html b/internal/home/templates/id_signout_all.html| index b95d0a5..bf63f5d 100644 |
| --- a/internal/home/templates/id_signout_all.html |
| +++ b/internal/home/templates/id_signout_all.html |
| @@ -6,7 +6,7 @@ |
| <p>If you have lost a device, this stops it signing in again with your Oficina ID. What it already has open can keep working for up to seven days.</p> |
| <form method="post" action="/devices/sign-out-all" rst-form> |
| <div rst-form-foot> |
| - <button type="submit" rst-btn="danger">Sign out all devices</button> |
| + <button type="submit" rst-btn="danger" estilo-signin-action="danger">Sign out all devices</button> |
| </div> |
| </form> |
| {{end}} |
diff --git a/internal/home/templates/id_signout_all_hop.html b/internal/home/templates/id_signout_all_hop.html| index 3bddb0b..77d5d3e 100644 |
| --- a/internal/home/templates/id_signout_all_hop.html |
| +++ b/internal/home/templates/id_signout_all_hop.html |
| @@ -10,7 +10,7 @@ |
| <p estilo-signin-body>id.oficina.works and your Oficina apps are signed out. Select Continue to sign out of oficina.works too, if this page doesn’t move on.</p> |
| <form method="post" action="{{.Data.Action}}" rst-form data-assertion-handoff> |
| <input type="hidden" name="assertion" value="{{.Data.Token}}"> |
| -<button type="submit" rst-btn="primary">Continue</button> |
| +<button type="submit" rst-btn="primary" estilo-signin-action>Continue</button> |
| </form> |
| {{end}} |
| {{define "scripts"}}<script src='{{v "/static/assertion.js"}}' async></script>{{end}} |
diff --git a/internal/home/templates/operator_confirm_id.html b/internal/home/templates/operator_confirm_id.html| index 080002a..76cc6c8 100644 |
| --- a/internal/home/templates/operator_confirm_id.html |
| +++ b/internal/home/templates/operator_confirm_id.html |
| @@ -24,7 +24,7 @@ |
| <input id="owner" name="owner" type="email" autocomplete="off" required rst-input> |
| </div>{{end}} |
| <div rst-form-foot> |
| - <button type="submit" rst-btn="primary">Open window</button> |
| + <button type="submit" rst-btn="primary" estilo-signin-action>Open window</button> |
| </div> |
| </form> |
| {{end}}{{else}} |
diff --git a/internal/home/templates/passkey_confirm.html b/internal/home/templates/passkey_confirm.html| index 5eb7ffa..e2343e2 100644 |
| --- a/internal/home/templates/passkey_confirm.html |
| +++ b/internal/home/templates/passkey_confirm.html |
| @@ -5,7 +5,7 @@ |
| {{if .Data.RecoveryFailed}}<p role="alert" rst-callout rst-tone="negative"><span rst-callout-body>That code did not work.</span></p>{{end}} |
| -<button id="passkey-confirm" type="button" rst-btn="primary" data-passkey hidden>Use your passkey</button> |
| +<button id="passkey-confirm" type="button" rst-btn="primary" estilo-signin-action data-passkey hidden>Use your passkey</button> |
| <p id="passkey-status" role="status"></p> |
| <h2>Or use a recovery code</h2> |
| @@ -17,7 +17,7 @@ needs no script and no device.</p> |
| <input id="code" name="code" type="text" autocomplete="one-time-code" required rst-input> |
| </div> |
| <div rst-form-foot> |
| - <button type="submit" rst-btn="primary">Sign in</button> |
| + <button type="submit" rst-btn="primary" estilo-signin-action>Sign in</button> |
| </div> |
| </form> |
| {{end}} |
diff --git a/internal/home/templates/passkey_enrol.html b/internal/home/templates/passkey_enrol.html| index 32c3ad8..b83b181 100644 |
| --- a/internal/home/templates/passkey_enrol.html |
| +++ b/internal/home/templates/passkey_enrol.html |
| @@ -3,7 +3,7 @@ |
| {{define "content"}} |
| <h1>Add a passkey</h1> |
| <p>Add a passkey to sign in without entering your email. JavaScript is needed to add and use passkeys.</p> |
| -<button id="passkey-enrol" type="button" rst-btn="primary" data-passkey hidden>Add a passkey</button> |
| +<button id="passkey-enrol" type="button" rst-btn="primary" estilo-signin-action data-passkey hidden>Add a passkey</button> |
| <p id="passkey-status" role="status"></p> |
| <noscript><p rst-callout><span rst-callout-body>Adding a passkey needs JavaScript. Everything else here does not.</span></p></noscript> |
| {{end}} |
diff --git a/internal/home/templates/recovery_codes.html b/internal/home/templates/recovery_codes.html| index e4a801f..da7e2bc 100644 |
| --- a/internal/home/templates/recovery_codes.html |
| +++ b/internal/home/templates/recovery_codes.html |
| @@ -12,8 +12,8 @@ There is no operator who can undo that, by design.</p> |
| <p>Generating a new set <strong>invalidates every code you have now</strong>.</p> |
| <form method="post" action="/passkey/codes"> |
| <input type="hidden" name="return_to" value="{{.Data.ReturnTo}}"> |
| - <button type="submit" rst-btn="danger">Generate a new set</button> |
| + <button type="submit" rst-btn="danger" estilo-signin-action="danger">Generate a new set</button> |
| </form> |
| {{end}} |
| -{{if .Data.Codes}}<a rst-btn href="{{.Data.ReturnTo}}">Continue</a>{{end}} |
| +{{if .Data.Codes}}<a rst-btn="primary" estilo-signin-action href="{{.Data.ReturnTo}}">Continue</a>{{end}} |
| {{end}} |
diff --git a/internal/home/templates/resolve_handoff.html b/internal/home/templates/resolve_handoff.html| index 2c3b040..bd61694 100644 |
| --- a/internal/home/templates/resolve_handoff.html |
| +++ b/internal/home/templates/resolve_handoff.html |
| @@ -10,7 +10,7 @@ |
| <p estilo-signin-body>Select Continue if this page doesn’t move on.</p> |
| <form method="post" action="{{.Data.Action}}" rst-form data-assertion-handoff> |
| <input type="hidden" name="receipt" value="{{.Data.Receipt}}"> |
| -<button type="submit" rst-btn="primary">Continue</button> |
| +<button type="submit" rst-btn="primary" estilo-signin-action>Continue</button> |
| </form> |
| {{end}} |
| {{define "scripts"}}<script src='{{v "/static/assertion.js"}}' async></script>{{end}} |
diff --git a/internal/home/templates/signin_confirm.html b/internal/home/templates/signin_confirm.html| index c70466e..35d7a86 100644 |
| --- a/internal/home/templates/signin_confirm.html |
| +++ b/internal/home/templates/signin_confirm.html |
| @@ -5,7 +5,7 @@ |
| <form method="post" action="/signin/verify" rst-form> |
| <input type="hidden" name="token" value="{{.Data.Token}}"> |
| <div rst-form-foot> |
| - <button type="submit" rst-btn="primary">Sign in</button> |
| + <button type="submit" rst-btn="primary" estilo-signin-action>Sign in</button> |
| </div> |
| </form> |
| {{end}} |
diff --git a/internal/home/templates/signin_failed.html b/internal/home/templates/signin_failed.html| index 3da5292..b02d21f 100644 |
| --- a/internal/home/templates/signin_failed.html |
| +++ b/internal/home/templates/signin_failed.html |
| @@ -2,5 +2,5 @@ |
| {{define "content"}} |
| <h1>That link did not work</h1> |
| <p estilo-signin-body>Sign-in links work once and expire after {{linkLifetime}} minutes. Ask for a new one.</p> |
| -<p><a href="{{.Data.Again}}">Start again</a></p> |
| +<p><a rst-btn="primary" estilo-signin-action href="{{.Data.Again}}">Start again</a></p> |
| {{end}} |
diff --git a/internal/home/templates/signout_confirm.html b/internal/home/templates/signout_confirm.html| index a9df84c..02afd2b 100644 |
| --- a/internal/home/templates/signout_confirm.html |
| +++ b/internal/home/templates/signout_confirm.html |
| @@ -4,7 +4,7 @@ |
| <p>Select Sign out to finish signing out of Oficina on this device.</p> |
| <form method="post" action="/signout" rst-form> |
| <div rst-form-foot> |
| - <button type="submit" rst-btn="primary">Sign out</button> |
| + <button type="submit" rst-btn="primary" estilo-signin-action>Sign out</button> |
| </div> |
| </form> |
| {{end}} |