Skip to content

Sync Stable with Main#391

Merged
onahprosper merged 2 commits intostablefrom
main
Feb 25, 2026
Merged

Sync Stable with Main#391
onahprosper merged 2 commits intostablefrom
main

Conversation

@Dprof-in-tech
Copy link
Copy Markdown
Collaborator

Description

This pull request introduces a mandatory wallet migration flow for users whose wallets require migration after a specific deadline (March 1, 2026). The main changes ensure that users are prompted with a migration modal and prevented from submitting transfers or swaps until migration is completed. The logic distinguishes between full migrations and "remaining funds" migrations, and improves UI consistency in migration-related modals.

Mandatory wallet migration flow:

  • Added logic in TransferForm.tsx and TransactionForm.tsx to check if migration is mandatory (based on needsMigration, isRemainingFundsMigration, and the deadline), and to block form submissions by opening the WalletMigrationModal if migration is required. [1] [2] [3] [4] [5] [6] [7]

WalletMigrationModal and related UI improvements:

  • Improved button styling and text consistency in WalletMigrationModal.tsx and WalletTransferApprovalModal.tsx for a more polished user experience. [1] [2]
  • Updated progress messages in migration flows to handle singular/plural token wording and simplified status text. [1] [2]

Swap button logic updates:

  • Enhanced the useSwapButton hook to handle the new migration logic, ensuring the button is enabled only when appropriate and migration is enforced when required. [1] [2] [3] [4] [5] [6]

Component and dependency updates:

  • Imported WalletMigrationModal in relevant files to support the new migration flow. [1] [2]

References

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation and tests for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.

Dprof-in-tech and others added 2 commits February 25, 2026 18:08
…nForm for improved migration handling

* Added WalletMigrationModal to TransferForm and TransactionForm to prompt users for migration when necessary.
* Enhanced migration logic to determine when migration is mandatory based on user status and deadline.
* Updated button text and styles in WalletTransferApprovalModal for consistency and clarity.
* Refactored useSwapButton to include isRemainingFundsMigration for better migration state management.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 25, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@onahprosper onahprosper merged commit 939949e into stable Feb 25, 2026
1 check passed
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.

2 participants