mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* fix(web): show correct plan in future payments preview when upgrading over a pending downgrade When a user had a scheduled plan downgrade and then immediately upgraded to a higher plan, makeChangePreview() always used the pending (stale) plan code/name/price for the future payments display rather than the newly selected plan. Check whether the current change is a plan change (premium-subscription or group-plan-upgrade type) and if so use subscriptionChange's plan details instead of pendingChange's, since the immediate upgrade overrides the scheduled downgrade. Closes #33299 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(web): add unit tests for makeChangePreview pending-change plan override Covers the four cases: premium-subscription and group-plan-upgrade types use subscriptionChange plan (not pendingChange), add-on-purchase type defers to pendingChange plan, and no-pending-change falls back to subscriptionChange as before. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> GitOrigin-RevId: cc2f9c88e5dfdfb89370798e857ea98caf8fcf85