-
Notifications
You must be signed in to change notification settings - Fork 670
fix(cloud): say "Sign in" on the cloud login SSO fallback link #15519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
guill
wants to merge
7
commits into
main
Choose a base branch
from
glary/fix-cloud-login-social-signin-copy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1b7c0bd
fix(cloud): say sign in, not sign up, on the login SSO fallback link
Glary-Bot e40e3c6
test(cloud): pin the sign-up SSO fallback copy to the English catalogue
Glary-Bot 6e6d9ea
test(cloud): require a full message catalogue in renderSignupView
Glary-Bot bc511ec
fix(i18n): spell the GitHub trademark with a capital H
Glary-Bot 8c841ec
fix: spell the GitHub color palette name with a capital H
Glary-Bot b34f86c
Merge branch 'main' into glary/fix-cloud-login-social-signin-copy
guill b1a73b2
test(e2e): disambiguate the cloud login submit button locator
Glary-Bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Merge partial locale overrides with the default catalogue.
If
renderSignupViewaccepts partial messages, merge them withMESSAGESbefore passing them tocreateI18n. The current code treats a partial object as the complete English catalogue, so omitted keys can render as missing translation keys. The override type also derives fromMESSAGES, which does not declarebackToSocialSignUp.Type the overrides from
enMessagesand merge nested authentication messages with the defaults.Proposed fix
Also applies to: 99-99
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed on the mismatch, but fixed by tightening the type rather than adding a merge (6e6d9ea).
There is no partial-override caller: the parameter is passed either the default fixture or the full
enMessagescatalogue. A merge helper would be dead code serving a case that does not exist, so instead the signature now declares what it actually requires:That makes the failure mode you describe a compile error instead of a silent raw-key render. Verified — passing
{ auth: { signup: { signIn: 'x' } } }now fails typecheck:On the type deriving from
MESSAGESrather thanenMessages: that is deliberate.typeof MESSAGESis a minimum contract —enMessagessatisfies it structurally and suppliesbackToSocialSignUpon top, which is exactly what the new test relies on. Typing it fromenMessageswould instead force every caller to provide the entire production catalogue.Separately, the product owner asked for the GitHub trademark casing to be fixed while we were in here, so bc511ec and 8c841ec correct six
Github→GitHubvalues inen/main.jsonplus the color-palette display name. The two tests that assert the real catalogue copy were updated to match. Full unit suite green (16403 passed), typecheck/lint/locale:checkclean.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.