Commit c2a169bb42

c2a169bb422382d07ad637f55d82289108d77cbc

parent: fa75feb511

Unsigned

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

Apply AdaptivePicker to the integration editor (!59)

Type, Minimum Severity and SMTP Security were the last plain `Picker`s in the
app. Their clipped values at accessibility text sizes — "Webhook" and "Warning"
— are fixed by the same construct used on the Settings screens.

Clipped findings on the editor go from four to one:

| Tier | Before | After |
| --- | --- | --- |
| floor (iOS 18.6) | "Add Integration", "Minimum Severity", "Warning", "Webhook" | "Add Integration" |
| current (iOS 27.0) | — | none |

"Minimum Severity" cleared too, but that finding was already unreliable: it
reported on a single-test run of the editor and not on a full-suite run of the
same build.

## Not gated

`.textClipped` enforcement is **not** extended to this screen. "Add Integration"
is a 15-character navigation title — the same case as History & Network,
Scheduled Reports, Import & Export and Data Management, where only a shorter
screen name would help. And a screen whose other clipped finding comes and goes
between runs of the same build is not a screen to gate.

## A check on the earlier screens

Setting `.pickerStyle(.menu)` explicitly where the code had `.automatic` could
in principle have changed rendering below accessibility sizes, on the screens
already merged in !53 and !58. Compared a default-size capture of Monitoring
Settings against the one taken before the first picker change: identical
layout, standard menu rows with the value in blue. No visual change below
accessibility sizes.

Verified: `./Scripts/audit-a11y.sh` passes on both tiers with no enforced
failures. 377/377 unit tests. Ratchet unchanged at 280.

Ref #21

Layout: unified · split

Docs/ACCESSIBILITY.txt +15 −3
@@ -167,6 +167,11 @@ the build on findings that predate the coverage. What they report on iOS 27.0:
167| Integrations | 1: `dynamicType` on "Process Queue Now" | 167| Integrations | 1: `dynamicType` on "Process Queue Now" |
168| Integration editor | 7: `contrast` on "Cancel", "Save", "DNS Changed", "Routing Rules"; `dynamicType` on "Cancel" and "Save"; one characterised system-field-placeholder clip | 168| Integration editor | 7: `contrast` on "Cancel", "Save", "DNS Changed", "Routing Rules"; `dynamicType` on "Cancel" and "Save"; one characterised system-field-placeholder clip |
169 169
170That table is the iOS 27.0 reading from !42. The editor's clipped picker values
171were fixed later — see the picker section below — and its `contrast` and
172`dynamicType` attribution churns between runs, so treat the names as indicative
173rather than a checklist.
174
170"Cancel" and "Save" are the editor's toolbar buttons, plain `Button`s with no 175"Cancel" and "Save" are the editor's toolbar buttons, plain `Button`s with no
171density-aware font, which is why they appear in both categories. Note that for 176density-aware font, which is why they appear in both categories. Note that for
172`dynamicType` that is **not** the cause — see "Already-scalable fonts report 177`dynamicType` that is **not** the cause — see "Already-scalable fonts report
@@ -381,9 +386,16 @@ That leaves, across the ten Settings destinations:
381| 6 `contrast` | all | Report-only by standing policy | 386| 6 `contrast` | all | Report-only by standing policy |
382| 1 `elementDetection` | Local API | Not investigated | 387| 1 `elementDetection` | Local API | Not investigated |
383 388
384The same picker clipping is still reported on the integration editor — 389`AdaptivePicker` also reached the integration editor's three pickers — Type,
385"Minimum Severity", "Warning", "Webhook" — which is covered by 390Minimum Severity and SMTP Security. Its clipped findings go from four to one:
386`testIntegrationEditor` rather than the Settings-destination sweep. 391"Warning" and "Webhook" cleared, and "Minimum Severity" cleared too, though
392that one had already shown itself unstable — it reported on a single-test run
393of the editor and not on the full-suite run of the same build.
394
395The editor is **not** gated on `.textClipped` even so. "Add Integration" is a
39615-character navigation title, the same unfixable case as the four Settings
397destinations, and a screen with one finding that comes and goes between runs is
398not a screen to gate.
387 399
388### What was done about it 400### What was done about it
389 401
DomainDig/IntegrationsView.swift +3 −3
@@ -228,7 +228,7 @@ private struct IntegrationEditorView: View {
228 var body: some View { 228 var body: some View {
229 Form { 229 Form {
230 Section("Integration") { 230 Section("Integration") {
231 Picker("Type", selection: $type) { 231 AdaptivePicker("Type", selection: $type) {
232 ForEach(selectableTypes) { integrationType in 232 ForEach(selectableTypes) { integrationType in
233 Text(integrationType.title).tag(integrationType) 233 Text(integrationType.title).tag(integrationType)
234 } 234 }
@@ -246,7 +246,7 @@ private struct IntegrationEditorView: View {
246 } 246 }
247 247
248 Section("Routing Rules") { 248 Section("Routing Rules") {
249 Picker("Minimum Severity", selection: $minimumSeverity) { 249 AdaptivePicker("Minimum Severity", selection: $minimumSeverity) {
250 ForEach(EventSeverity.allCases) { severity in 250 ForEach(EventSeverity.allCases) { severity in
251 Text(severity.title).tag(severity) 251 Text(severity.title).tag(severity)
252 } 252 }
@@ -329,7 +329,7 @@ private struct IntegrationEditorView: View {
329 .autocorrectionDisabled() 329 .autocorrectionDisabled()
330 .keyboardType(.emailAddress) 330 .keyboardType(.emailAddress)
331 331
332 Picker("Security", selection: $smtpSecurity) { 332 AdaptivePicker("Security", selection: $smtpSecurity) {
333 ForEach(SMTPSecurityMode.allCases) { mode in 333 ForEach(SMTPSecurityMode.allCases) { mode in
334 Text(mode.title).tag(mode) 334 Text(mode.title).tag(mode)
335 } 335 }