Page MenuHomePhabricator

[Cashtab] Do not show ALP and SLP options for NFT mints
ClosedPublic

Authored by bytesofman on Thu, Nov 28, 23:04.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCe14800143f01: [Cashtab] Do not show ALP and SLP options for NFT mints
Summary

Only SLP NFTs are supported, so do not show this switch for minting NFTs.

Test Plan

npm test, see before and after screenshots

before

image.png (604×1 px, 79 KB)

after

image.png (604×1 px, 87 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
nft-mint-no-alp
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31389
Build 62276: Build Diffcashtab-tests
Build 62275: arc lint + arc unit

Event Timeline

bytesofman edited the test plan for this revision. (Show Details)
emack requested changes to this revision.Fri, Nov 29, 10:30
emack added a subscriber: emack.

In these situations I feel it may be more intuitive if you leave the toggle there but simply disable it (maybe greyed out to indicate lock status?) so that it's clear to the user this is SLP only. Otherwise they might be looking for the toggle they saw previously with no on screen hint as to why it's not there.

This revision now requires changes to proceed.Fri, Nov 29, 10:30

In these situations I feel it may be more intuitive if you leave the toggle there but simply disable it (maybe greyed out to indicate lock status?) so that it's clear to the user this is SLP only. Otherwise they might be looking for the toggle they saw previously with no on screen hint as to why it's not there.

in this case, the screen only appears when the user is minting SLP1 NFTs. So there is no option. imo better to show no option. Esp as we add more token types, having 5 disabled switches for token type when the app already knows the token type is ... a bit much imo.

The screen only appears in this way on the Token screen for the NFT. So, both Create Token screens still have the switches.

This revision is now accepted and ready to land.Sat, Nov 30, 10:22