Skip to content

feat(translations): the atlas Share heading and Copy link's answers - #1287

Merged
Ardnived merged 4 commits into
mainfrom
feat/atlas-share-copy-keys
Nov 26, 2026
Merged

Ardnived merged 4 commits into
mainfrom
feat/atlas-share-copy-keys

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Four sy-atlas-translations keys for the atlas widget's single share block: a class-specific Share heading, plus a Copy link button that says "Link copied" and explains how to copy by hand when the clipboard is refused.
  • Each key declares its English as a schema default, so production fills it on boot and no seed changes.

Change outline

Contract — sy-atlas-translations, share

 share                         src/globals/SahajAtlasTranslations/translationsSchema.json
   title
+  title_class                 # default "Share this class": the Share view's heading
   native
+  link_copied                 # default "Link copied": Copy link's label for 2.5 s after a copy
+  copy_failed_touch           # default "Couldn’t copy it. Press and hold the link below, …"
+  copy_failed_pointer         # default "Couldn’t copy it. The link below is selected: press Ctrl+C, …"
   qr_title                    # description only: the row now sits at the bottom of a class page
   qr_hint
   qr_download
   qr_failed

common.chrome.copied changes only its description: the share link's copy now answers with share.link_copied.

Preview

No preview surface

Contract impact

src/payload-types.ts gains the four optional keys on SyAtlasTranslationsShareStrings. Consumer: sydevs/SahajAtlasWeb, branch feat/share-content (not yet pushed). It wires the t() calls once pnpm sync:translations --write reads these keys from production.

Test results

  • Lean gate: ✓ (lint, format check, typecheck, unit lane: 3924 passed)
  • Targeted specs: translations-english-defaults.int.spec.ts 5 passed
  • Build: N/A

Notes for reviewer

Tiny diff, read inline.

  • Follow-up: once the atlas side lands, share.title ("Share Meditation") has no reader. A later PR retires it with the usual data migration.
  • /code-review high ran (no review toolkit installed). Fixed: the copy-failed hints now use a typographic apostrophe, like qr_failed. common.chrome.copied's description no longer claims the share link.
  • Dismissed: "add the four keys to seeds/sy-atlas-translations/data.en.json". The corpus file must not carry a key that declares a default (src/globals/AGENTS.md), and atlas-translations-schema.spec.ts holds that.
  • Dismissed: "split the Ctrl+C / ⌘C hint by platform". The widget already picks the touch or pointer string by input. Splitting Mac from PC would need user-agent sniffing, which the widget refuses.

🤖 Generated with Claude Code

Ardnived and others added 4 commits November 26, 2026 14:21
Four sy-atlas-translations keys for SahajAtlasWeb's one share block:
share.title_class ("Share this class"), share.link_copied, and the two
copy-by-hand hints shown when a page refuses the clipboard. Each declares
its English as a schema default, so production fills on boot.

qr_title's description now places the row at the bottom of the class page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1287 November 26, 2026 21:25 Destroyed
@railway-app

railway-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1287 environment in sahajcloud

Service Status Web Updated
SahajCloud 🕒 Building (View Logs) Web Nov 26, 2026 at 9:25 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@Ardnived
Ardnived merged commit 55ba072 into main Nov 26, 2026
10 of 11 checks passed
@Ardnived
Ardnived deleted the feat/atlas-share-copy-keys branch November 26, 2026 21:26
sydevs-dispatcher Bot pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 26, 2026
Ardnived pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
* chore(contracts): re-sync from sydevs/SahajCloud#1285

* chore(contracts): re-sync from sydevs/SahajCloud#1287

---------

Co-authored-by: sydevs-bot <[email protected]>

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1287 — 30b8897f Deployed Nov 26, 2026 by railway-app[bot]
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.

1 participant