Repository navigation
id-render: native lowering (stages 4-5) through the #5852 tables - #10860
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 31 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. |
What
Stages 4–5 of the #5855 pipeline for the native targets — remainder item 1 for #7918 from the resume note of 2026-11-16 19:05 UTC (the web slice was PR #10847).
native_table.rs— the id: design: native rendering: assertion → OS-standard controls (from #5679) #5852 tables as data (id: design: rendering pipeline & conformance suite (from #5679) #5855 invariant 6): §2 element-kind → OS-standard control per platform (mac/windows/gnome, incl. the variant-drivenfieldrows), and §3 assertion mapping per platform whereNoneis the explicit platform-default marker of §3.1 (corner on all platforms §3.7, density on GNOME §3.5, destructive style on Windows §3.4, border-focus everywhere §3.2/§3.8). Spacing (§3.6) is generative overspace-0…space-8in the platform's layout unit.lower_native.rs—lower_native+emit_native_json: walks the validated IR and the composed document together (matched by document path, as in the web lowering) and emits the id: design: rendering pipeline & conformance suite (from #5679) #5855 §3.2 native artefact — control-kind sequence + accessibility tree — plus the machine-readable coverage report: assertions mapped (with the platform rendering), assertions platform-defaulted with the §3.1 warning (never silent, invariant 6), element defaults (standard container), presentation overrides excluded per id: design: custom GUI rendering as first-class overrides (from #5679) #5853's native exclusion, and raw-CSS winners recorded as platform defaults (raw CSS does not exist natively, id: design: native rendering: assertion → OS-standard controls (from #5679) #5852 A3). The a11y tree (role/name/structure) is built platform-independently, per invariant 5.lib.rs— module wiring,lower_document_nativeentry point, docs.lower.rsJSON helpers becomepub(crate)for reuse.Tests
tests/lower_native.rs: 10 new tests, each naming the record behaviour it verifies (§2 control selection per platform, §3.2 sequence order, invariant 5 a11y identity across platforms, §3 mapped renderings, §3.1 platform-default reporting incl. cross-platform differences, §3.2/§3.8 focus default, #5853 presentation exclusion, A3 raw-CSS default, #5855 invariant 2 byte determinism, non-native target rejection).Full crate:
cargo test -p id-render— see the task note on #7918 for the result line. fmt + clippy clean.Remaining on #7918 after this slice
assertslot stays opaque until id: design: style assertion vocabulary (from #5679) #5850 settles, id: design: rendering pipeline & conformance suite (from #5679) #5855 A2).Refs #7918 (does not close it).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.