Skip to content

feat: Fix plan upgrade logic#2134

Merged
mosch merged 1 commit intomainfrom
upgrade-by-index
Mar 9, 2026
Merged

feat: Fix plan upgrade logic#2134
mosch merged 1 commit intomainfrom
upgrade-by-index

Conversation

@mosch
Copy link
Contributor

@mosch mosch commented Mar 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 9, 2026 09:24
@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zudoku-cosmo-cargo Ready Ready Preview, Comment Mar 9, 2026 9:32am
zudoku-dev Ready Ready Preview, Comment Mar 9, 2026 9:32am

Request Review

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

Updates the monetization plugin’s subscription “switch plan” modal to determine whether a plan change is an upgrade based on plan ordering rather than comparing monthly prices.

Changes:

  • Changes comparePlans to accept currentIndex/targetIndex and computes isUpgrade via index comparison.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Preview build of published Zudoku package for commit 4e15eac.

See the deployment at: https://dd568de1.cosmocargo-public-package.pages.dev

Note

This is a preview of the Cosmo Cargo example using the Zudoku package published to a local registry to ensure it'll be working when published to the public NPM registry.

Last updated: 2026-03-09T11:34:36.741Z

@mosch mosch force-pushed the upgrade-by-index branch from 2384ff3 to 4e15eac Compare March 9, 2026 09:30
@linear
Copy link

linear bot commented Mar 9, 2026

@mosch mosch merged commit f50e176 into main Mar 9, 2026
15 of 16 checks passed
@mosch mosch deleted the upgrade-by-index branch March 9, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug skip-changelog Will not appear in generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants