-
Notifications
You must be signed in to change notification settings - Fork 468
feat(shared): polish missing/invalid key error copy #9531
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
Merged
Merged
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@clerk/shared': patch | ||
| --- | ||
|
|
||
| Polish the missing/invalid key error copy: drop the two-space indent before the `npx clerk@latest init` command (it rendered as a stray space in browser error overlays), start the follow-up sentence with the command name instead of "It" so the sentence stands on its own, and reword "Requires no Clerk account or login" to "No Clerk account or login required". |
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
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.
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
Assert the complete revised error message in all affected tests.
The source changes the sentence after the initialization command, but each expectation below stops at the command. Include
No Clerk account or login required and the command is non-interactive.in every expected message.packages/shared/src/__tests__/error.spec.ts#L19-L19: update the invalid publishable-key expectation.packages/shared/src/__tests__/error.spec.ts#L25-L25: update the missing publishable-key expectation.packages/backend/src/__tests__/createRedirect.test.ts#L31-L31: update theredirectToSignInexpectation.packages/backend/src/__tests__/createRedirect.test.ts#L261-L261: update theredirectToSignUpexpectation.packages/shared/src/__tests__/keys.spec.ts#L84-L84: update the fatal missing-key expectation.packages/shared/src/__tests__/loadClerkJsScript.spec.ts#L49-L49: update the Clerk JS loader expectation.packages/shared/src/__tests__/loadClerkJsScript.spec.ts#L313-L313: update the Clerk UI loader expectation.As per coding guidelines: “Unit tests are required for all new functionality” and “Verify proper error handling and edge cases.”
📍 Affects 4 files
packages/shared/src/__tests__/error.spec.ts#L19-L19(this comment)packages/shared/src/__tests__/error.spec.ts#L25-L25packages/backend/src/__tests__/createRedirect.test.ts#L31-L31packages/backend/src/__tests__/createRedirect.test.ts#L261-L261packages/shared/src/__tests__/keys.spec.ts#L84-L84packages/shared/src/__tests__/loadClerkJsScript.spec.ts#L49-L49packages/shared/src/__tests__/loadClerkJsScript.spec.ts#L313-L313🤖 Prompt for AI Agents
Source: Coding guidelines