Commit Graph

33 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 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 4b1a78f6ec fix article cards, label, remove profit margin from StakeTable 2025-02-27 19:11:20 +02:00
Yana 98ccf9e37f Add node saturation point 2025-02-27 19:11:14 +02:00
Yana 3fd74fb590 Add total stake to BasicInfoCard 2025-02-27 19:11:14 +02:00
Yana 4d72d72eb0 Add favorite button on NodeProfileCard 2025-02-27 19:11:13 +02:00
Yana d2c42ab7c6 Add location label to NodoProfileCard 2025-02-27 19:11:13 +02:00
Yana 2e71a442cd Clean up 2025-02-27 19:11:13 +02:00
Yana ce6e40a148 Add quality of service stars for gateways 2025-02-27 19:11:12 +02:00
Yana 9244413539 add wireguardPerformance score fore gateways 2025-02-27 19:11:12 +02:00
Yana a554125187 Add config score for gateway 2025-02-27 19:11:12 +02:00
Yana 035080cd3b Refactor Node Page to spectreDao api endpoint 2025-02-27 19:11:12 +02:00
Yana f406e1d266 Add node active set prob, remove total stake and staker rewards 2025-02-27 19:11:11 +02:00
Yana 334e99538b Add Delegations Table 2025-02-27 19:11:11 +02:00
Yana 9f77ff4d82 try new Remark42 BE 2025-02-27 19:11:11 +02:00
Yana afa64decc2 Add moniker and description to Node page 2025-02-27 19:11:10 +02:00
Yana 9235777426 Add Remark42 chat onto Node page 2025-02-27 19:11:10 +02:00
Yana aa4fcc90ec WIP staking from Node page 2025-02-27 19:11:09 +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
fmtabbara 75c7c587dd card refactors 2025-02-27 19:09:42 +02:00
fmtabbara 29ae23bc93 update self bond data 2025-02-27 19:09:42 +02:00
fmtabbara c30fdcbe23 get node details from unstable endpoint + layout updates 2025-02-27 19:09:35 +02:00
Yana cc2b787cd3 fix build 2025-02-27 19:09:34 +02:00
Yana 406293d781 Add build version and node roles 2025-02-27 19:09:34 +02:00
Yana 1288d4bbcd fix build 2025-02-27 19:09:22 +02:00
Yana 7c359e29f1 Add profile card 2025-02-27 19:09:22 +02:00
Yana b7c64f290f fix build 2025-02-27 19:08:39 +02:00
Yana 057e9cdcf8 Add account balances 2025-02-27 19:08:18 +02:00
Yana bc4d2f70ab Add rewards card 2025-02-27 19:07:50 +02:00
Yana 0300c6d2d3 nym-node page api WIP 2025-02-27 19:07:05 +02:00
Yana 19e6554c22 Add nym-node page api WIP 2025-02-27 19:06:33 +02:00
Yana Matrosova ee4f5da834 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>
2025-02-27 19:06:00 +02:00