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>
2 files changed,
+2
−2
chrome/chrome_test.go+1 −1chrome/templates/signin.html+1 −1
CI passed — run details
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}} |