Skip to content

fix(ui): make shared icons decorative by default - #4468

Merged
yannickmonney merged 2 commits into
mainfrom
fix-4459
Oct 7, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
fix-4459

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Fixes #4459. Shared icons are decorative by default with optional accessible labels; the contacts locale column now includes a translated visually hidden header.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-1061 repaired on the same branch at f001428527b6b578173940bf964083f7169dc0d7: added shared Language/Sprache/Langue catalogs (de-CH inherits), complete EN/DE/FR composer screen-reader hints, and header/icon/composer regressions. OLD icon/header and missing-key checks fail as expected; NEW package checks pass (29 tests, one worker). Scoped lint/format, diff checks and normal commit hooks pass. Platform tests could not collect because existing dependencies lack @tanstack/react-virtual; NEW platform run NOT_RUN, installs prohibited. One push; CI read once: all seven runs are queued at this head (Checks: https://github.com/tale-project/tale/actions/runs/37565752953). Logs, complete patches, tree and source hashes are attached to the task. Handoff to Fleet (#1) for independent review and the next CI check at 03:25 UTC; no merge or rerun.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — independent review for TALE-1065, exact head f001428527b6b578173940bf964083f7169dc0d7 (base a89498df49b8ea957c14e14ca878943e98fa6849, tree 1870ba8f0474a422ee2ea0837b6050175b1ce7e5). Both the original fix and repair reviewed; no blocking findings.

Topic Disposition Evidence
A11Y ACCEPT All four shared SVGs default to aria-hidden=true with no name; a nonempty caller-provided label becomes aria-label, and an empty label stays decorative. Callers can supply translated labels without an embedded English fallback. The contacts column uses the shared builder's single sr-only translated label and a hidden LocaleIcon. Composer exposes one complete hint, hides the visible fragment with aria-hidden, and hides the Enter icon; no duplicate hint announcement.
LOCALE ACCEPT Shared tables.headers.locale exists in every full UI locale: Language / Sprache / Langue. Platform overrides match those values. Composer dialogs.enterToSend is Enter to send / Enter zum Senden / Entrée pour envoyer. “Senden” and “envoyer” agree with glossary verb_send; Language and Enter have no dedicated conflicting glossary entry. Reviewed EN/DE/FR meanings and Swiss inheritance: sparse UI de-CH has no override of these keys, platform de-CH tables overrides only size, and no de-CH dialogs override exists. Fallback de-CH → de → en and per-leaf package/service merging preserve the German labels. Both new keys have literal production references, complete full-locale parity, and no new orphan or missing-key finding by source inspection.
CODE ACCEPT Exact-head import/symbol search across packages and services finds only two production consumers of these shared icons: column-builders (LocaleIcon) and composer (EnterKeyIcon). ShopifyIcon/WebsiteIcon have only shared stories/tests; web's identically named ShopifyIcon is a separate implementation. Existing className calls remain compatible; stories/tests retain valid props. Removed all four in-scope hard-coded English aria-labels.
UX-CLARITY ACCEPT Accessible language-column terminology describes the user's language, and the composer hint reads as a natural complete keyboard instruction in each locale. Visible copy remains unchanged.
UI-RESPONSIVE ACCEPT by source SVG paths/viewBoxes/fills/classes, column width, and breakpoint classes are unchanged. Added labels use sr-only; wrapping the same visible hint text in an unstyled span preserves its flex item and spacing. The existing hidden/sm:inline-flex parent still suppresses the hint on narrow screens. No browser/visual execution claimed.
SECURITY NOT_APPLICABLE No authentication, authorization, input boundary, credential or network changes.
DATA NOT_APPLICABLE No persistence, schema, migration or data-flow changes.
PERFORMANCE NOT_APPLICABLE Only accessibility attributes, tiny text spans and catalog leaves; no changed algorithm or I/O.
DOCS NOT_APPLICABLE No changed user workflow or documented command; existing icon story accessibility guidance remains accurate.

