Repository navigation
feat(id-render): stages 4-5 — lower + emit for the web target (#7918, #5851) - #10847
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex findings disposition (task 14566, lane code-c): the Codex code review failed to complete on both the PR-open run and the |
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
What
Stages 4–5 of the #5855 rendering pipeline for the web target, in
pkgs/id/crates/id-render(follow-on to the stage 1–2 landing and the stage-3 compose landing in #10768):src/web_table.rs— the id: design: web rendering: assertion → Tailwind mapping (from #5679) #5851 mapping table as data (per id: design: rendering pipeline & conformance suite (from #5679) #5855 invariant 6): §2 element-kind → DOM rows (fixed + variant-driven:headinglevel,list/field/alert/cellkind), §3 role → utility rows (tone §3.1, text §3.2, corner/elevation §3.4, emphasis §3.5), and the generative §3.3 spacing rule (pad/gapoverspace-0…space-8).src/lower.rs—lower_web: walks the validated document and the composed (resolved) IR together, matched by document path (stage 3's output carries final assertion sets but not source attributes, and §2 rows are variant-driven — the boundary is stated in the module docs). Per element: DOM tag, the id: design: semantic markup vocabulary v1 (from #5679) #5849 accessibility role carried through unchanged (invariant 5), DOM attributes (§2 role/type rows), and order-normalised utilities. Per assertion: mapped (classes recorded), or defaulted — no utilities, recorded in the report with the id: design: web rendering: assertion → Tailwind mapping (from #5679) #5851 §3.7 coverage-warning text, never silent (§5855 §3.3, invariant 4). Density is mapped with no utilities (§3.3 theme multiplier). Raw-CSS winners are carried as author CSS text on the node, never classes (§5851 §5), and the composition report's reported overrides pass through. Kinds with no §2 row lower todivand are recorded as element defaults.emit_json: artefact + coverage report as one deterministic JSON document (no timestamps, invariant 2), including the generated class set in safelist form (id: design: web rendering: assertion → Tailwind mapping (from #5679) #5851 §3.8).Stated boundaries (in the module docs)
assertgrammar, which stage 2 still carries opaquely (assumption A2) — id: design: style assertion vocabulary (from #5679) #5850 is still open.Tests
cargo test -p id-render— 33 pass, including 8 new tests intests/lower.rs, each naming the record behaviour it verifies: §2 tag emission, invariant 5 role survival, §3 mapped utilities + class-set normalisation, §3.3/§3.7 defaulted-and-reported, density, raw-CSS-as-text, invariant 2 byte determinism, non-web rejection.Refs #7918 (task 14566), #5851, #5855.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.