sign-in S4: the sign-in page becomes the app door — a code on a laptop, a button on a phone, the words door demoted to a link #1526

Closed
opened 2026-09-16 03:15:06 +00:00 by ben · 2 comments
Owner

Parent

Spec #1492 (wallet sign-in — the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, and the App-only switch). Program map #1293. Design contract: DDR 0246, flow docs/ux/flows/wallet-signin.mermaid, wireframes docs/ux/wireframes/wallet-signin/. Mechanics: ADR 0236 (the bridge verifies in Go), proven end to end by prototype #1301 (spikes/1301-wallet-signin/).

The page half of stories 1–9. Wireframe: docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html.

What to build

A member opening a service signed out meets their community's own page, wearing their community's brand,
offering the app as the way in: on a laptop a code to scan with the phone, on a phone a button that opens
the app. The twelve-words door stays as one link beneath, for now. The page waits quietly and never
promises speed — a real approval takes seconds, and prototype #1301 showed why.

Acceptance criteria

  • One template with two doors: at laptop width the scannable code is primary with Scan this with the
    app on your phone
    and a secondary Have the app on this computer? Open it; at phone width Open my
    community app
    is primary with On another device? Show me a code to scan folding out the same code
  • The words door renders as one link beneath, never as a form
  • With no handler registered for the app's link scheme, tapping the button changes nothing else on the
    page and the page keeps waiting (honestly dead until the app registers it)
  • The waiting state says Waiting for you to approve in the app. with a spinner, and no countdown, no
    elapsed seconds and no "instant" or "a few seconds" copy appears anywhere on the page
  • A verified verdict completes the request and redirects into the service — no "Signed in" screen,
    identity dump or timings
  • An expired code shows That code has expired. with one Show a new one that mints a fresh challenge
    in place; the code is greyed and the page never swaps a code by itself
  • The page wears the brand kit natively: the community's logo (a letter mark when the kit has none),
    the kit's greeting, the accent on the primary button, code frame and spinner, the kit's background,
    the kit's status tints — through the compiled tokens, with no override stylesheet
  • The region order is logo → welcome line → status → lede → door → words link, at both widths
  • Until the app card exists, the app door is enabled by configuration (never by stubbing the card as
    ready) — S8 wires it to the card
  • Proven at the bridge seam: the page wears the kit, and the region order holds

Blocked by

Tracker: #1525

  • S3 (the routes)

Task manifest