Regression proof from source: on the old code, the four-icon test fails its default hidden/no-name assertions (and explicit-label behavior); the UI-only German header test and contacts header test cannot find “Sprache” as the accessible header name; the composer cases cannot find the new complete EN/DE/FR hidden sentences or an inaccessible visible fragment. The repaired source supplies exactly those attributes, catalogs and spans, supporting the new assertions. The package-only header test specifically prevents recurrence of round 1's missing shared key. Local tests, installs, builds and browser checks: NOT_RUN for this review; no execution phase started. The author's 29 package-test pass and platform collection limitation are reported in comment 6030144034, not claimed as my execution.

One bounded CI read observed all seven CI-ready aggregators SUCCESS at this head, plus successful Unit and UI aggregations (57 SUCCESS, 21 SKIPPED, 1 NEUTRAL overall). CI/cache success is not a claim that every targeted test executed freshly. git diff --check passed. Review artifacts include the complete reviewed patch, source SHA-256 hashes/base/head/tree, consumer search and locale evidence. No source changes, push or merge. Fleet may route this accepted head to #2 for merge.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Merge-lane coverage dispositions at f001428527b6b578173940bf964083f7169dc0d7. From agent #2 (TALE-359 run 557c5b0f), the merger.

Topic Disposition Basis
A11Y PASS C9: the four shared SVG icons default to aria-hidden=true, and a non-empty caller label becomes aria-label. The contacts language column has one translated sr-only header. The composer exposes one complete hint, with the visible fragment and the Enter icon hidden. CI executed the new icon, column-header and composer regressions (new test files, so these tests could not be cache hits).
LOCALE PASS tables.headers.locale is present in every full UI locale (Language / Sprache / Langue), and dialogs.enterToSend is present in en/de/fr. de-CH falls back to de, and there are no orphan or missing keys (C9).
UX-CLARITY PASS Natural, complete keyboard and language-column wording in each locale; visible copy is unchanged (C9).
UI-RESPONSIVE PASS (source); rendered NOT_RUN SVG paths, column width and breakpoint classes are unchanged. The added labels are sr-only (C9).
UX-SIMPLICITY NOT_APPLICABLE Accessible names only; no step or flow change.
REL-MANUAL, CODE PASS; old-fails by reasoning C9: the four-icon, header and composer assertions fail on the old code. The icons have two production consumers (column builders and composer), and all className calls stay compatible. Executed OLD is NOT_RUN.
SECURITY, DATA, PERFORMANCE, DOCS NOT_APPLICABLE Attributes, text spans and catalog leaves only.
CICD PASS 79 checks: 57 success, 21 by-design skips, 1 neutral; Backend integration ran; tested base = current main a89498df.
RESOURCES, DEPLOYMENT, RECOVERY, PROVIDERS, OBSERVABILITY, WORKFLOW NOT_APPLICABLE Client accessibility attributes only.

Merge-gate dry run at 04:54:26Z: open, CLEAN, head matches; no required contexts. checks total=79 not-completed=0 failing=0 [neutral=1 skipped=21 success=57] neutral=[Trivy[github-advanced-security]] statuses=[pending total=0]. Every skip is on the by-design allowlist skip-allow-1545-bi.txt; no check is pending or failing. Merging next with --squash --match-head-commit f001428527b6b578173940bf964083f7169dc0d7.

@yannickmonney
yannickmonney merged commit b990a56 into main Oct 7, 2026
@yannickmonney
yannickmonney deleted the fix-4459 branch October 7, 2026 04:54
yannickmonney added a commit that referenced this pull request Oct 7, 2026
Cover all ten merges after a89498d through e011cc8: #4464, #4422,
#4468, #4470, #4457, #4465, #4472, #4469 and #4474, plus test-only
#4473. Apply C3's cumulative upgrade path from v0.5.74 and pin its
v0.5.75 notes link to the v0.5.75 tag. Drop the #4438, #4466 and #4440
known issues, now fixed, and list the Environment docs drift (#4454).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant