Skip to content

feature: staking earnings decimal formatting design#7358

Merged
maxbbb merged 2 commits intodevelopfrom
@kane/staking-earnings-formatting
Apr 21, 2026
Merged

feature: staking earnings decimal formatting design#7358
maxbbb merged 2 commits intodevelopfrom
@kane/staking-earnings-formatting

Conversation

@maxbbb
Copy link
Copy Markdown
Contributor

@maxbbb maxbbb commented Apr 16, 2026

Fixes APP-3640

What changed

  • RnbwStakingEarningsCard: Changed style of decimal portion of earnings number.
  • parseDecimalParts: Helper for splitting the number between integer portion and decimal portion for formatting the text differently. Note that we force US-locale style comma/decimal separators across the app so the simplistic splitting by "." logic works here.
  • Added an extra decimal for precision to earnings displayed number

Screen recordings / screenshots

Simulator Screenshot - iPhone 16e - 2026-04-16 at 08 46 29

@linear
Copy link
Copy Markdown

linear Bot commented Apr 16, 2026

@maxbbb maxbbb requested review from i1skn and olerass April 16, 2026 12:54
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for d2a31cf

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

🧪 Flashlight Performance Report (AWS Device Farm)

🔀 Commit: bbe8ef3

📎 View Artifacts

Metric Current Δ vs Baseline
Time to Interactive (TTI) 5586 ms ⚪ +13.0 ms (+0.2%)
Average FPS 56.29 ⚪ -0.5 (-0.8%)
Average RAM 397.3 MB ⚪ +1.2 MB (+0.3%)

@@ -0,0 +1,15 @@
export function parseDecimalParts(value: string): {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we have a couple of unit tests for this helper?

@maxbbb maxbbb enabled auto-merge (squash) April 21, 2026 20:44
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for bbe8ef3

@maxbbb maxbbb merged commit 370151e into develop Apr 21, 2026
20 checks passed
@maxbbb maxbbb deleted the @kane/staking-earnings-formatting branch April 21, 2026 21:05
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.

2 participants