task: app-door-page
implements_flow: wallet-signin
implements_edge: "service → WS-S1"
wireframe: docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html
seam: the bridge's OIDC-over-HTTP smoke tests
depends_on: [wallet-signin:app-door-routes]
out_of_scope: [refusal copy (S5), the App-only switch, changes to the words page's own form]
needs_human_decision: []
## Parent Spec **#1492** (wallet sign-in — the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, and the App-only switch). Program map **#1293**. Design contract: **DDR 0246**, flow `docs/ux/flows/wallet-signin.mermaid`, wireframes `docs/ux/wireframes/wallet-signin/`. Mechanics: **ADR 0236** (the bridge verifies in Go), proven end to end by prototype **#1301** (`spikes/1301-wallet-signin/`). The page half of stories 1–9. Wireframe: `docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html`. ## What to build A member opening a service signed out meets their community's own page, wearing their community's brand, offering the app as the way in: on a laptop a code to scan with the phone, on a phone a button that opens the app. The twelve-words door stays as one link beneath, for now. The page waits quietly and never promises speed — a real approval takes seconds, and prototype #1301 showed why. ## Acceptance criteria - [ ] One template with two doors: at laptop width the scannable code is primary with *Scan this with the app on your phone* and a secondary *Have the app on this computer? Open it*; at phone width *Open my community app* is primary with *On another device? Show me a code to scan* folding out the same code - [ ] The words door renders as one link beneath, never as a form - [ ] With no handler registered for the app's link scheme, tapping the button changes nothing else on the page and the page keeps waiting (honestly dead until the app registers it) - [ ] The waiting state says *Waiting for you to approve in the app.* with a spinner, and no countdown, no elapsed seconds and no "instant" or "a few seconds" copy appears anywhere on the page - [ ] A verified verdict completes the request and redirects into the service — no "Signed in" screen, identity dump or timings - [ ] An expired code shows *That code has expired.* with one *Show a new one* that mints a fresh challenge in place; the code is greyed and the page never swaps a code by itself - [ ] The page wears the brand kit natively: the community's logo (a letter mark when the kit has none), the kit's greeting, the accent on the primary button, code frame and spinner, the kit's background, the kit's status tints — through the compiled tokens, with no override stylesheet - [ ] The region order is logo → welcome line → status → lede → door → words link, at both widths - [ ] Until the app card exists, the app door is enabled by configuration (never by stubbing the card as ready) — S8 wires it to the card - [ ] Proven at the bridge seam: the page wears the kit, and the region order holds ## Blocked by Tracker: #1525 - S3 (the routes) ## Task manifest ```yaml task: app-door-page implements_flow: wallet-signin implements_edge: "service → WS-S1" wireframe: docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html seam: the bridge's OIDC-over-HTTP smoke tests depends_on: [wallet-signin:app-door-routes] out_of_scope: [refusal copy (S5), the App-only switch, changes to the words page's own form] needs_human_decision: [] ```

swarm-claim host=bens-mac-04 run=26676
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26676 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1526 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1526,
  "status": "success",
  "commits": [
    "5b1ca8100c45f993fa1570b4518238c6817a36ab"
  ],
  "changed_files": [
    "STATUS.md",
    "go.mod",
    "go.sum",
    "internal/idp/appdoor.go",
    "internal/idp/appdoorpage.go",
    "internal/idp/appdoorpage_seam_test.go",
    "internal/idp/config.go",
    "internal/idp/provider.go",
    "internal/idp/signin.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/idp/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/idp/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/idp/ -count=1",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/idp/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "One template with two doors: laptop QR primary + 'Scan this with the app on your phone' + secondary 'Have the app on this computer? Open it'; phone 'Open my community app' primary + 'On another device? Show me a code to scan' folding the same code": "internal/idp/appdoorpage.go (.only-laptop/.only-phone CSS + the door markup), proven by TestSeam_AppDoorPage_TwoDoorsAndDemotedWordsLink",
    "The words door renders as one link beneath, never as a form": "appdoorpage.go words-door-link is an <a data-action=sign-in-with-words>; TestSeam_AppDoorPage_TwoDoorsAndDemotedWordsLink asserts the copy and that the page contains NO <form",
    "With no handler for the app's link scheme, tapping the button changes nothing else and the page keeps waiting": "the open-app / open-app-here anchors carry href=deep_link (matou://) with no JS click handler mutating state; the status poll continues (appdoorpage.go script)",
    "Waiting state says 'Waiting for you to approve in the app.' with a spinner, no countdown / elapsed seconds / 'instant' / 'a few seconds' copy": "appdoorpage.go [data-status=waiting] + .spin; TestSeam_AppDoorPage_WaitingPromisesNoSpeed asserts the line and the absence of instant/few seconds/seconds/countdown",
    "A verified verdict completes the request and redirects into the service — no 'Signed in' screen / identity dump / timings": "the script does window.location.assign(s.redirect) on verified (the S3 status route completes login + returns the callback URL); no interstitial rendered",
    "An expired code shows 'That code has expired.' with one 'Show a new one' that mints a fresh challenge in place; the code is greyed and never swapped by itself": "appdoorpage.go expired <template> + showExpired() (new-code -> mint, door greyed via data-state=expired), poll stops on expired; TestSeam_AppDoorPage_ExpiredCopyPresent",
    "The page wears the brand kit natively (logo/letter-mark, greeting, accent on button/code frame/spinner, background, status tints) through compiled tokens, no override stylesheet": "renderAppDoor reuses signInPage.tokensCSS/name/letter/greeting; --oc-accent on button/QR border/spinner, --oc-background on body; TestSeam_AppDoorPage_WearsBrandKitNatively (no override.css)",
    "The region order is logo -> welcome line -> status -> lede -> door -> words link, at both widths": "appdoorpage.go DOM order (CSS only toggles display within the door); TestSeam_AppDoorPage_RegionOrderHolds",
    "Until the app card exists, the app door is enabled by configuration (never by stubbing the card as ready)": "Config.AppDoor (env IDSS_IDP_APP_DOOR) gates GET /login; config.go + provider.go + signin.go; TestSeam_AppDoorPage_FlagGatesTheWordsForm",
    "Proven at the bridge seam: the page wears the kit, and the region order holds": "TestSeam_AppDoorPage_WearsBrandKitNatively + TestSeam_AppDoorPage_RegionOrderHolds over the internal/idp OIDC-over-HTTP seam"
  },
  "summary": "GET /login becomes the wallet app door page (WS-S1) when Config.AppDoor is on — two width-chosen doors, a same-origin QR route, the demoted words link, brand kit worn natively, waiting/verified/expired states with no speed promise.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1526 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1526, "status": "success", "commits": [ "5b1ca8100c45f993fa1570b4518238c6817a36ab" ], "changed_files": [ "STATUS.md", "go.mod", "go.sum", "internal/idp/appdoor.go", "internal/idp/appdoorpage.go", "internal/idp/appdoorpage_seam_test.go", "internal/idp/config.go", "internal/idp/provider.go", "internal/idp/signin.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/idp/", "exit_code": 0 }, { "command": "gofmt -l internal/idp/", "exit_code": 0 }, { "command": "go test ./internal/idp/ -count=1", "exit_code": 0 }, { "command": "golangci-lint run ./internal/idp/", "exit_code": 0 } ], "criteria": { "One template with two doors: laptop QR primary + 'Scan this with the app on your phone' + secondary 'Have the app on this computer? Open it'; phone 'Open my community app' primary + 'On another device? Show me a code to scan' folding the same code": "internal/idp/appdoorpage.go (.only-laptop/.only-phone CSS + the door markup), proven by TestSeam_AppDoorPage_TwoDoorsAndDemotedWordsLink", "The words door renders as one link beneath, never as a form": "appdoorpage.go words-door-link is an <a data-action=sign-in-with-words>; TestSeam_AppDoorPage_TwoDoorsAndDemotedWordsLink asserts the copy and that the page contains NO <form", "With no handler for the app's link scheme, tapping the button changes nothing else and the page keeps waiting": "the open-app / open-app-here anchors carry href=deep_link (matou://) with no JS click handler mutating state; the status poll continues (appdoorpage.go script)", "Waiting state says 'Waiting for you to approve in the app.' with a spinner, no countdown / elapsed seconds / 'instant' / 'a few seconds' copy": "appdoorpage.go [data-status=waiting] + .spin; TestSeam_AppDoorPage_WaitingPromisesNoSpeed asserts the line and the absence of instant/few seconds/seconds/countdown", "A verified verdict completes the request and redirects into the service — no 'Signed in' screen / identity dump / timings": "the script does window.location.assign(s.redirect) on verified (the S3 status route completes login + returns the callback URL); no interstitial rendered", "An expired code shows 'That code has expired.' with one 'Show a new one' that mints a fresh challenge in place; the code is greyed and never swapped by itself": "appdoorpage.go expired <template> + showExpired() (new-code -> mint, door greyed via data-state=expired), poll stops on expired; TestSeam_AppDoorPage_ExpiredCopyPresent", "The page wears the brand kit natively (logo/letter-mark, greeting, accent on button/code frame/spinner, background, status tints) through compiled tokens, no override stylesheet": "renderAppDoor reuses signInPage.tokensCSS/name/letter/greeting; --oc-accent on button/QR border/spinner, --oc-background on body; TestSeam_AppDoorPage_WearsBrandKitNatively (no override.css)", "The region order is logo -> welcome line -> status -> lede -> door -> words link, at both widths": "appdoorpage.go DOM order (CSS only toggles display within the door); TestSeam_AppDoorPage_RegionOrderHolds", "Until the app card exists, the app door is enabled by configuration (never by stubbing the card as ready)": "Config.AppDoor (env IDSS_IDP_APP_DOOR) gates GET /login; config.go + provider.go + signin.go; TestSeam_AppDoorPage_FlagGatesTheWordsForm", "Proven at the bridge seam: the page wears the kit, and the region order holds": "TestSeam_AppDoorPage_WearsBrandKitNatively + TestSeam_AppDoorPage_RegionOrderHolds over the internal/idp OIDC-over-HTTP seam" }, "summary": "GET /login becomes the wallet app door page (WS-S1) when Config.AppDoor is on — two width-chosen doors, a same-origin QR route, the demoted words link, brand kit worn natively, waiting/verified/expired states with no speed promise.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1526
No description provided.