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:
167167| Integrations | 1: `dynamicType` on "Process Queue Now" |
168168| Integration editor | 7: `contrast` on "Cancel", "Save", "DNS Changed", "Routing Rules"; `dynamicType` on "Cancel" and "Save"; one characterised system-field-placeholder clip |
169169
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
170175"Cancel" and "Save" are the editor's toolbar buttons, plain `Button`s with no
171176density-aware font, which is why they appear in both categories. Note that for
172177`dynamicType` that is **not** the cause — see "Already-scalable fonts report
@@ -381,9 +386,16 @@ That leaves, across the ten Settings destinations:
381386| 6 `contrast` | all | Report-only by standing policy |
382387| 1 `elementDetection` | Local API | Not investigated |
383388
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.
389`AdaptivePicker` also reached the integration editor's three pickers — Type,
390Minimum Severity and SMTP Security. Its clipped findings go from four to one:
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.
387399
388400### What was done about it
389401
DomainDig/IntegrationsView.swift +3 −3
@@ -228,7 +228,7 @@ private struct IntegrationEditorView: View {
228228 var body: some View {
229229 Form {
230230 Section("Integration") {
231 Picker("Type", selection: $type) {
231 AdaptivePicker("Type", selection: $type) {
232232 ForEach(selectableTypes) { integrationType in
233233 Text(integrationType.title).tag(integrationType)
234234 }
@@ -246,7 +246,7 @@ private struct IntegrationEditorView: View {
246246 }
247247
248248 Section("Routing Rules") {
249 Picker("Minimum Severity", selection: $minimumSeverity) {
249 AdaptivePicker("Minimum Severity", selection: $minimumSeverity) {
250250 ForEach(EventSeverity.allCases) { severity in
251251 Text(severity.title).tag(severity)
252252 }
@@ -329,7 +329,7 @@ private struct IntegrationEditorView: View {
329329 .autocorrectionDisabled()
330330 .keyboardType(.emailAddress)
331331
332 Picker("Security", selection: $smtpSecurity) {
332 AdaptivePicker("Security", selection: $smtpSecurity) {
333333 ForEach(SMTPSecurityMode.allCases) { mode in
334334 Text(mode.title).tag(mode)
335335 }