Skip to content

Farabi/V2-migration-banner#666

Open
farabi-deriv wants to merge 1 commit intoderiv-com:masterfrom
farabi-deriv:farabi/V2-migration-banner
Open

Farabi/V2-migration-banner#666
farabi-deriv wants to merge 1 commit intoderiv-com:masterfrom
farabi-deriv:farabi/V2-migration-banner

Conversation

@farabi-deriv
Copy link
Copy Markdown
Contributor

This pull request introduces a new migration modal that informs users when the platform has been upgraded and prompts them to log in again. It also adds supporting logic to display the modal based on the migration status and updates related UI and utility code to support this feature. Additionally, it ensures that tutorials are hidden when the migration modal is active.

Migration Modal Implementation:

  • Added a new MigrationModal component (migration-modal.tsx, migration-modal.scss) that displays a message about the platform upgrade and provides a login button and support link.
  • Exported the MigrationModal component for use in other parts of the application.

Integration with Application UI:

  • Imported and rendered the MigrationModal in the main AppContent component to ensure it appears globally when needed.

Platform Migration State Handling:

  • Added a computed property is_platform_migrated to ClientStore to determine if the platform has been migrated based on the website status.

URL Constants Update:

  • Introduced new constants for home and help centre URLs to support the migration modal's login and support actions.

Tutorial Visibility Logic:

  • Updated the tutorial start dialog to hide tours when the migration modal is active, preventing UI conflicts.

@github-actions
Copy link
Copy Markdown
Contributor

Preview Link: https://farabi-V2-migration1.bot-65f.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

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.

1 participant