Commit Graph

29 Commits

Author SHA1 Message Date
Yana Matrosova 9e4e8a9b2b Yana/pending staking events (#5400)
* Add pending events to stake table

* Add additional tanstack refetch on user stake/unstake/redeem rewards

* refactor repeated fetch functions

* clean up fetching functions

* refactor & clean up

* Add epoch waiting message on epoch change delay

* fine tune epoch change

* clean up

* refactor imports

* Add transaction hash to successful redeem rewards InfoModal

* fix epoch time check and mobile header

* Fix Loading modal width on mobile

* fix epoch logic

* clean up

* clean up logs

* add waiting for epoch to start to landing page

* clean up

* Add refetch of all queries on epoch change

* Finalise state change on epoch change

* clean up

* fix build

* Fix NodesTable mobile view

* Fix stake table mobile view

* fix typo

* Fix blog articles height

* Add loading skeletons to landing page cards

* clean up

* Add skeletons to cards

* Add skeletons, and loading/error refetch on wallet balnce

* clean up

* Add active stakers card

* clean up

* change NGM to mixnet

* Add TVL to Tokenomics card

* Add last total stake to Stake Card

* clean up

* Fix stake sorting function in Stake Table

* Add wrap of identity key and address to Basic Info Card

* Add counter to epoch time on staking page

* clean up

* update epoch labels

* Add circular loading on Toggle Button

* Update Toggle button loading functionality

* Add skeletons to account cards

* Add search functionality on Enter

* clean up

* DOMpurify node name and description

* Add column with id and identity key, wrap names to 2 lines

* Set width of column headers to 110px

* fix pending events for delegations

* Fix Stake button proppagation

* Add full country name to tooltips

* Take out connect wallet from mobile menu toggle

* finetune epoch change intervals

* Add error text to Magic Search

* fix build

* Add react-markdown for Blog articles

* fix graph's width and Table column headings

* fix Magic Search loading

* Fix grid on account page

* fix account card address width

* Fix permanent loading spinner on ToggleButton

* clean up URL's, fix copy address on the Basic Card

* replace mintscan with ping, open tx link on new page

* Take out toggle button if no node bonded by address

* Set fixed column width on tables

* Add not-found page to account, when no node bonded

* Add full country name to tables and node profile card

* clean up

* Table fixes

* Fix sorting in Delegations table Node page

* clean up

* Fix line chart view

* refactor epoch progress bar

* remove unused imports

* remove tanstack delclaration module

* create epoch data provider

* remove logic from togglebutton component

* use epoch provider in components

* invalidateQueries should be awaited

* tidy up QualityIndicatorsCard component formatting

* fix infinite loop in epoch provider

---------

Co-authored-by: Yana <yanok87@users.noreply.github.com>
Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk>
2025-02-27 19:11:50 +02:00
Yana 077a64b076 fix sorting on StakeTable 2025-02-27 19:11:23 +02:00
Yana 65309170b4 clean up 2025-02-27 19:11:22 +02:00
Yana d41d26f5ac fix build 2025-02-27 19:11:22 +02:00
Yana 56ebf001aa fix build 2025-02-27 19:11:22 +02:00
Yana 5c4987cd75 Add tanstack react-query for refetching data on epoch change 2025-02-27 19:11:22 +02:00
Yana 26984b619c clean up 2025-02-27 19:11:21 +02:00
Yana 8cfa4ddc12 fix async func in StakeTableWithAction 2025-02-27 19:11:21 +02:00
Yana 4b1a78f6ec fix article cards, label, remove profit margin from StakeTable 2025-02-27 19:11:20 +02:00
Yana 31dd960d47 fix build 2025-02-27 19:11:20 +02:00
Yana 8ec4159532 fix build 2025-02-27 19:11:20 +02:00
Yana 491d424fd6 Fix stake more action 2025-02-27 19:11:20 +02:00
Yana 20b70bf0f9 Fix build 2025-02-27 19:11:20 +02:00
Yana 97469ebe5f Add stake more in StakeTable 2025-02-27 19:11:19 +02:00
Yana 3984fcc804 Fix pinning Favorites 2025-02-27 19:11:17 +02:00
Yana bd008c24ad Add Favorites to StakeTable 2025-02-27 19:11:17 +02:00
Yana b74d2447a8 clean up 2025-02-27 19:11:16 +02:00
Yana ee5eb6042d fix build 2025-02-27 19:11:16 +02:00
Yana 3aa6462ead clean up 2025-02-27 19:11:16 +02:00
Yana fd8d226d68 Add redeem rewards 2025-02-27 19:11:15 +02:00
Yana 5edb1dd3b0 Add Total Stake, refactor Original Stake to Observatory api call 2025-02-27 19:11:15 +02:00
Yana 7c236b2f86 Add Total Rewards 2025-02-27 19:11:15 +02:00
Yana 5a082b4170 Fix some sorting 2025-02-27 19:11:15 +02:00
Yana f875b38c87 Add Node Saturation Point to NodeTable and StakeTable 2025-02-27 19:11:14 +02:00
Yana 86621d0b94 Add name to StakerTable 2025-02-27 19:11:14 +02:00
Yana 9fae4f26a1 Refactor StakeNodeTable to spectreDao api endpoint 2025-02-27 19:11:13 +02:00
Fouad ef32b0e543 Add mobile menu (#5306)
* add mobile menu

* fix unstake on delegations with no bond details
2025-02-27 19:11:06 +02:00
fmtabbara 0f6f0f3ca7 display fallback when stake table is empty 2025-02-27 19:11:05 +02:00
Fouad de4f813de8 Feature/explorer v2 connect wallet (#5301)
* set up libs for connecting wallet

* wallet - get address and balance

* format wallet balance

* start staking modal work

* Yana/node page (#5276)

* Add nym-node page api WIP

* nym-node page api WIP

* Add rewards card

* Add account balances

* fix build

* Add USD price to tokenomics card

* fix build

* fix build

* fix build

* Refactor ProgressBar

* Add profile card

* fix build

* replace hardcoded id

* Add build version and node roles

* fix build

* rename id param to address

* add node table to explorer page

* get node details from unstable endpoint + layout updates

* allow node select from table

* stop propogation on favorite/unfavorite

* update self bond data

* card refactors

* revert node engine requirement

* use node v20

---------

Co-authored-by: Yana <yanok87@users.noreply.github.com>
Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk>

* set up libs for connecting wallet

* wallet - get address and balance

* update typings + refactor favorite component

* fix event propogation

* fix multiple url declarations

* move pages to pages directory

* build staking page and base components

* refactor wallet components and add useNymClient hook

* enhance DesktopHeader to highlight active menu item with icon

* remove StakeModal and getNymNodes components

* refactor NodeTable and NodeTableWithAction components for improved staking functionality

* refactor API configuration and theme styles for improved maintainability

* refactor Loading component to implement LoadingModal with enhanced styling and functionality

* add InfoModal component for displaying informational messages with customizable actions

* fix type

* fix linting

* update CI workflow to use Node.js 20

* add explorer package to dependencies in package.json

* fix mui grid2 build errors

* fix full page reload

* fix unstaking

* fix delegation operation

* fix up workspace packages

* refactor staking and wallet components for improved functionality and readability

* fix undelegation (again)

* update ci to include new explorer

* update wallet ci node version

* remove logs

---------

Co-authored-by: Yana Matrosova <42305364+yanok87@users.noreply.github.com>
Co-authored-by: Yana <yanok87@users.noreply.github.com>
2025-02-27 19:11:05 +02:00