-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ability to sort and filter orderbook (#434)
* wip: parse orderbook * dev: add 'orderbook' feature flag * dev: remove orderbook request from App.jsx * wip: add OrderbookOverlay * fix: render order fee as balance only on abs offer * fix: don not use orderId as key - it is not unique * dev: show order type as badge * fix: add reason to error message * feat: sortable orderbook table * feat: ability to filter orderbook by search value * review: wrap orderbook overlay body in container * chore: harmonize offcanvas-fullscreen style * chore: harmonize body styles for fullscreen overlays * chore: harmonize header styles for fullscreen overlays * chore: harmonize overlay close buttons and headers in orderbook and earn report * chore: background-color of orderbook container * fix: make containers containing tables fluid on xs and sm screens * chore: harmonize earn report overlay * fix: same overlay container for all fullscreen offcanvas components * dev: add title bar to orderbook overlay * feat: add refresh functionality to orderbook * fix: hide search criteria phrase if search value is empty * Apply suggestions from code review Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com> * Update src/components/Orderbook.module.css Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com> * chore: optimize orderbook filter function * review: disable search input on data reload * review: improve filtered orderbook summary * fix: update wording Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
- Loading branch information
1 parent
1113e21
commit 952e24b
Showing
11 changed files
with
563 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
.report-overlay { | ||
width: 100vw !important; | ||
height: 100vh !important; | ||
z-index: 1100 !important; | ||
} | ||
|
||
.report-line-placeholder { | ||
height: 2.625rem; | ||
margin: 1px 0; | ||
} | ||
|
||
.overlayContainer .earnReportContainer { | ||
background-color: var(--bs-body-bg); | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.overlayContainer .earnReportContainer { | ||
border-radius: 0.5rem; | ||
padding: 2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,57 @@ | ||
.orderbook-overlay { | ||
width: 100vw !important; | ||
height: 100vh !important; | ||
z-index: 1100 !important; | ||
} | ||
|
||
.orderbook-line-placeholder { | ||
height: 2.625rem; | ||
margin: 1px 0; | ||
} | ||
|
||
.overlayContainer .orderbookContainer { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2.5rem; | ||
background-color: var(--bs-body-bg); | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.overlayContainer .orderbookContainer { | ||
padding: 2rem; | ||
border-radius: 0.5rem; | ||
} | ||
} | ||
|
||
.overlayContainer .orderbookContainer > .titleBar { | ||
min-height: 3.6rem; | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 0.5rem; | ||
padding: 0 0 0.8rem 0; | ||
background-color: var(--bs-gray-100); | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.overlayContainer .orderbookContainer > .titleBar { | ||
align-items: center; | ||
padding: 0.8rem 1rem; | ||
border-radius: 0.6rem; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.overlayContainer .orderbookContainer > .titleBar { | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
:root[data-theme='dark'] .overlayContainer .orderbookContainer > .titleBar { | ||
background-color: var(--bs-gray-800); | ||
} | ||
|
||
.overlayContainer .orderbookContainer > .titleBar .refreshButton { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 2rem; | ||
height: 2rem; | ||
padding: 0.1rem; | ||
border: none; | ||
} |
Oops, something went wrong.