-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yana/pending staking events #5400
Merged
Merged
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
1b770bf
Add pending events to stake table
yanok87 c8510dc
Add additional tanstack refetch on user stake/unstake/redeem rewards
yanok87 cb66685
refactor repeated fetch functions
yanok87 19f394d
clean up fetching functions
yanok87 be5b277
refactor & clean up
yanok87 2ecf00f
Add epoch waiting message on epoch change delay
yanok87 15a66ea
fine tune epoch change
yanok87 81791a9
clean up
yanok87 53b9be5
refactor imports
yanok87 33ea65e
Add transaction hash to successful redeem rewards InfoModal
yanok87 6cd6557
fix epoch time check and mobile header
yanok87 0cb2c12
Fix Loading modal width on mobile
yanok87 0abef84
fix epoch logic
yanok87 18248a0
clean up
yanok87 55b651b
clean up logs
yanok87 219c1e7
add waiting for epoch to start to landing page
yanok87 7a669b1
clean up
yanok87 25976c5
Add refetch of all queries on epoch change
yanok87 5ea8a80
Finalise state change on epoch change
yanok87 67d1a54
clean up
yanok87 352fd12
fix build
yanok87 6c08eb0
Fix NodesTable mobile view
yanok87 00f1c74
Merge pull request #5421 from nymtech/yana/nodes-table-mobile-fix
yanok87 a97b5fd
Fix stake table mobile view
yanok87 b9b7a92
fix typo
yanok87 3379b28
Fix blog articles height
yanok87 657c96d
Add loading skeletons to landing page cards
yanok87 2ab1458
clean up
yanok87 fdbfacb
Add skeletons to cards
yanok87 d7cc80d
Add skeletons, and loading/error refetch on wallet balnce
yanok87 c5a9c76
clean up
yanok87 501d47f
Add active stakers card
yanok87 4a83324
clean up
yanok87 df7a61b
change NGM to mixnet
yanok87 9cfcca0
Add TVL to Tokenomics card
yanok87 0a48c2a
Add last total stake to Stake Card
yanok87 6e94a7a
clean up
yanok87 f964a69
Fix stake sorting function in Stake Table
yanok87 bbf8231
Add wrap of identity key and address to Basic Info Card
yanok87 19c7128
Add counter to epoch time on staking page
yanok87 cbf1009
clean up
yanok87 4fe87b5
update epoch labels
yanok87 50ea133
Add circular loading on Toggle Button
yanok87 e7efec6
Update Toggle button loading functionality
yanok87 f27b7a7
Add skeletons to account cards
yanok87 7c2ad88
Add search functionality on Enter
yanok87 a9b7be8
clean up
yanok87 f1008e4
DOMpurify node name and description
yanok87 0bf6cfd
Add column with id and identity key, wrap names to 2 lines
yanok87 a23404f
Set width of column headers to 110px
yanok87 076fc28
fix pending events for delegations
yanok87 e550b4e
Fix Stake button proppagation
yanok87 23b730f
Add full country name to tooltips
yanok87 a61d360
Take out connect wallet from mobile menu toggle
yanok87 57d8226
finetune epoch change intervals
yanok87 a11b975
Add error text to Magic Search
yanok87 79ab898
fix build
yanok87 bd102a6
Add react-markdown for Blog articles
yanok87 513b9ed
fix graph's width and Table column headings
yanok87 26f61ba
fix Magic Search loading
yanok87 fc58246
Fix grid on account page
yanok87 53f4ff6
fix account card address width
yanok87 b5d765c
Fix permanent loading spinner on ToggleButton
yanok87 c8e4c06
clean up URL's, fix copy address on the Basic Card
yanok87 321e8d5
replace mintscan with ping, open tx link on new page
yanok87 c937b95
Take out toggle button if no node bonded by address
yanok87 aa36e77
Set fixed column width on tables
yanok87 4c26b98
Add not-found page to account, when no node bonded
yanok87 1dc9d56
Add full country name to tables and node profile card
yanok87 82eda41
clean up
yanok87 3c5fa83
Table fixes
yanok87 8d326fd
Fix sorting in Delegations table Node page
yanok87 3adae8a
clean up
yanok87 415d612
Fix line chart view
yanok87 4cbd5e5
refactor epoch progress bar
fmtabbara 5174b89
remove unused imports
fmtabbara 476a096
remove tanstack delclaration module
fmtabbara aec6479
create epoch data provider
fmtabbara 120ad25
remove logic from togglebutton component
fmtabbara f0ba9ce
use epoch provider in components
fmtabbara f491cb6
invalidateQueries should be awaited
fmtabbara 76188c3
tidy-ups
fmtabbara b078cb4
fix components
fmtabbara ca8fbd4
fix component
fmtabbara 6666f20
tidy up QualityIndicatorsCard component formatting
fmtabbara f5d689d
fix infinite loop in epoch provider
yanok87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can you use the
@
import alias for imports. It's a bit neater.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.
for some reason I've started having import red errors with "@/...", have refactored to this to get rid of the errors
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.
what are the errors?