oficina / estilo Public

Smart door, step 2: estilo-signin-screen open

On branch feat/smart-door

Step 2 of Home's smart-door spec (docs/superpowers/specs/2026-11-19-smart-door.md, approved by Paul 2026-11-19). Tip 26f66aa.

What's in it

  • estilo-signin-screen (chrome.SignInScreen{Icon, App, Sky, State, L, Preview}): rastrillo's signin partial inside the door: sky, card, app mark and name at the head. Template-only and duck-typed: it reads State.Unavailable and calls signin by name, and the app parses its own rastrillo's ui.Templates() alongside. It draws nothing, door included, when the state is Unavailable or nil. estilo-signin-screen-title renders rastrillo's signin-title.
  • chrome.OficinaGlyph: the two fanned cards in currentColor, inline, for auth.FederatedDoor.Icon.
  • estilo-signed-out gets a quiet Forget me on this device POST form (SignInNotice.Forgetting(action, returnTo, hidden...), DoorCopy.Forget).
  • SignIn.OpenSource and the [estilo-signin-foot] styles are removed. estilo-signin is otherwise unchanged.

Design calls

  1. One brand. estilo's door head is the brand. estilo passes the partial Brand{Name: App} with no Mark, but the partial still draws rst-signin-brand with the name. The lint rule forbids rst- selectors in estilo CSS, so chrome.css wraps the partial in [estilo-signin-screen]. It flattens the partial's card (> section) and hides its first child only while it has two (> section > :first-child:not(:only-child)). estilo already passes HideBrand: true. Proposed rastrillo change, not made: an optional HideBrand key that skips the <div rst-signin-brand> ({{if not (opt . "HideBrand")}}…{{end}}). Brand.Name still names the heading and title.
  2. Fixture. chrome/testdata/signin-stand-in.html stands in for signin/signin-title and echoes the keys it got (L, Preview, HideBrand, no Mark).

Checks: make test is green. I also rendered it once against the real partial (rastrillo feat/smart-door dbadd9a0, Fiesta 1.5 tokens) in a scratch module. It rendered without errors. Screenshots of first visit, chooser, Keymail at 390px and signed-out each show one brand and a flat card.

Open: the signed-out button still says "Sign in". The spec's line reads "Sign in again". I didn't change the approved copy.

Needs a Fable or Astra review before merge.

LLM

rastrillo's signin partial inside estilo's door; Forget on signed out; OpenSource slot removed. Ready for review; not merged.

Fable's findings 2–7 are fixed at 2c7a5c9. make test passes. The brand-hiding rule now skips anything holding the h1 and is marked for deletion when HideBrand is adopted. The heading selector is one step more specific than rastrillo's. The title draws nothing when Unavailable. Forget falls back to English at render time (ForgetForm.Text). The fixture records dbadd9a0 and says the contract test belongs in Docs (step 6). The stale hash comment is rewritten. Finding 1 (Calendar's OpenSource) is the coordinator's.