Skip to content
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

Rebrand staking page #474

Merged
merged 18 commits into from
Nov 20, 2024
Merged

Rebrand staking page #474

merged 18 commits into from
Nov 20, 2024

Conversation

Anboias
Copy link
Collaborator

@Anboias Anboias commented Nov 12, 2024

Closes #456

Designs

What does this do?

  • updates main section of the page
  • uodates unconnected wallet state
  • updates connected wallet state (and some tokens staked)
  • updates unstaking state

What is this not doing?

  • doesn't update skeletons as we don't use any yet. Adding them now implies we meddle with the logic (to retrieve the loading/error flags), and I'm not sure if we want that now

Screenshots

Pending unstaking

Mobile Desktop
image image

Main view

Unconnected Connected
image image

@Anboias Anboias self-assigned this Nov 12, 2024
@Anboias Anboias linked an issue Nov 12, 2024 that may be closed by this pull request
Copy link
Collaborator

@peterjurco peterjurco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks promising, but couple of things should be addressed

src/pages/dashboard/staking/staking-pool.tsx Show resolved Hide resolved
src/pages/dashboard/dashboard.tsx Show resolved Hide resolved
src/pages/dashboard/dashboard.module.scss Show resolved Hide resolved
src/pages/dashboard/dashboard.module.scss Outdated Show resolved Hide resolved
src/pages/dashboard/dashboard.tsx Outdated Show resolved Hide resolved
src/pages/dashboard/dashboard.module.scss Outdated Show resolved Hide resolved
src/pages/dashboard/dashboard.tsx Outdated Show resolved Hide resolved
src/pages/dashboard/dashboard.tsx Show resolved Hide resolved
src/pages/dashboard/dashboard.tsx Show resolved Hide resolved
Copy link
Collaborator

@mcoetzee mcoetzee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to address from my side 👍

@Anboias Anboias requested a review from peterjurco November 14, 2024 11:01
Base automatically changed from 455/rebrand-layout to rebrand November 15, 2024 10:53
@Anboias Anboias force-pushed the 456/rebrand-staking-page branch from 2d179ab to dd9d98e Compare November 15, 2024 11:33
@@ -5,7 +5,7 @@ describe('delegation', () => {
cy.resetBlockchain().login();

// Approve, deposit and stake
cy.findByText('+ Deposit').click();
cy.dataCy('staking-cards').findByRole('button', { name: 'Deposit' }).click();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets rather use the built in data-testid="..." and cy.findByTestId(...) for all of these cy.dataCy() usages that you've added.

Copy link
Collaborator Author

@Anboias Anboias Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Replaced both dataCy and findByRole with findByTestId.

If you meant to replace only dataCy with findByTestId, I'll quickly adjust.

@Anboias Anboias merged commit 90b9d7e into rebrand Nov 20, 2024
2 of 4 checks passed
@Anboias Anboias deleted the 456/rebrand-staking-page branch November 20, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rebrand DAO Dashboard - Staking page
3 participants