-
Notifications
You must be signed in to change notification settings - Fork 559
[TOOL-4858] Update Team Usage Overview page UI for free plan #7423
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
[TOOL-4858] Update Team Usage Overview page UI for free plan #7423
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
""" WalkthroughThe Upsell UI logic was refactored by extracting its content into a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UsagePage
participant UpsellContent
User->>UsagePage: Request usage page
UsagePage->>UsagePage: getValidTeamPlan()
alt Team is on free plan
UsagePage->>UpsellContent: Render upsell UI
UpsellContent-->>User: Display upgrade prompt
else Team is on paid plan
UsagePage-->>User: Render usage data
end
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (6)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7423 +/- ##
=======================================
Coverage 52.08% 52.08%
=======================================
Files 947 947
Lines 63636 63636
Branches 4222 4222
=======================================
Hits 33146 33146
Misses 30384 30384
Partials 106 106
🚀 New features to boost your workflow:
|
size-limit report 📦
|
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 improving the handling of team usage and upsell features in the dashboard. It introduces new components and logic to display upsell content based on the team's billing plan. ### Detailed summary - Updated import paths for `getTeamBySlug` and `UpsellWrapper`. - Added `UpsellContent` component to display upsell information. - Implemented logic to show upsell content if the team is on a "free" plan. - Refactored the `UpsellWrapper` to include `UpsellContent`. - Enhanced rendering of benefits in `UpsellContent`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Improved code structure by extracting upsell card UI into a dedicated component, resulting in cleaner and more maintainable code. - Updated import paths for consistency and clarity. - **Style** - Adjusted layout classes for better visual alignment of upsell content. - **Bug Fixes** - Unified error handling for usage page, ensuring a consistent message for all error scenarios. Free plan users now see a clear upgrade prompt. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
b4d1132
to
b5114df
Compare
PR-Codex overview
This PR focuses on enhancing the
UpsellWrapper
and related components to improve the user experience for teams on a free plan. It introduces new logic to display upsell content based on the team's billing plan and refines the layout of upsell messages.Detailed summary
getTeamBySlug
andUpsellWrapper
.UpsellContent
component for displaying upsell messages.UpsellWrapper
.UpsellContent
to include benefits and upgrade options.Summary by CodeRabbit
Refactor
Style
Bug Fixes