Commit fa75feb511

fa75feb511a41f9024d60ad5b46d5c673526dd3a

parent: a8eaa09d43

Unsigned

cmc <hello@cleberg.net> · 2026-10-26 17:10 UTC

Fix the last clipped picker values, and gate Display on clipping (!58)

Appearance, Accent and Density on Display, and Import Mode on Import & Export,
were the four picker values still clipping at accessibility text sizes:
"Compact", "Default", "System" and "Merge". `AdaptivePicker` already fixes that
construct — these are the screens it had not reached. No plain `Picker` remains
in `SettingsViews.swift`.

## Enforcement

`textClipped` on Display: 3 → 0, on both runtimes. It joins Monitoring Settings
in gating on that category via `enforcedPerScreen`.

Import & Export is **not** gated although its picker is fixed. Its one remaining
clipped finding is its own navigation title, 15 characters, which only a shorter
screen name would change. History & Network, Scheduled Reports and Data
Management are the same case.

| Screen | textClipped floor | textClipped current |
| --- | --- | --- |
| Display | 0 | 0 |
| Import & Export | navigation title only | 0 |

## A correction

An earlier note put "Merge" on iCloud Sync. That was read off a findings list
pooled across screens with `sort -u`; it is on Import & Export, and iCloud Sync
has no clipped findings at all. Corrected in `Docs/ACCESSIBILITY.txt`.

## Still reported

The same picker clipping remains on the integration editor — "Minimum
Severity", "Warning", "Webhook" — which `testIntegrationEditor` covers rather
than the Settings-destination sweep, so it was outside this change.

Verified: `./Scripts/audit-a11y.sh` passes on both tiers with no enforced
failures, before and after adding Display to the gated set. 377/377 unit tests.
Ratchet unchanged at 280.

Ref #21

Layout: unified · split

