-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 <[email protected]> Co-authored-by: fmtabbara <[email protected]>
- Loading branch information
1 parent
ea86106
commit 9aed938
Showing
72 changed files
with
2,563 additions
and
1,205 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 was deleted.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
explorer-nextjs/src/app/(pages)/account/[address]/not-found/page.tsx
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import BlogArticlesCards from "@/components/blogs/BlogArticleCards"; | ||
import { ContentLayout } from "@/components/contentLayout/ContentLayout"; | ||
import SectionHeading from "@/components/headings/SectionHeading"; | ||
import ExplorerButtonGroup from "@/components/toggleButton/ToggleButton"; | ||
import { Box, Typography } from "@mui/material"; | ||
import Grid from "@mui/material/Grid2"; | ||
|
||
export default async function Account({ | ||
params, | ||
}: { | ||
params: Promise<{ address: string }>; | ||
}) { | ||
try { | ||
const address = (await params).address; | ||
|
||
return ( | ||
<ContentLayout> | ||
<Grid container columnSpacing={5} rowSpacing={5}> | ||
<Grid size={12}> | ||
<Box sx={{ display: "flex", justifyContent: "space-between" }}> | ||
<SectionHeading title="Nym Node Details" /> | ||
<ExplorerButtonGroup | ||
options={[ | ||
{ | ||
label: "Nym Node", | ||
isSelected: true, | ||
link: `/account/${address}/not-found/`, | ||
}, | ||
{ | ||
label: "Account", | ||
isSelected: false, | ||
link: `/account/${address}`, | ||
}, | ||
]} | ||
/> | ||
</Box> | ||
</Grid> | ||
</Grid> | ||
<Typography variant="h5"> | ||
Is this your accont? Set up your node! | ||
</Typography> | ||
<Grid container columnSpacing={5} rowSpacing={5}> | ||
<Grid size={12}> | ||
<SectionHeading title="Onboarding" /> | ||
</Grid> | ||
<BlogArticlesCards limit={4} /> | ||
</Grid> | ||
</ContentLayout> | ||
); | ||
} catch (error) { | ||
let errorMessage = "An error occurred"; | ||
if (error instanceof Error) { | ||
errorMessage = error.message; | ||
} | ||
throw new Error(errorMessage); | ||
} | ||
} |
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
14 changes: 0 additions & 14 deletions
14
explorer-nextjs/src/app/(pages)/nym-node/not-found/page.tsx
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.