-
Notifications
You must be signed in to change notification settings - Fork 619
Fix API key creation on embed page #5192
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
Fix API key creation on embed page #5192
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
size-limit report 📦
|
df20d22 to
4af2fee
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5192 +/- ##
=======================================
Coverage 45.30% 45.30%
=======================================
Files 1067 1067
Lines 55304 55304
Branches 3970 3970
=======================================
Hits 25054 25054
Misses 29557 29557
Partials 693 693
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
Fixes: DASH-340 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `CreateAPIKey` functionality by introducing prefill options for the API key creation process, improving the user interface for creating API keys, and adding a modal for better user experience. ### Detailed summary - Added `CreateAPIKeyPrefillOptions` type. - Introduced `DesktopAPIKeyWordingWithPrefill` story. - Updated `CreateAPIKeyDialogProps` to include `prefill`. - Modified `CreateAPIKeyDialogUI` to accept and use `prefill`. - Enhanced `CreateAPIKeyForm` to utilize prefill values. - Integrated `LazyCreateAPIKeyDialog` in the `EmbedSetup` component. - Updated button behavior to show modal for creating API keys. - Improved user prompts for signing in when no active account is detected. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
4af2fee to
486cd4a
Compare

Fixes: DASH-340
PR-Codex overview
This PR introduces a new feature for pre-filling API key creation forms and enhances the
CreateAPIKeyDialogcomponent. It also updates theEmbedSetupcomponent to include a modal for creating API keys and adjusts the handling of user interactions based on account status.Detailed summary
CreateAPIKeyPrefillOptionstype for pre-filling API key forms.DesktopAPIKeyWordingWithPrefillstory for testing.CreateAPIKeyDialogPropsandCreateAPIKeyDialogUIto acceptprefillprop.CreateAPIKeyFormto utilize pre-fill values.LazyCreateAPIKeyDialoginEmbedSetupfor API key creation.EmbedSetupto show modal based on user account status.