feat(registry): the account pages in the brand shell #307
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/295-account-pages-brand-shell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #295
What. Every page of
tools/registry/src/account.trbgoes throughregistryPageHtml(the shell of #12) and wearsbrand/tokens.css; BRAND.md slice 2 is done.Two commits:
feat(docs): the registry stylesheet's form rules-registryStylesheetgains the account pages' rules (labelled field, text input, form row, record list, tokens table), tokens only, with a test;docs/tooling/torb-docs-site.md.feat(registry): the account pages in the brand shell-pageOfcalls the shell; forms/buttons/tables/notices use the brand's classes (ink primary button, never red);contentSecurityPolicy= previous +script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self',ceremonyPolicy= previous +style-src 'self'; font-src 'self'; img-src 'self'(form-action,frame-ancestors,base-uri,policyOfunchanged); README, RELEASE.md 7.1/7.11, BRAND.md.Decisions (issue #295 comments).
script-src 'self'is added to the plain policy because the shell loads/assets/registry.jsin every head; no inline script is added.Tests. New
tools/registry/tests/account-shell.trb(shellProblems: policy has nounsafe-*, every<scripthassrc="/, nostyle=, no event handler, one shell document) is asserted for the account, refusal, sign-in, sign-up, claim, passkey (registration and sign-in), step-up (ceremony and approved), enrolment and recovery-codes pages. Existing assertions that the body has no<script/http://were changed to the shell's one script / no externalsrc.Seed impact. None (markup, CSS, policy strings in
.trb).Test. Not run locally (no gates/bootstrap per dev-workflow); the forge CI runs them.
After merge. Deploying the registry is outside the loop.
0b0de5cabb5e6daf87545e6daf8754c6d20d097eApproved at head
c6d20d0.account-shell.trb(shellProblems) asserted on every account page (account, refusal, sign-in, sign-up, claim, passkey ceremonies, step-up, enrolment, recovery codes); stylesheet test added; changed assertions are consistent with the one shell script. CI green on this head (registry, tier A/B, gates, pdisc).pageOfgoes throughregistryPageHtml; CSP adds onlyscript-src/style-src/font-src/img-src 'self',form-action,frame-ancestors,base-uriunchanged, nounsafe-*; the shell has no inline script/style/handler; all text still escaped, forms CSRF-bound, buttons ink (never red).Non-blocking:
account.trbheader comment still says "nothing on a page of the registry is ... an image of another origin" while the policy allowsimg-src 'self'- fine, just worth keeping in mind if an image is ever added.