Skip to content

[TOOL-4277] Dashboard: Update gated features #6838

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 1 commit into from
Apr 24, 2025
Merged

[TOOL-4277] Dashboard: Update gated features #6838

merged 1 commit into from
Apr 24, 2025

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Apr 24, 2025


PR-Codex overview

This PR focuses on updating the handling of team plans and billing in various components, enhancing the user interface, and ensuring that features are gated based on the current plan of the team.

Detailed summary

  • Added teamSlug prop in page.tsx files.
  • Changed validTeamPlan to teamPlan in in-app-wallets settings.
  • Introduced planToTierRecordForGating for billing plans.
  • Updated GatedSwitch to use currentPlan and requiredPlan.
  • Enhanced UI components with better accessibility features.
  • Renamed story variants for clarity in GatedSwitch stories.
  • Refactored settings UI to incorporate plan checks for SMS and JWT features.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

linear bot commented Apr 24, 2025

Copy link

vercel bot commented Apr 24, 2025

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 Apr 24, 2025 2:58pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Apr 24, 2025 2:58pm
login ⬜️ Skipped (Inspect) Apr 24, 2025 2:58pm
thirdweb_playground ⬜️ Skipped (Inspect) Apr 24, 2025 2:58pm
wallet-ui ⬜️ Skipped (Inspect) Apr 24, 2025 2:58pm

Copy link

changeset-bot bot commented Apr 24, 2025

⚠️ No Changeset found

Latest commit: f157e34

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 – wallet-ui April 24, 2025 14:28 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 24, 2025 14:28 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 24, 2025 14:28 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 24, 2025 14:28 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Apr 24, 2025
@MananTank MananTank changed the title [TOOL-4277] Dashboard: Update gated features tool-4277 [TOOL-4277] Dashboard: Update gated features Apr 24, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@MananTank MananTank marked this pull request as ready for review April 24, 2025 14:28
@MananTank MananTank requested review from a team as code owners April 24, 2025 14:28
@MananTank MananTank marked this pull request as draft April 24, 2025 14:30
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.30%. Comparing base (d95b3d3) to head (f157e34).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6838   +/-   ##
=======================================
  Coverage   55.30%   55.30%           
=======================================
  Files         896      896           
  Lines       57023    57023           
  Branches     3968     3968           
=======================================
  Hits        31536    31536           
  Misses      25390    25390           
  Partials       97       97           
Flag Coverage Δ
packages 55.30% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Apr 24, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 51.16 KB (0%) 1.1 s (0%) 128 ms (+282.26% 🔺) 1.2 s
thirdweb (cjs) 143.77 KB (0%) 2.9 s (0%) 196 ms (+103.92% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.66 KB (0%) 114 ms (0%) 41 ms (+896.39% 🔺) 154 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 16 ms (+1703.45% 🔺) 26 ms
thirdweb/react (minimal + tree-shaking) 19.33 KB (0%) 387 ms (0%) 73 ms (+1028.52% 🔺) 459 ms

@vercel vercel bot temporarily deployed to Preview – docs-v2 April 24, 2025 14:38 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 24, 2025 14:38 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 24, 2025 14:38 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 24, 2025 14:38 Inactive
@MananTank MananTank marked this pull request as ready for review April 24, 2025 14:38
@MananTank MananTank requested a review from jnsdls April 24, 2025 14:40
Copy link
Contributor

graphite-app bot commented Apr 24, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the handling of team billing plans across various components in the application. It introduces new properties for better plan management and refines the UI elements related to billing features.

### Detailed summary
- Added `teamSlug` prop to several components for better context.
- Changed `validTeamPlan` to `teamPlan` in multiple files for consistency.
- Introduced `planToTierRecordForGating` to manage billing plans.
- Updated UI components to reflect new billing logic and props.
- Refactored `GatedSwitch` to utilize `currentPlan` and `requiredPlan`.
- Enhanced form handling in `InAppWalletSettingsUI` and other components to reflect billing plan changes.
- Renamed story exports for clarity in `GatedSwitch` stories.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 24, 2025 14:50 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 24, 2025 14:50 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 24, 2025 14:50 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 24, 2025 14:50 Inactive
@graphite-app graphite-app bot merged commit f157e34 into main Apr 24, 2025
23 checks passed
@graphite-app graphite-app bot deleted the tool-4277 branch April 24, 2025 14:58
@vercel vercel bot temporarily deployed to Production – wallet-ui April 24, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 April 24, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground April 24, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Production – login April 24, 2025 14:58 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.

2 participants