Page MenuHomePhabricator

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

Authored by bytesofman on Mon, Dec 30, 17:16.

Details

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)

Diff Detail

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

Event Timeline

bytesofman edited the test plan for this revision. (Show Details)

Failed tests logs:

====== CashTab Unit Tests: <Agora /> We can see multiple offers, some we made, others we did not, and we can cancel an offer ======
Error: expect(received).toBeInTheDocument()

received value must be an HTMLElement or an SVGElement.
Received has value: undefined
    at __EXTERNAL_MATCHER_TRAP__ (/work/cashtab/node_modules/expect/build/index.js:325:30)
    at Object.throwingMatcher [as toBeInTheDocument] (/work/cashtab/node_modules/expect/build/index.js:326:15)
    at Object.toBeInTheDocument (/work/cashtab/src/components/Agora/__tests__/index.test.js:650:11)

Each failure log is accessible here:
CashTab Unit Tests: <Agora /> We can see multiple offers, some we made, others we did not, and we can cancel an offer

checked for flakiness on test, could not repeat locally, rerun CI

Fabien added a subscriber: Fabien.

Much better !

This revision is now accepted and ready to land.Mon, Dec 30, 20:09