HomePhabricator

[Cashtab] [Alias] pt 8 - Activation flag in prod

Description

[Cashtab] [Alias] pt 8 - Activation flag in prod

Summary:
T2551

Depends on D13134

This diff adds a flag in Ticker.js which disables the Alias navigation and input UI by default. It also serves as the cutoff landing point in which part 9 onwards will be landed in a separate stacked diff to reduce overall stack size and rebasing complexities. Also added porting to the extension to the runsheet below.

[Cashtab] [Alias] pt 1 - Create scaffold for new Alias component
[Cashtab] [Alias] pt 2 - Upgrade sendXec() to handle alias registration
[Cashtab] [Alias] pt 3 - Implement isAliasAvailable function
[Cashtab] [Alias] pt 4 - Implement isAddressRegistered function
[Cashtab] [Alias] pt 5 - Implement getAddressFromAlias function
[Cashtab] [Alias] pt 6.1 - Get latest alias tx count from payment address
[Cashtab] [Alias] pt 6.1.1 - Apply Promise.All approach for alias history retrieval
[Cashtab] [Alias] pt 6.2 - Implement getAliasesFromLocalForage
[Cashtab] [Alias] pt 6.3 - Implement updateAliases
[Cashtab] [Alias] pt 6.4 - Update getAliases() to extract both alias and address
[Cashtab] [Alias] pt 6.5 - Optimize getAllTxHistory to only make API calls for uncached tx history pages
[Cashtab] [Alias] pt 6.6 - Render list of Aliases owned by active wallet in Alias.js
[Cashtab] [Alias] pt 7 - Mitigate edge cases for registration records
[Cashtab] [Alias] pt 8 - Activation flag in prod
--cutoff--
[Cashtab] [Alias] pt 9 - Enable alias lookup for Send XEC component
[Cashtab] [Alias] pt 10 - Enable alias lookup for Send Token component
[Cashtab] [Alias] pt 11 - Upgrade tx history to recognize alias registration txs
[Cashtab] [Alias] pt 12 - Port Alias feature to Cashtab extension
[Cashtab] [Alias] pt 13 - Pre-prod update (Set final registration fees, remove residual dev logs and enable prod flag)

Test Plan:

  • npm test
  • npm start
  • flag is false by default, hence ensure the hamburger menu shows no alias option and the user is unable to access it directly via http://localhost:3000/#/alias
  • change flag to true, and ensure the hamburger menu now shows the alias option and upon clicking on it the user is taken to the alias page with all inputs rendered
  • npm run extension and ensure it is similarly inaccessible in extension
  • ensure nothing else blows up in cashtab, especially navigating to other components since this is the main area that is touched by the production flag

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
emackAuthored on Feb 17 2023, 22:54
emackPushed on Feb 22 2023, 04:05
Reviewer
Restricted Project
Differential Revision
D13143: [Cashtab] [Alias] pt 8 - Activation flag in prod
Parents
rABC5860db9eef40: [Cashtab] [Alias] pt 7 - Mitigate edge cases for registration records
Branches
Unknown
Tags
Unknown