Page MenuHomePhabricator

[Cashtab] Highlight your own offers in agora orderbook
ClosedPublic

Authored by bytesofman on Thu, Jan 2, 13:46.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCe90d67768707: [Cashtab] Highlight your own offers in agora orderbook
Summary

For OrderBook components with many offers, the user must click through all of the offers to find their own (if they have some). Modify the css so that offers created by the active wallet are highlighted in a still-subdued-but-recognizably-different color (color is similar to the secondary accent color of the cancel button).

Test Plan

npm test, see screenshot

image.png (366×1 px, 55 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman published this revision for review.Thu, Jan 2, 13:55
bytesofman edited the test plan for this revision. (Show Details)

I want to propose an alternative approach here: add a X to the right of yours listing that is a shortcut for the cancel action.
This is similar to what is done on most exchanges. It's still fine to highlight if you want to, but might not be necessary

I want to propose an alternative approach here: add a X to the right of yours listing that is a shortcut for the cancel action.
This is similar to what is done on most exchanges. It's still fine to highlight if you want to, but might not be necessary

I think we can do this after -- main reason being, this diff also introduces the functionality of "is this specific offer your offer?" -- and I want to use that functionality to show unaccceptable agora offfers to creators, but not to buyers

the "x" thing would be useful but it does need some more rendering logic -- and this will also apply to the "unacceptable" offers so we should get that feature in first

This revision is now accepted and ready to land.Thu, Jan 2, 14:16