Skip to content

fix(webapp): improve error feedback on plan upgrade flows#5780

Open
ErickRDev wants to merge 1 commit intomasterfrom
erickr/NAN-5185/fix-plan-upgrade-flow-error-feedback
Open

fix(webapp): improve error feedback on plan upgrade flows#5780
ErickRDev wants to merge 1 commit intomasterfrom
erickr/NAN-5185/fix-plan-upgrade-flow-error-feedback

Conversation

@ErickRDev
Copy link
Copy Markdown

@ErickRDev ErickRDev commented Apr 2, 2026

Customers faced with errors during attempts to upgrade their plan would receive generic, transient error messages, making it harder for them to pinpoint the root cause of the failure.

  • Fixed load animation getting stuck on upgrade-plan failures.
  • Improved error messages displayed to users on upgrade-plan failures: the errors are no longer transient (via toast), but are rather inlined with the component.
Register a valid card as a payment method, but set it up to fail when upgrading the plan (e.g. due to lack of funds/limits). The error should now be visible within the upgrade form and the source (if card-related) should be clear.

This PR also strengthens upgrade error handling logic by introducing explicit dialog-level error state management and better failure-path cleanup, so errors are consistently reset across dialog lifecycle transitions and retries. In addition, it improves payment-failure clarity by distinguishing card-related Stripe failures from generic payment validation failures, making upgrade issues more actionable while keeping behavior localized to the plan-change flow.


This summary was automatically generated by @propel-code-bot

<!-- Describe the problem and your solution -->
Customers faced with errors during attempts to upgrade their plan would
receive generic, transient error messages, making it harder for them to
pinpoint the root cause of the failure.

- Fixed load animation getting stuck on upgrade-plan failures.
- Improved error messages displayed to users on upgrade-plan failures:
  the errors are no longer transient (via toast), but are rather inlined
  with the <Alert> component.

<!-- Issue ticket number and link (if applicable) -->

<!-- Testing instructions (skip if just adding/editing providers) -->
Register a valid card as a payment method, but set it up to fail when
upgrading the plan (e.g. due to lack of funds/limits). The error should
now be visible within the upgrade form and the source (if card-related)
should be clear.
@ErickRDev ErickRDev requested review from a team and kaposke April 2, 2026 19:30
@linear
Copy link
Copy Markdown

linear bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

@propel-code-bot propel-code-bot bot left a comment

Choose a reason for hiding this comment

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

Review found no issues; changes improve upgrade-flow error clarity and failure handling.

Status: No Issues Found | Risk: Low

Review Details

📁 2 files reviewed | 💬 0 comments

Instruction Files
└── .claude/
    ├── agents/
    │   └── nango-docs-migrator.md
    └── skills

Copy link
Copy Markdown
Contributor

@kaposke kaposke left a comment

Choose a reason for hiding this comment

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

First PR 🎉

@bastienbeurier
Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

3 participants