-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey @shoom3301 , great job! Could you please enhance this behavior a bit? Thank you! |
…l/explorer into partial-fills-table-2 # Conflicts: # src/components/orders/OrderDetails/FillsTable.tsx
@alfetopito It's already integrated, as I can see there is the same components as in details tab |
@alfetopito Can you reproduce it? I can't |
I could do it before, but now that the refreshing is gone, no more.
🤦 I hovered over and saw nothing, forgot to click |
I can see this what Elena wrote "Also, the screen is blinking when the data is updated" It seems that on each update there is a short moment where the whole page content reloads and it shows initial loader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the PR, and we should add it.
However, I also think we should convince backend to add this in the returned data, and delete it later.
Also this will benefit other apps including CoW Swap. In my opinion is important for the API
isFirstLoading - seems to be excessive, because we should display loader only once at start and areTokensLoaded is enough
…l/explorer into partial-fills-table-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole page doesn't blink anymore!
Now only the tabs do 😅
Screen.Recording.2023-04-06.at.12.04.42.mov
Now it actually means isFirstLoading
@alfetopito thanks! Fixed |
* Refactoring to make the code unambiguous and reduced lines of code 38->12 * Fixed displaying of order assets info in <FilledProgress/> * Fixed layout for FillsTable component 1. Added <TokenAmount> component for buy/sell/execution amounts. It helps to display them shorter 2. Fixed displaying of "View batch graph" button, it was too big for mobile view 3. Fixed global layout (in MainWrapper) to fix page with in mobile view. Warning! This change might brake smth in other pages * Fixed filled progress width for DetailsTable in mobile view * Execution price calculation for Fills table * Added invert button for mobile layout * isPriceInverted * Execution time for trades table (#425) * Execution time for trades table * TradesTimestamps type * Fix type * Fix type * Cache for fetchTradesTimestamps() * Fixed blinking of fills table isFirstLoading - seems to be excessive, because we should display loader only once at start and areTokensLoaded is enough * Fixed lint errors and remove node version restriction * Rollback node restriction * Changed isLoading flag meaning in useOrderTrades() Now it actually means isFirstLoading * Fix lint errors (#426)
LGTM |
* Remove unused css * add view fills button * add TableHeading layout * Update fills component * Fix stories * Small fix * Fix percent formatting (#413) * Fix error displaying 0% and 100% * Add testing for formatting function * Rmove helper function * Style fixes for Order fills page (#423) * Refactoring to make the code unambiguous and reduced lines of code 38->12 * Fixed displaying of order assets info in <FilledProgress/> * Fixed layout for FillsTable component 1. Added <TokenAmount> component for buy/sell/execution amounts. It helps to display them shorter 2. Fixed displaying of "View batch graph" button, it was too big for mobile view 3. Fixed global layout (in MainWrapper) to fix page with in mobile view. Warning! This change might brake smth in other pages * Fixed filled progress width for DetailsTable in mobile view * Execution price calculation for Fills table * Added invert button for mobile layout * isPriceInverted * Execution time for trades table (#425) * Execution time for trades table * TradesTimestamps type * Fix type * Fix type * Cache for fetchTradesTimestamps() * Fixed blinking of fills table isFirstLoading - seems to be excessive, because we should display loader only once at start and areTokensLoaded is enough * Fixed lint errors and remove node version restriction * Rollback node restriction * Changed isLoading flag meaning in useOrderTrades() Now it actually means isFirstLoading * Fix lint errors (#426) * Partial fills table/#437 fix fill or kill txhash (#438) * Removed old placeholder * Fixed txhash for fill or kill orders * Do not mutate original obj * Do not show fills tab for fill or kill orders (#439) * Do not show fills tab for fill or kill orders * Hide fills button * Do not show fills tab for orders with single fills * Do not show fills tab if there are no trades * Moved fills button display logic to parent component * Show tx hash for partial fills with single fill * Updated label to be explicit about partial fills * Fixed storybook * Consistently using the same rule for displaying the fills tab, button and tx hash row: When there are 2 trades or more, show fills tab and button, and hide tx hash row * Do not show fills tab if there are no trades 🤦 * Partial fills table surplus (#440) * Added new component SurplusComponent * Added calculation for trade surplus getTradeSurplus * Added surplus to fills table * Refactored OrderSurplusDisplay to use SurplusComponent * Fixed issue with surplus tooltip * Removed buy amount value by mistake 😅 * Partial fills table adjust columns (#442) * Inverted sell amount and buy amount positions on fills table * Removed batch viewer link column from fills tab * Moved surplus column to after buy amount on fills tab * Added total surplus to fills table * Removed `of <total amount>` from filled progress * Partial fills table styling (#443) * partial fills table styling * partial fills table styling * conditional lineBreak for filled amount * Table header arrow wrap * fix arrow green * add surplus green icon to fills * remove bottom border * remove bottom border * fix top padding sticky cards * revert button wrapping --------- Co-authored-by: fairlight <31534717+fairlighteth@users.noreply.github.com> --------- Co-authored-by: Mati Dastugue <mdastugu@amazon.com> Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com> Co-authored-by: Alexandr Kazachenko <shoom3301@gmail.com> Co-authored-by: Alfetopito <alfetopito@users.noreply.github.com> Co-authored-by: fairlight <31534717+fairlighteth@users.noreply.github.com>
Summary
Closes #424
Changes
web3.eth.getBlock()
useEffect()
)