Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Oct 3, 2024

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 previous getAPIKey function in multiple components, enhancing code clarity and reusability.

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}

@vercel
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 4:52pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Oct 3, 2024 4:52pm
thirdweb_playground ⬜️ Skipped (Inspect) Oct 3, 2024 4:52pm
wallet-ui ⬜️ Skipped (Inspect) Oct 3, 2024 4:52pm

@vercel vercel bot temporarily deployed to Preview – docs-v2 October 3, 2024 16:31 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 3, 2024 16:31 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Oct 3, 2024

⚠️ No Changeset found

Latest commit: 47f5387

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 3, 2024 16:31 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 3, 2024

Your org has enabled the Graphite merge queue for merging into main

Add 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.

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 3, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MananTank and the rest of your teammates on Graphite Graphite

@MananTank MananTank marked this pull request as ready for review October 3, 2024 16:31
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.95 KB (0%) 840 ms (0%) 356 ms (+27.08% 🔺) 1.2 s
thirdweb (cjs) 101.63 KB (0%) 2.1 s (0%) 542 ms (+1.14% 🔺) 2.6 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 101 ms (+304.95% 🔺) 198 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 61 ms (+1317.9% 🔺) 71 ms
thirdweb/react (minimal + tree-shaking) 17.23 KB (0%) 345 ms (0%) 155 ms (+228.06% 🔺) 500 ms

@codecov
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.61%. Comparing base (6ff85d3) to head (47f5387).
Report is 1 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 6ff85d3
packages 43.37% <ø> (ø)

*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 -->
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 3, 2024

Merge activity

@graphite-app graphite-app bot merged commit 47f5387 into main Oct 3, 2024
27 checks passed
@graphite-app graphite-app bot deleted the 10-03-fix_apikey_fetch_in_project_layout branch October 3, 2024 16:52
@vercel vercel bot temporarily deployed to Production – wallet-ui October 3, 2024 16:52 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 3, 2024 16:52 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 October 3, 2024 16:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants