Docs' Keymail continuation is drawn as the door too (review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+8
−1
internal/docs/auth.go+3 −0internal/docs/auth_navigation.go+4 −0internal/docs/views/signin.html+1 −1
CI passed — run details
Intent
diff --git a/internal/docs/auth.go b/internal/docs/auth.go| index 41c06d7..61b44eb 100644 |
| --- a/internal/docs/auth.go |
| +++ b/internal/docs/auth.go |
| @@ -436,6 +436,9 @@ type signinPage struct { |
| Sent *chrome.SignInNotice |
| ContinueURL string |
| SubmitLabel string |
| + // Door heads the continuation card (Icon, App, Sky), so the moment |
| + // between the form and Keymail looks like the same door. |
| + Door chrome.SignInNotice |
| } |
| // signinAgainPath is where "Use a different address" goes: the local |
diff --git a/internal/docs/auth_navigation.go b/internal/docs/auth_navigation.go| index 0496657..6d5f261 100644 |
| --- a/internal/docs/auth_navigation.go |
| +++ b/internal/docs/auth_navigation.go |
| @@ -1,6 +1,9 @@ |
| package docs |
| import ( |
| + "amadan.net/oficina/estilo.git/brand" |
| + "amadan.net/oficina/estilo.git/chrome" |
| + "amadan.net/oficina/estilo.git/sky" |
| "bytes" |
| "net/http" |
| "net/url" |
| @@ -32,6 +35,7 @@ func (h *handlers) beginSignin(next http.HandlerFunc) http.HandlerFunc { |
| Frame: h.frame(r, frameOptions{titleParts: []string{rastrillo.T(r, "docs.signin.title")}, signinPage: true}), |
| SubmitLabel: rastrillo.T(r, "docs.signin.keymail"), |
| ContinueURL: destination, |
| + Door: chrome.SignInNotice{Icon: brand.Path("docs"), App: "Docs", Sky: sky.For(r.Host)}, |
| } |
| if err := h.render.page(w, r, "signin", data); err != nil { |
| h.logger.Error("docs: render Keymail continuation", "err", err) |
diff --git a/internal/docs/views/signin.html b/internal/docs/views/signin.html| index 0a37e1a..fc34fbc 100644 |
| --- a/internal/docs/views/signin.html |
| +++ b/internal/docs/views/signin.html |
| @@ -13,7 +13,7 @@ |
| {{define "content"}} |
| {{- if .ContinueURL}} |
| <meta http-equiv="refresh" content="0;url={{.ContinueURL}}"> |
| -<section estilo-signin><p><a rst-btn="primary" href="{{.ContinueURL}}">{{.SubmitLabel}}</a></p></section> |
| +{{template "estilo-door-open" .Door}}<p><a rst-btn="primary" href="{{.ContinueURL}}">{{.SubmitLabel}}</a></p>{{template "estilo-door-close"}} |
| {{- else if .Sent}}{{template "estilo-signin-sent" .Sent}} |
| {{- else}}{{template "estilo-signin" .Form}}{{end}} |
| {{end}} |