fix(i18n): describe session transfer as a one-time code, not a link - #8236
Open
JohnMcLear wants to merge 1 commit into
Open
JohnMcLear wants to merge 1 commit into
JohnMcLear wants to merge 1 commit into
Conversation
…8173) The home-page settings dialog told users to copy and open a "link" to transfer their "session", but the flow copies a bare one-time UUID that has to be pasted into the Receive session tab, and only moves the author token and pad preferences (not a login/Express session). Update the English copy of the existing keys to describe the real code-based workflow, its single-use/5-minute lifetime, and exactly what is moved. Add a Playwright spec asserting the rendered strings. Fixes #8173 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012kA75NPq8nGRidAwhPXeCi
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR |
PR Summary by QodoClarify session transfer as a one-time code
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
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.
Fixes #8173
Root cause
The home page settings dialog (
src/templates/index.html, keys insrc/locales/en.json) told users to copy a link and open it on the target device to transfer their session. Whatwelcome.tsactually does is different:POST /tokenTransfer, which has to be pasted into the "Receive session" tab (#codeInput) of the other browser;tokenTransfer.tsmoves only the author token and theprefsHttppreferences cookie. No login/Express session is moved.Fix
Copy-only change. I updated the English values of the existing keys (same approach as #7989) so translatewiki marks the translations as outdated. Key names, DOM ids and
welcome.tsare unchanged.index.transferSessionindex.transferSessionNowindex.transferSessionDescriptionindex.copyLinkindex.copyLinkDescriptionindex.copyLinkButtonindex.transferToSystemindex.transferToSystemDescriptionindex.receiveSessionDescriptionThe tab titles ("Transfer session" / "Receive session") stay as they are.
Tests
New spec
src/tests/frontend-new/specs/session_transfer_copy.spec.tschecks the rendered English strings on both tabs.Expected substring: "code",Received string: "Transfer your current session to browser or device by clicking the button below. This will copy a link to a page…"andExpected: "3. Paste the transfer code",Received: "3. Copy session to new system".tsc --noEmit: clean.Note: the existing
welcome.spec.test.tsnever runs, because its name doesn't match the*.spec.tstestMatch glob. That's why the new spec is a separate file.Overlap
#8180 (#8172) adds
index.sessionTransferErrornext to these keys inen.json. Whichever PR merges second will get a trivial adjacent-line conflict.🤖 Generated with Claude Code
https://claude.ai/code/session_012kA75NPq8nGRidAwhPXeCi