Skip to content

Changing upgrade UI flow#91

Merged
UmairJibran merged 6 commits intomasterfrom
changing-upgrade-ui-flow
Apr 17, 2025
Merged

Changing upgrade UI flow#91
UmairJibran merged 6 commits intomasterfrom
changing-upgrade-ui-flow

Conversation

@UmairJibran
Copy link
Copy Markdown
Owner

No description provided.

@UmairJibran UmairJibran self-assigned this Apr 17, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2025

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

Name Status Preview Comments Updated (UTC)
waltzes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 4:43pm
waltzes-di8o ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 4:43pm

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @UmairJibran, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request focuses on improving the upgrade UI flow for users on the free plan. The primary change involves replacing the existing subscription card with a subscription dialog that provides more information about the benefits of upgrading to a paid plan. Additionally, the pull request updates the sidebar to highlight the 'Usage & Billing' section for non-pro users, prompting them to explore subscription options.

Highlights

  • UI Enhancement: Replaces the subscription card in BillingDetails.tsx with a SubscriptionDialog component to provide a more engaging upgrade experience.
  • Sidebar Update: Modifies the AppSidebar.tsx component to highlight the 'Usage & Billing' link for users who are not on the Pro plan.
  • Dependency Updates: Updates the waltzes-python and waltzes-web-server subprojects to newer commit versions.

Changelog

Click here to see the changelog
  • waltzes-python
    • Updates subproject commit from 7a14a5b00c9e0d4a208a69fe892484587499f9a6 to 3b059c86072a2561e36861440ad86cffdc121407.
  • waltzes-web-server
    • Updates subproject commit from 75e707981aa234fb3f6da7b01394de11be8cbe26 to a155f3eac7a7c1cc9b12acc27faa03063c28aa0f.
  • web/app/components/billing/BillingDetails.tsx
    • Removes unused imports: Button, Input, and Label.
    • Replaces the subscription card with the SubscriptionDialog component.
    • Adjusts the layout and styling related to the subscription information.
    • Removes coupon code functionality.
    • Minor text changes.
  • web/app/components/billing/subscibe-modal.tsx
    • Adds a new component SubscriptionDialog, which presents a dialog box with information about the free plan and the benefits of upgrading.
    • Includes a button to subscribe, which redirects the user to the Chargebee link.
  • web/components/app-sidebar.tsx
    • Adds a highlight to the 'Usage & Billing' link in the sidebar for non-pro users.
    • Changes the text in the Waltzes sidebar header to 'Needs subscription' if the user is not a pro user.
  • web/components/nav-main.tsx
    • Adds highlight property to the NavMain component to allow highlighting of menu items.
    • Adds highlight property to the items array to allow highlighting of menu items.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


A modal appears,
Subscription's soft allure nears,
Free tier takes a bow.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces significant changes to the billing UI flow, primarily by replacing the subscription card with a subscription dialog. This change streamlines the user experience and consolidates subscription-related information into a modal. The code cleanup, including the removal of unused imports and components, enhances maintainability. The addition of the highlight property to the Usage & Billing navigation item in the sidebar will draw the user's attention to this option if they are not a Pro user. Overall, the changes improve the user interface and code quality.

Summary of Findings

  • Subscription Dialog Logic: The logic for displaying the subscription dialog is now solely based on the user.isPro property. Ensure that this property accurately reflects the user's subscription status to avoid incorrect display of the dialog.
  • Billing & Usage UI: The UI changes consolidate the subscription information into a dialog, which streamlines the billing details page. This approach simplifies the user experience by presenting subscription options in a modal format.
  • Code Cleanup: The removal of unused imports and subscription card components improves code readability and maintainability. This cleanup reduces unnecessary code and focuses on the essential elements of the billing details page.
  • Highlighting Billing Option: The addition of the highlight property to the Usage & Billing navigation item in the sidebar will draw the user's attention to this option if they are not a Pro user. This is a good way to encourage users to subscribe.

Merge Readiness

The pull request is in good shape to be merged, as it improves the user interface and code quality. I am unable to approve the pull request, and users should have others review and approve this code before merging.

Comment thread web/app/components/billing/BillingDetails.tsx
Comment thread web/components/app-sidebar.tsx Outdated
@UmairJibran UmairJibran merged commit 7237d15 into master Apr 17, 2025
2 of 4 checks passed
@UmairJibran UmairJibran deleted the changing-upgrade-ui-flow branch April 17, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant