Skip to content

chore(ui): drop 111 resolved entries from the accessibility baseline - #1443

Merged
ross-dash merged 1 commit into
developfrom
chore/a11y-baseline
Nov 19, 2026
Merged

ross-dash merged 1 commit into
developfrom
chore/a11y-baseline

Conversation

@ross-dash

@ross-dash ross-dash commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

scripts/a11y_audit.py --check reports that 111 entries in scripts/a11y_baseline.json no longer match any finding. This removes them, so a finding that comes back on those lines fails CI again (the ratchet in ACCESSIBILITY.md, "After you fix something").

  • Baseline: 655 → 544 entries. The new list is a strict subset of the old one; no entry is added.
  • Removed by rule: A11Y007 77, A11Y004 24, A11Y012 4, A11Y010 3, A11Y009 2, A11Y002 1.
  • Most come from screens rewritten since the baseline was recorded (internal transfer, identities, CoinJoin move funds, payments landing, contact profile, Join DashPay readiness). Not every one is a fix: some code moved or was rewritten. Either way, none of the 111 points at code that still exists.

Why not --write-baseline

Regenerating would also record 38 current A11Y007 (Dynamic Type) findings that are not in the baseline today. They are P2, so --check prints them as advisory and does not fail; recording them would silence them. Some are existing debt under a new path (CoinJoinMoveFundsSheet.swift moved into CoinJoinMoveFunds/), the rest came with the newer transfer screens (TransferSourceRow, ShieldedRecoverySheet, TransferPreview, …). They stay advisory, as they are now.

No app code changes.

Test plan

  • scripts/a11y_audit.py --check: no new blocking findings, no "baseline entries fixed" message left
  • Old vs new baseline compared as multisets of (rule, path, fingerprint): 111 removed, 0 added

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the project’s recorded accessibility-finding totals. The baseline now reflects fewer findings overall, with counts adjusted across several checks and some previously recorded finding types no longer listed. These changes update the tracked reference data; they do not indicate that accessibility issues were fixed in this release.

`a11y_audit.py --check` reported 111 baseline entries that no longer match
any finding. They are removed, and nothing is added: `--write-baseline`
would also have recorded 38 current A11Y007 (Dynamic Type) findings, which
the check prints as advisory, and recording them would silence them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The accessibility baseline now records 544 findings, down from 655. The rule counts and recorded entries change across six accessibility rules.

Changes: Accessibility baseline

Layer / File(s) Summary
Update finding counts and records
scripts/a11y_baseline.json
The baseline counts and recorded findings are revised. Entries are removed from A11Y002, A11Y004, A11Y007, A11Y009, A11Y010, and A11Y012. Entries are added for A11Y004 and A11Y007.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jeanpierreroma, romchornyi

Merge Risk: Minimal · up to 605f4

This change trims stale entries from the accessibility baseline and does not touch app behavior. No concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: removing 111 resolved entries from the accessibility baseline. The raw summary and objectives both describe a baseline cleanup of the same scale. The title is specific…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: removing 111 resolved entries from the accessibility baseline. The raw summary and objectives both describe a baseline cleanup of the same scale. The title is specific and accurate, but the raw summary's counts (655 to 544, with A11Y009 and A11Y010 removed and five A11Y004 and two A11Y007 entries added) differ from the objectives (no entries added, 111 removed). The title matches the objectives, so it is not off-topic. The discrepancy is a content issue for the review, not a title issue.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb8b0102-407f-483f-9ca7-cbf64b2fe364
Commits

Reviewing files that changed from the base of the PR and between b2f0069 and 605f404.

Files selected for processing: 1

  • scripts/a11y_baseline.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@thepastaclaw

thepastaclaw commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit 605f404) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

The PR correctly removes 111 stale accessibility-baseline entries, and the supplied CI evidence shows the accessibility audit passed with no application-code changes. One documentation nit remains: the claim that none of the removed entries point to code that still exists is literally inaccurate because 11 removed records share fingerprints with findings that remain live; the ratchet behavior itself is correct.

💬 1 nitpick(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

1 finding(s) not shown inline (the lines are not part of this PR's diff)

💬 Nitpick: PR description overstates that all removed entries point to deleted code
scripts/a11y_baseline.json:1

The baseline reduction is functionally correct, but the PR description says that “none of the 111 points at code that still exists.” At this head, 11 removed records share fingerprints with findings that the audit still produces; for example, ShieldedSyncInfoScreen.swift fingerprint 941a8431f65f2430 remains represented by nine live baseline entries after one surplus entry was removed. The precise claim is that no live finding lost coverage: each remaining live occurrence is still covered one-for-one, while surplus allowance was removed.

source: glm-5.3-flash (phase1-reviewer: general)

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — This is a small, self-contained baseline JSON cleanup with no application behavior or critical-surface changes, and its correctness is straightforward to verify against the audit tool and stated multiset comparison.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 98% left, weekly 98% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.

In `scripts/a11y_baseline.json`:
- [NITPICK] scripts/a11y_baseline.json:1: PR description overstates that all removed entries point to deleted code
  The baseline reduction is functionally correct, but the PR description says that “none of the 111 points at code that still exists.” At this head, 11 removed records share fingerprints with findings that the audit still produces; for example, ShieldedSyncInfoScreen.swift fingerprint 941a8431f65f2430 remains represented by nine live baseline entries after one surplus entry was removed. The precise claim is that no live finding lost coverage: each remaining live occurrence is still covered one-for-one, while surplus allowance was removed.

@ross-dash
ross-dash merged commit 5b5f7f4 into develop Nov 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants