docs(widgets): complete the v0 element pages, first Surface pages, and named patterns - #23
docs(widgets): complete the v0 element pages, first Surface pages, and named patterns#23k08200 wants to merge 8 commits into
Conversation
…tar and card patterns
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing: this PR's target (the v0 widget draft line) is retired by #24. The 10 pages remain on the branch (docs/widget-textfield) as an accurate record of the 0.3 contracts and their measured gaps — reopenable as a 0.3 historical record if wanted, and the gap findings carry forward via the question on #24. |
Signalled in #22. Docs only — 10 files, +1,599 lines, no code changes. Every v0 page declares
Lifetime: Disposable with the v0 widget draftper the docs constitution; stable hubs stay version-neutral.What this adds
Element pages (5 new → catalog coverage 10/10):
textfield,region,text,pager,video— TEMPLATE.md meta blocks, implemented-vs-proposed labelling per claim, grounded in catalog/checker/core/renderer line references, real corpus usage, honest gap lists.First Surface pages (2):
sheet(implemented default modality: structural reserveddismissvia Escape/scrim, focus-restoring dismiss descriptor, occlusion) anddialog(honestly labelled: named by a checker steering note only — no design, no realization, no corpus usage; every surface currently renders as a bottom sheet).Named patterns (2):
avatarandcardunder the stablepatterns/hub — the two names the checker's unknown-element notes already direct authors to; version-neutral, deferring exact contracts to the versioned pages. The surfaces hub's "none documented yet" line now routes to the v0 pages.Findings surfaced while grounding claims (candidate redesign evidence)
modalityis completely unvalidated — the parser accepts any identifier; no checker rule exists.pager'spage-changeis declared in the catalog but wired in no renderer (zero references in web/src).video"deferred" note inUNKNOWN_ELEMENT_NOTES(markup.rs:85-88) is unreachable dead data — catalog names classify asCatalogElementbefore the notes are consulted. Catalog (base.toml:79-107) is current truth; adjudication asked in docs(widgets): contribute v0 draft pages for the 5 undocumented elements and the first Surface pages #22.§10cited by the catalog's controlled-promotion comment resolves to the Instagram spike design's §10, not the v0 spec draft's §10.textfieldhas no uncontrolled draft semantics (an unbound field's typing is clobbered by reconciliation),aria-label-only naming, and no dedicated unit test for the Play in-flight/stash/IME mechanics.UH5020(supplementary reachability) is enforced in code but has no golden rejection.Draft on purpose: happy to hold, split, or reshape per the redesign timeline.