Repository navigation
chore(contracts): drop the retired time_in_place translation key - #360
Merged
Merged
Conversation
sydevs/SahajCloud#1057 removed `event.display.time_in_place` from `sy-atlas-translations`, so the live global no longer declares it. The snapshot is regenerated from production by `pnpm sync:translations --write`, and the regenerated diff is that one key and nothing else — no other key has moved since the last sync. `RETIRING_KEYS` goes empty with it, in the same commit, because the two are coupled in both directions and each half was watched failing: - the entry alone, with the key already gone from the snapshot, reddens `names a retiring key only while it is unwired and still published` on `!resolves(key)`; - the key alone, with no entry covering it, reddens `is referenced somewhere in the source` as copy nothing renders. The window the registry exists to cover is closed, so the exemption now covers nothing. Nobody else owned this: the `contractSync` PR that follows a SahajCloud merge regenerates `src/types/payload/` only. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZQf763JfgjCkPrpYc
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 4b9f179 | Nov 02 2026, 02:18 AM |
sydevs-bot
marked this pull request as ready for review
November 2, 2026 02:21
sydevs-bot
enabled auto-merge
November 2, 2026 02:21
Contributor
Author
|
Adversarial review skipped: 2 file(s), 5 changed line(s), under 🤖 sydevs dispatcher |
Ardnived
approved these changes
Nov 2, 2026
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
event.display.time_in_placeleavestranslations.en.json, regenerated wholesale from production.RETIRING_KEYSgoes empty in the same commit: the pin reddens on either half alone.Preview
Test results
.claude/skills/pr-prep/check.sh(lint + typecheck +test:run) — 157 files, 1898 tests passedsrc/config/translations.test.ts)build+sizepnpm sync:translations(read-only, after the write):translations.en.json matches production.Manual verification
pnpm sync:translations(read-only) to confirm the snapshot still matches what production serves.Notes for reviewer
names a retiring key only while it is unwired and still publishedon!resolves(key). The key alone, with no entry covering it, reddensis referenced somewhere in the sourceas copy nothing renders. That is why this is one commit and not two.RETIRING_KEYSstays, empty. It is a standing registry — the mirror ofPENDING_KEYS— and its docblock carries the ⚠ that explains the window. Empty is its resting state, not dead code.src/types/payload/payload-types.ts:9764still declarestime_in_place?: string. That file is generated, excluded from the spec's walk byincludeGeneratedTypes: false, and owned by thecontractSyncPR that follows a SahajCloud merge. The field is optional, sosnapshot satisfies WidgetTranslationsis unaffected; a re-wire would now fail typecheck, because the key is no longer in the snapshot'sParseKeys.securityReview.triggerPatternnorcontentPatternmatches this diff./simplify's four angles were answered by inspection rather than by four agents: the diff adds one line,const RETIRING_KEYS: Record<string, string> = {}. The only candidate it raises — delete the now-empty registry — is rejected above.Detail
The snapshot is never hand-edited.
scripts/sync-translations.mjsreads thesy-atlas-translationsglobal fromhttps://cloud.sydevelopers.comand rewrites the file whole, so a sync for one ticket can carry any key SahajCloud shipped since the last one. The regenerated diff here is one deletion and nothing else, which answers the ticket's third criterion: no other key moved, so no otherPENDING_KEYSorRETIRING_KEYSentry is settled by this sync.Upstream, sydevs/SahajCloud#1057 (landed as #1059) removes the key from the translations schema and the ten seeds, and adds a migration sweeping it out of the
event_displayandversion_event_displayJSONB columns — so production had already stopped serving it when this snapshot was taken.comment-lint.mjs --base origin/main: no banned comment added. Docs swept fortime_in_placeandRETIRING_KEYSacrossdocs/,AGENTS.mdand every nested guide — nothing stale. NoCHANGELOG.mdentry: the file records what a host can observe, andCHANGELOG.md:323-326already describes the bare host clock rather than the retired"%{time} in %{city}"wording.Closes #354
Generated by Claude Code