HomePhabricator

[Cashtab] Add domain migration alert pop-up

Description

[Cashtab] Add domain migration alert pop-up

Summary:
T1892

Cashtab will migrate from cashtabapp.com to cashtab.com

Local storage works by domain name, so this migration will require users to manually import their wallets at the new domain. This is annoying and bad UX, but will only get worse the longer the move is postponed.

The migration will happen in phases.

  1. [Oct 2021] Users at cashtabapp.com see a pop-up informing them of the domain migration. Click makes the pop-up go away. App functionality is otherwise normal.
  2. [Nov 2021] Users at cashtabapp.com see a pop-up informing them of the domain migration. The notification will re-open every 30s if it is closed. This will allow users to recover private keys at the old domain.
  3. [Dec 2021-Dec2022] Users at cashtabapp.com see a pop-up informing them of the migration. The page will auto-fwd to cashtab.com after 30s

This diff allows the migration to happen without supporting two different codebases for each domain. For now, currency.appUrl is set to cashtabapp.com, so the expected behavior of this diff is to do nothing. I will point cashtab.com to the deployment server, then put up another diff changing currency.appUrl to cashtab.com

Test Plan:
npm start
Note pop-up on load
In src/components/Common/Ticker.js, change currency.appUrl to localhost
Note pop-up does not appear on load (expected behavior when this diff is landed with currency.appUrl as cashtabapp.com)

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D10251

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Oct 4 2021, 21:01
bytesofmanPushed on Oct 6 2021, 17:51
Reviewer
Restricted Project
Differential Revision
D10251: [Cashtab] Add domain migration alert pop-up
Parents
rABCba8d74368072: [Cashtab] Prevent translation of address prefix
Branches
Unknown
Tags
Unknown

Event Timeline