Skip to content

fix(link): read the new-tab warning from one key on both paths - #260

Merged
Ardnived merged 1 commit into
mainfrom
claude/link-one-new-tab-key
Nov 18, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/link-one-new-tab-key

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

Merge order

This merges first. sydevs/SahajCloud#1196 then retires opens_in_new_tab. If SahajCloud
deploys first, the aria-label path (SocialShare, SocialIcon) reads a missing key, and a
screen reader hears the key path. The opens_in_new_tab line in lib/translations.en.json and
server/payload-types.ts stays until the contract re-sync after SahajCloud merges. Both files are
generated, so neither is edited by hand here.

Change outline

- opensNewTab && ariaLabel ? t('common.a11y.opens_in_new_tab', { label: ariaLabel }) : ariaLabel
+ const suffix = opensNewTab ? t('common.a11y.opens_in_new_tab_suffix') : undefined
+ const label = suffix && ariaLabel ? `${ariaLabel} ${suffix}` : ariaLabel

English output is unchanged: aria-label="Our partner (opens in new tab)". The children path
already reads the suffix after the link's words, so the label path now uses the same order. A
translator writes one string, which is read after the link's name either way.

Test results

  • ✓ vitest run components/atoms/Link components/atoms/graphics/SocialIcon: 25 tests. The
    existing aria-label assertions in both files pin the unchanged English output.
  • ✓ tsc --noEmit
  • ✓ eslint on the changed file: no errors. Its three warnings were already there.

🤖 Generated with Claude Code

The aria-label branch joined the label onto the suffix key in code instead of
reading the `%{label}` sentence key, so `common.a11y.opens_in_new_tab` has no
caller left and SahajCloud can retire it (sydevs/SahajCloud#1196).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived added a commit to sydevs/SahajCloud that referenced this pull request Nov 18, 2026
WeMeditate Web's Link now reads `opens_in_new_tab_suffix` on its aria-label
path too (sydevs/WeMeditateWeb#260), so the `%{label}` sentence form has no
caller. A data-only migration drops it from every stored locale and version
row, which would otherwise refuse every save of the global, and ships the
suffix's English copy, which the seed reaches only on a fresh database.

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

@sydevs-bot sydevs-bot 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.

Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is

@sydevs-bot

Copy link
Copy Markdown
Contributor

Adversarial review skipped: 1 file(s), 13 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-design 55b6089 Commit Preview URL

Branch Preview URL
Nov 18 2026, 08:01 PM

@Ardnived
Ardnived added this pull request to the merge queue Nov 18, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 55b6089 Commit Preview URL

Branch Preview URL
Nov 18 2026, 08:01 PM

Merged via the queue into main with commit 6c71b1e Nov 18, 2026
16 of 18 checks passed
@Ardnived
Ardnived deleted the claude/link-one-new-tab-key branch November 18, 2026 20:59
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 18, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 18, 2026
main reformatted the three files this branch rewrites (#199, #260): prettier
collapsed each `stateStyles` map onto one line, added trailing commas, and
perfectionist sorted the JSX props. This branch had replaced `forwardRef` with
React 19's `ref` prop over the same lines, and added scoped eslint disables in
`ColumnCarousel`.

Every hunk keeps this branch's shape and main's formatting. No side was taken
wholesale: `Input` and `Textarea` are plain functions taking `ref` as a prop,
with main's one-line `stateStyles` and sorted props; `ColumnCarousel` keeps
main's `scrollTo` wrapping and one-line signature, and the disable comments keep
the two `key={index}` elements multi-line.

Lean gate green on the merge: eslint 0 errors, tsc clean, 1124 tests passed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZ3NhbnJ5kzajYDrq5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants