-
Notifications
You must be signed in to change notification settings - Fork 619
Fix APIKey fetch in project layout #4912
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
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 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4912 +/- ##
=======================================
Coverage 47.61% 47.61%
=======================================
Files 1057 1057
Lines 57221 57221
Branches 3924 3924
=======================================
Hits 27246 27246
Misses 29286 29286
Partials 689 689
*This pull request uses carry forward flags. Click here to find out more. |
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new function, `getAPIKeyForProjectId`, to streamline the retrieval of API keys for projects. It replaces the previous usage of `getAPIKey` across multiple components, ensuring consistent handling of project IDs.
### Detailed summary
- Added `getAPIKeyForProjectId` function in `getAPIKeys.ts`.
- Replaced calls to `getAPIKey` with `getAPIKeyForProjectId` in:
- `apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/page.tsx`
- `apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/pay/page.tsx`
- `apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/account-abstraction/page.tsx`
- `apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/in-app-wallets/page.tsx`
- `apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/account-abstraction/page.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
ceeae69 to
47f5387
Compare
Merge activity
|

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces a new function,
getAPIKeyForProjectId, to streamline the retrieval of API keys based on project IDs. It replaces the previousgetAPIKeyfunction in multiple components, enhancing code clarity and reusability.Detailed summary
getAPIKeyForProjectIdfunction ingetAPIKeys.ts.getAPIKeywithgetAPIKeyForProjectIdin:apps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/page.tsxapps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/pay/page.tsxapps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/account-abstraction/page.tsxapps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/in-app-wallets/page.tsxapps/dashboard/src/app/team/[team_slug]/[project_slug]/settings/account-abstraction/page.tsx