Skip to content

Conversation

@xiaodemen
Copy link
Contributor

No description provided.

@yaoweiprc yaoweiprc force-pushed the feat/new-pricing branch 3 times, most recently from 33216af to 04c0878 Compare October 10, 2025 03:07
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
@xiaodemen xiaodemen marked this pull request as ready for review October 28, 2025 08:32
@notjaywu notjaywu requested review from a team and Copilot October 29, 2025 06:40
Copy link
Contributor

Copilot AI left a 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
Copy link

Copilot AI Oct 29, 2025

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

Suggested change
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

Copilot uses AI. Check for mistakes.
),
memberDescription: (
<>
Your team has reached your plan's total purchased seats. Tell your plan's owner to increase the numberof seats
Copy link

Copilot AI Oct 29, 2025

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

Suggested change
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

Copilot uses AI. Check for mistakes.
@xiaodemen xiaodemen requested a review from cwangsmv October 29, 2025 08:12
Copy link
Contributor

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`,
Copy link
Contributor

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

cwangsmv
cwangsmv previously approved these changes Oct 29, 2025
@xiaodemen xiaodemen enabled auto-merge (squash) October 29, 2025 10:29
@xiaodemen xiaodemen disabled auto-merge October 29, 2025 11:17
@xiaodemen xiaodemen merged commit 519014a into develop Oct 29, 2025
13 checks passed
@xiaodemen xiaodemen deleted the feat/new-pricing branch October 29, 2025 11:17
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.

4 participants