Repository navigation
[CTX-0693] feat(ui): a11y baseline announcements/settings/hot-path + SessionId decision - #1291
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Priority: P1 | Area: area:ui | Labels: feat,P1,area:ui | Milestone: v0.1.0 | RFC: accessibility-baseline-candidate.md; workspace-panel-invariants.md F-3 | Task: CTX-0693
Summary
A11y batch (CTX-0693): completes the candidate accessibility baseline in
bitty-uifor #1183 (announcements, settings composition, hot path — semantics projection, terminal/chrome exposure, and the a11y tree already landed via CTX-0614/CTX-0666), plus the evidence-only SessionId decision record for #995 (still[BLOCKED: OQ-058], no new type).Code changes
crates/bitty-ui/src/a11y.rs(+293): three new candidate sections, all headless/deterministic/bounded, no wall-clock, no render/platform/PTY/plugin coupling:AnnouncementKind(Focus/AsyncState),AnnouncementQueuebounded (MAX_PENDING_ANNOUNCEMENTS = 8,DropOldestso newest state wins), consecutive-duplicate coalescing,MAX_ANNOUNCEMENT_TEXT_LEN = 256fail-closed; push exactly once per focus/async transition, never on render, no timer, no repeating cadence.A11ySettings(core-ownedreduced_motion+high_contrast, both default off, no plugin input by construction):resolve_motioncollapses toMotionSpec::INSTANT(final committed state) mirroring theMotionConfigshort-circuit;high_contrast_outlinesselects the accepted compliant--safeoutline pair.A11ySource+needs_a11y_refresh:Nonenever rebuilds, any named source does; the signature takes no clock/timer handle (no periodic refresh expressible) and no plugin handle/callback (no plugin code per keystroke).crates/bitty-ui/src/view.rs(+5): decision F-3 record — no distinctSessionIdnewtype;ViewIdkeying retained until the owner resolvesOQ-058.crates/bitty-ui/tests/a11y_baseline.rs(+154): 9 new pins (4 announcements, 3 settings, 1 hot path, 1 SessionId/ViewId-keying); file now 27 tests.Per-issue verdicts
bitty-uiwith fail-closed bounds and headless pins (prior slices covered roles/terminal/chrome/tree; this batch adds announcements/settings/hot-path).[BLOCKED: OQ-058]; per the issue, implementation must not start. NoSessionIdtype introduced — decision recorded inview.rsmodule docs (ViewIdkeying retained) and pinned bysession_f3_keeps_viewid_keying.Verification
cargo fmt --all -- --check: cleanRUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets --locked: cleancargo check --workspace --all-targets --locked: cleancargo test --workspace --all-targets --locked: 4955 passed, 0 failed (incl. the 9 new pins)cargo +1.85 check -p bitty-ui --all-targets --locked+cargo +1.85 test -p bitty-ui --test a11y_baseline(MSRV 1.85, no let-chains): clean, 27 passedMAX_*collisions,UiNodeIduntouched, no hardcoded host paths, English-only docsCloses #1183
Relates #995