Docs/ACCESSIBILITY.txt +25 −7
@@ -142,7 +142,7 @@ Three deliberate carve-outs, each with its evidence:
142142`enforcedAuditTypes` is what a fully cleared screen gets. A screen part-way
143143through its burndown passes `enforcing:` to `audit` instead, naming only the
144144categories it has cleared, so progress gates as it is made rather than waiting
145on the whole screen. Monitoring Settings is the first: `.textClipped` only.
145on the whole screen. Monitoring Settings and Display gate on `.textClipped`.
146146
147147Enforcement is a committed constant rather than a CI setting, for two reasons.
148148Environment variables do not work: neither a plain `xcodebuild` env var nor a
@@ -360,12 +360,30 @@ the Settings table above overstate what is left:
360360| `contrast` | 6 | Report-only by standing policy |
361361| `elementDetection` | 1 | Not investigated |
362362
363The actionable remainder is four clipped picker values — "Compact", "Default"
364and "System" on Display, and "Merge" on iCloud Sync — which are the same
365construct `AdaptivePicker` already fixes, on two screens outside that pass. The
366four navigation titles need a shorter screen name, which is a naming decision
367rather than a bug. Everything else either renders correctly or is already
368carved out.
363The actionable remainder was four clipped picker values — "Compact", "Default"
364and "System" on Display, and "Merge" on Import & Export — the same construct
365`AdaptivePicker` already fixes. (An earlier note put "Merge" on iCloud Sync;
366that was read off a sorted list pooled across screens. iCloud Sync has no
367clipped findings at all.)
368
369All four are now fixed, by converting the three Display pickers and the Import
370Mode picker. `textClipped` on Display goes from 3 to 0, so it joins Monitoring
371Settings in gating on that category. Import & Export keeps one clipped finding —
372its own navigation title — so it stays report-only despite its picker being
373fixed.
374
375That leaves, across the ten Settings destinations:
376
377| Finding | Where | Why it stays |
378| --- | --- | --- |
379| 4 clipped navigation titles | History & Network, Scheduled Reports, Import & Export, Data Management | Only a shorter screen name fixes it |
380| 21 `dynamicType` | all | Position-dependent, per the above |
381| 6 `contrast` | all | Report-only by standing policy |
382| 1 `elementDetection` | Local API | Not investigated |
383
384The same picker clipping is still reported on the integration editor —
385"Minimum Severity", "Warning", "Webhook" — which is covered by
386`testIntegrationEditor` rather than the Settings-destination sweep.
369387
370388### What was done about it
371389
DomainDig/SettingsViews.swift +4 −4
@@ -113,13 +113,13 @@ private struct DisplaySettingsView: View {
113113 var body: some View {
114114 Form {
115115 Section("Display") {
116 Picker("Appearance", selection: $storedAppearance) {
116 AdaptivePicker("Appearance", selection: $storedAppearance) {
117117 ForEach(AppAppearance.allCases) { appearance in
118118 Text(appearance.title).tag(appearance.rawValue)
119119 }
120120 }
121121
122 Picker("Accent", selection: $storedAccent) {
122 AdaptivePicker("Accent", selection: $storedAccent) {
123123 ForEach(AccentTheme.allCases) { accent in
124124 Text(accent.title).tag(accent.rawValue)
125125 }
@@ -134,7 +134,7 @@ private struct DisplaySettingsView: View {
134134 .font(appDensity.font(.caption, design: .default))
135135 .foregroundStyle(ThemeToken.textSecondary)
136136
137 Picker("Density", selection: $storedDensity) {
137 AdaptivePicker("Density", selection: $storedDensity) {
138138 ForEach(AppDensity.allCases) { density in
139139 Text(density.title).tag(density.rawValue)
140140 }
@@ -664,7 +664,7 @@ private struct DataPortabilitySettingsView: View {
664664 var body: some View {
665665 Form {
666666 Section("Import & Export") {
667 Picker("Import Mode", selection: $importMode) {
667 AdaptivePicker("Import Mode", selection: $importMode) {
668668 ForEach(DataPortabilityImportMode.allCases) { mode in
669669 Text(mode.title).tag(mode)
670670 }
DomainDigUITests/AccessibilityAuditTests.swift +11 −6
@@ -260,12 +260,16 @@ final class AccessibilityAuditTests: XCTestCase {
260260 /// build on findings that predate the coverage. They are a burndown list
261261 /// for #21, and the enforced set widens per screen as each one clears.
262262 ///
263 /// Monitoring Settings is the first to gate, on `.textClipped` alone: its
264 /// five clipped picker values are fixed (`AdaptivePicker`) and that
265 /// category is now empty on both runtimes. Its `dynamicType` findings stay
266 /// reported — they are reproducible but nothing was found that
267 /// distinguishes a row that reports from one that does not, and the rows
268 /// render correctly at every size. See `Docs/ACCESSIBILITY.txt`.
263 /// Monitoring Settings and Display gate on `.textClipped` alone: their
264 /// clipped picker values are fixed (`AdaptivePicker`) and that category is
265 /// now empty on both runtimes. Their `dynamicType` findings stay reported —
266 /// those land on a position rather than on the row they name, which
267 /// reordering proves, so no fix follows from them.
268 ///
269 /// Import & Export is not gated although its picker value is fixed too: its
270 /// one remaining clipped finding is the navigation title, which only a
271 /// shorter screen name would change. Same for History & Network, Scheduled
272 /// Reports and Data Management. See `Docs/ACCESSIBILITY.txt`.
269273 ///
270274 /// One launch rather than ten: re-selecting the Settings tab pops it back
271275 /// to root, so each destination is reached from a known place, and the
@@ -284,6 +288,7 @@ final class AccessibilityAuditTests: XCTestCase {
284288 "App Info"
285289 ]
286290 let enforcedPerScreen: [String: XCUIAccessibilityAuditType] = [
291 "Display": .textClipped,
287292 "Monitoring Settings": .textClipped
288293 ]
289294