Skip to content

feat(staking): [LW-8877] Add activity tab to staking, show rewards list #684

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

Merged

Conversation

refi93
Copy link
Contributor

@refi93 refi93 commented Oct 27, 2023

Checklist

  • JIRA - LW-8877
  • Proper tests implemented
  • Screenshots added.

Proposed solution

Add new tab to Staking section called "Activities" and add there the "History" section as shown in designs

This PR also adds the screen for the scenario where the user has no staking activity yet

see figma designs in JIRA issue

Testing

Go to Staking -> Activity, check that the events are properly shown and that correct details appear when you click on an event.

Screenshots

Screenshot 2023-11-03 at 15 25 57
Screenshot 2023-11-03 at 15 26 08
Screenshot 2023-11-03 at 17 12 54


Allure report

allure-report-publisher generated test report!

smokeTests: ❌ test report for 7fea2909

passed failed skipped flaky total result
Total 31 1 0 0 32

@refi93 refi93 changed the base branch from main to feat/lw-8751-show-pool-rewards-in-activity October 27, 2023 18:01
@github-actions github-actions bot added the staking Changes to the staking package. label Oct 27, 2023
@refi93 refi93 force-pushed the feat/lw-8877-staking-activity-rewards branch 2 times, most recently from 0340060 to 7fea290 Compare October 27, 2023 21:34
@github-actions github-actions bot added the browser Changes to the browser application. label Oct 27, 2023
@refi93 refi93 changed the title feat(staking): [LW-8877] Add activity tab to staking, show rewards list feat(staking): [LW-8877] Add activity tab to staking, show rewards list (WIP) Oct 27, 2023
Base automatically changed from feat/lw-8751-show-pool-rewards-in-activity to main October 30, 2023 09:11
@refi93 refi93 force-pushed the feat/lw-8877-staking-activity-rewards branch from 40495e0 to 2d1b7b2 Compare November 2, 2023 16:13
@refi93 refi93 force-pushed the feat/lw-8877-staking-activity-rewards branch 4 times, most recently from c0f823e to 62528d4 Compare November 3, 2023 14:18
@refi93 refi93 force-pushed the feat/lw-8877-staking-activity-rewards branch from 62528d4 to 483284e Compare November 3, 2023 14:24
@refi93 refi93 changed the base branch from main to feat/lw-8877-activity-tab November 3, 2023 14:25
@refi93 refi93 requested review from mrcnk and xdzurman November 3, 2023 14:25
@refi93 refi93 marked this pull request as ready for review November 3, 2023 16:15
@refi93 refi93 requested review from a team as code owners November 3, 2023 16:15
@@ -44,7 +44,7 @@ export const StakingView = () => {
</Box>
<Navigation>
{(activePage) => (
<Box mt="$40">
<Box mt="$40" h="$fill">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes the "Activity" page (and any other "Staking" tab) container fill the available vertical space, which in turns allows me to align vertically to the center the "No staking activity yet" component. TBH I find this a bit fragile as the code lacks any clear connection and therefore it's easy to break. Do you perhaps have some nicer solution on your mind @mrcnk ?

@refi93 refi93 changed the title feat(staking): [LW-8877] Add activity tab to staking, show rewards list (WIP) feat(staking): [LW-8877] Add activity tab to staking, show rewards list Nov 3, 2023
@mrcnk mrcnk merged commit dcd5f83 into feat/lw-8877-activity-tab Nov 6, 2023
@mrcnk mrcnk deleted the feat/lw-8877-staking-activity-rewards branch November 6, 2023 08:38
greatertomi pushed a commit that referenced this pull request Nov 16, 2023
* feat(staking): add activity tab

* feat(staking): [LW-8877] Add activity tab to staking, show rewards list (#684)

* feat(staking): add rewards list to Staking Activity tab

* feat(staking): expose activity detail drawer in staking section to be used by staking activity

* feat(staking): add "no staking activity yet" screen

* fix(staking): align "no staking activity" component to center vertically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Changes to the browser application. staking Changes to the staking package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants