HomePhabricator

[Cashtab] Show cumulative depth bars on OrderBook to match normal exchange UX

Description

[Cashtab] Show cumulative depth bars on OrderBook to match normal exchange UX

Summary: The current setup is confusing. Make depth bars cumulative so it looks like any other exchange OrderBook.

Test Plan:
npm test, check screenshots.

can also check the dev site at https://cashtab-local-dev.netlify.app/ (make sure to hard refresh)

I considered adding this to integration tests but I think the impact of confirming css widths is detrimental. The calc here is not particularly complicated and it's immediately obvious if stuff is loading improperly.

image.png (438×1 px, 173 KB)

image.png (384×1 px, 57 KB)

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Mon, Dec 30, 17:15
bytesofmanPushed on Mon, Dec 30, 20:10
Reviewer
Restricted Project
Differential Revision
D17434: [Cashtab] Show cumulative depth bars on OrderBook to match normal exchange UX
Parents
rABC777719c662bb: [cmake] Fix a typo in the bench CMakeLists.txt
Branches
Unknown
Tags
Unknown