Skip to content

feat(tron): new staking UI elements#26917

Closed
ulissesferreira wants to merge 1 commit into
cursor/tron-additional-assets-34a0from
feat/trx-staking-flow-improvements
Closed

feat(tron): new staking UI elements#26917
ulissesferreira wants to merge 1 commit into
cursor/tron-additional-assets-34a0from
feat/trx-staking-flow-improvements

Conversation

@ulissesferreira
Copy link
Copy Markdown
Contributor

@ulissesferreira ulissesferreira commented Mar 3, 2026

Description

There are 3 new special assets being sent by the Tron snap that unlock UI improvements related to the staking experience:

  • TRX in lock_period, it's there during the withdrawal period (14 days)
  • TRX that has passed the lock_period and is ready to be fully withdrawn
  • TRX generated from staking rewards

In this PR we introduce UI elements to display these 3 special assets providing users a more complete overview of their staking + unstaing flow. We also allow users to call 2 new actions that are urgently missing:

  1. Claim TRX that is ready to be withdrawn
  2. Claim TRX rewards from staking

Changelog

CHANGELOG entry: Add UI elements to see and interact with: TRX being unlocked from staking, unstaked TRX that is ready to be withdrawn, TRX staking rewards

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@ulissesferreira ulissesferreira force-pushed the feat/trx-staking-flow-improvements branch from 37534d4 to 54f41a6 Compare March 3, 2026 16:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 3, 2026

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@ulissesferreira ulissesferreira changed the base branch from main to cursor/tron-additional-assets-34a0 March 3, 2026 16:46
@ulissesferreira ulissesferreira changed the title Staking flow improvements feat(tron): display new staking information Mar 3, 2026
@ulissesferreira ulissesferreira force-pushed the cursor/tron-additional-assets-34a0 branch from 7083d03 to 02afb28 Compare March 3, 2026 17:07
@ulissesferreira ulissesferreira force-pushed the feat/trx-staking-flow-improvements branch 2 times, most recently from fcc6145 to 9749121 Compare March 4, 2026 09:50
@github-actions github-actions Bot added the size-L label Mar 4, 2026
@ulissesferreira ulissesferreira force-pushed the cursor/tron-additional-assets-34a0 branch 11 times, most recently from 1607599 to 893e98a Compare March 4, 2026 13:05
@ulissesferreira ulissesferreira force-pushed the feat/trx-staking-flow-improvements branch 2 times, most recently from 1539537 to 54f36fc Compare March 5, 2026 13:54
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 9.75610% with 37 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (cursor/tron-additional-assets-34a0@893e98a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
app/components/UI/Earn/hooks/useTronClaim.ts 6.25% 15 Missing ⚠️
...I/TokenDetails/components/AssetOverviewContent.tsx 0.00% 6 Missing ⚠️
...omponents/UI/TokenDetails/hooks/useTokenBalance.ts 0.00% 6 Missing ⚠️
...s/UI/AssetOverview/utils/createTronDerivedAsset.ts 16.66% 5 Missing ⚠️
...omponents/Tron/TronClaimBanner/TronClaimBanner.tsx 33.33% 2 Missing ⚠️
app/components/UI/Earn/utils/tron-staking-snap.ts 0.00% 2 Missing ⚠️
...s/Tron/TronUnstakingBanner/TronUnstakingBanner.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                          @@
##             cursor/tron-additional-assets-34a0   #26917   +/-   ##
=====================================================================
  Coverage                                      ?   40.14%           
=====================================================================
  Files                                         ?     4623           
  Lines                                         ?   121183           
  Branches                                      ?    26444           
=====================================================================
  Hits                                          ?    48650           
  Misses                                        ?    67990           
  Partials                                      ?     4543           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ulissesferreira ulissesferreira force-pushed the feat/trx-staking-flow-improvements branch from 54f36fc to b656ef5 Compare March 5, 2026 15:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2026

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - base branch is not main (base: cursor/tron-additional-assets-34a0)

All E2E tests pre-selected.

View GitHub Actions results

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2026

⚠️ E2E Fixture Validation — Structural changes detected

Category Count
New keys 60
Missing keys 0
Type mismatches 0
Value mismatches 7 (informational)

The committed fixture schema is out of date. To update, comment:

@metamaskbot update-mobile-fixture

View full details | Download diff report

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
5.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@ulissesferreira ulissesferreira changed the title feat(tron): display new staking information feat(tron): new staking UI elements Mar 5, 2026
@ulissesferreira ulissesferreira force-pushed the feat/trx-staking-flow-improvements branch from b656ef5 to 5edb90b Compare March 5, 2026 16:45
@ulissesferreira
Copy link
Copy Markdown
Contributor Author

Closing this PR in favor of 3 smaller ones: #27074, #27075, #27076

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants