oficina / estilo Public

chrome: the door's email field takes focus

The sign-in page's one job is that field; the apps' old pages all
autofocused it, and the door lost it (found converting Calls and Fichas).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev d0c584375b1f74c02c120a9e7f171be008cece35 parent cc2c1e5
2 files changed, +2 −2
  • chrome/chrome_test.go +1 −1
  • chrome/templates/signin.html +1 −1

CI passed — run details

CI log
=== modcache ===
all modules verified
=== vet ===
CGO_ENABLED=0 go vet ./...
=== fmt ===
=== build ===
CGO_ENABLED=0 go build -buildvcs=false ./...
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/estilo.git/base	0.004s
ok  	amadan.net/oficina/estilo.git/brand	0.003s
ok  	amadan.net/oficina/estilo.git/busy	0.003s
ok  	amadan.net/oficina/estilo.git/callui	0.004s
ok  	amadan.net/oficina/estilo.git/chrome	0.193s
?   	amadan.net/oficina/estilo.git/cmd/oficina-notices	[no test files]
ok  	amadan.net/oficina/estilo.git/credits	0.006s
ok  	amadan.net/oficina/estilo.git/credits/catalog	0.007s
ok  	amadan.net/oficina/estilo.git/homeconnect	0.006s
ok  	amadan.net/oficina/estilo.git/internal/lint	0.006s
?   	amadan.net/oficina/estilo.git/internal/tokencheck	[no test files]
ok  	amadan.net/oficina/estilo.git/menu	0.008s
ok  	amadan.net/oficina/estilo.git/savestatus	0.079s
ok  	amadan.net/oficina/estilo.git/sky	0.023s
ok  	amadan.net/oficina/estilo.git/theme	0.007s
diff --git a/chrome/chrome_test.go b/chrome/chrome_test.go
index 26e33c6..05913d6 100644
--- a/chrome/chrome_test.go
+++ b/chrome/chrome_test.go
@@ -463,7 +463,7 @@ func TestSignInIsTheOficinaDoor(t *testing.T) {
if !strings.Contains(html, strings.TrimSpace(want.String())) {
t.Errorf("the door's sky differs from estilo-sky's:\n%s\nwant it to contain:\n%s", html, want.String())
}
- for _, s := range []string{`<div estilo-door estilo-sky-host>`, `<section estilo-signin>`, `<span>Calendar</span>`, `</section>
+ for _, s := range []string{`<div estilo-door estilo-sky-host>`, `<section estilo-signin>`, `<span>Calendar</span>`, ` autofocus`, `</section>
</div>`} {
if !strings.Contains(html, s) {
t.Errorf("door lacks %q", s)
diff --git a/chrome/templates/signin.html b/chrome/templates/signin.html
index a191a06..053c444 100644
--- a/chrome/templates/signin.html
+++ b/chrome/templates/signin.html
@@ -41,7 +41,7 @@
{{- range .Hidden}}
<input type="hidden" name="{{.Name}}" value="{{.Value}}">
{{- end}}
- {{template "field" (dict "ID" "estilo-signin-address" "Name" "address" "Type" "email" "Label" .AddressLabel "Autocomplete" "email" "Required" true "Value" .Address "Help" .Help "Error" .AddressError)}}
+ {{template "field" (dict "ID" "estilo-signin-address" "Name" "address" "Type" "email" "Label" .AddressLabel "Autocomplete" "email" "Required" true "Autofocus" true "Value" .Address "Help" .Help "Error" .AddressError)}}
<div rst-form-foot><button rst-btn="primary" type="submit">{{.Submit}}</button></div>
</form>
{{- with .OpenSource}}