-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: new pricing features #9176
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
33216af to
04c0878
Compare
feat: invite check fix: fixes based on comments feat: invite_not_permitted event fix: sync user info after trial Popup for upgrade plan when creating a git project change wording fix theme color feat: add segment events feat: report user local git project count fix theme issue feat: INS-1582 new design for upgrade modal Add pop-up for inviting members feat: add the plan indicator feat: new design of top-right corner fix: fix quota fix: fix top-right corner width
9d6a027 to
6f7d29f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a comprehensive plan upgrade and trial management system for Insomnia, adding new modals and indicators to help users understand and manage their subscription plans.
- Introduces trial eligibility checking and trial start functionality
- Adds a plan indicator in the header showing usage metrics and trial status
- Implements seat checking and upgrade prompts when inviting collaborators
Reviewed Changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/insomnia/src/utils/index.ts | Adds utility functions for date difference calculation and number formatting |
| packages/insomnia/src/ui/organization-utils.ts | Adds function to sync current plan data from API |
| packages/insomnia/src/ui/hooks/use-user-service.ts | New hook for accessing user plan and trial status information |
| packages/insomnia/src/ui/components/modals/upgrade-plan-modal.tsx | New modal promoting Enterprise plan features to free users |
| packages/insomnia/src/ui/components/modals/invite-modal/invite-form.tsx | Adds seat checking logic and upgrade prompts when inviting collaborators |
| packages/insomnia/src/ui/components/header-plan-indicator.tsx | New header component displaying plan info, usage metrics, and trial status |
| packages/insomnia/src/ui/components/header-invite-button.tsx | Enhanced with permission checking and missing collaborator modal |
| packages/insomnia/src/routes/trial.start.tsx | New route for starting trial subscriptions |
| packages/insomnia/src/routes/trial.check.tsx | New route for checking trial eligibility |
| packages/insomnia/src/routes/resource.usage.tsx | New route for fetching resource and license usage data |
| packages/insomnia/src/models/organization.ts | Updates plan type label from "Hobby" to "Essentials" and adds trial-related fields |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ), | ||
| memberDescription: ( | ||
| <> | ||
| Your Essentials plan contains Git Sync projects, so you can only collaborate with up to 3 members.Contact your |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space between period and 'Contact'. Should be 'members. Contact your'.
| Your Essentials plan contains Git Sync projects, so you can only collaborate with up to 3 members.Contact your | |
| Your Essentials plan contains Git Sync projects, so you can only collaborate with up to 3 members. Contact your |
| ), | ||
| memberDescription: ( | ||
| <> | ||
| Your team has reached your plan's total purchased seats. Tell your plan's owner to increase the numberof seats |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space between 'number' and 'of'. Should be 'number of seats'.
| Your team has reached your plan's total purchased seats. Tell your plan's owner to increase the numberof seats | |
| Your team has reached your plan's total purchased seats. Tell your plan's owner to increase the number of seats |
671bbd1 to
32dccb2
Compare
packages/insomnia/src/routes/organization.$organizationId.collaborators-check-seats.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hook has some shared logics in use-plan hook, we can merge these two hooks together.
| const handleUpgradePlan = () => { | ||
| window.main.openInBrowser(`${getAppWebsiteBaseURL()}/app/subscription/update?plan=team`); | ||
| window.main.openInBrowser( | ||
| `${getAppWebsiteBaseURL()}/app/subscription/update?plan=team&source=app_feature_cloud_credentials`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the source params is hard-coded here
No description provided.