safe-global / safe-wallet-web

Safe{Wallet} – smart contract wallet for Ethereum (ex-Gnosis Safe multisig)
https://app.safe.global
GNU General Public License v3.0
311 stars 360 forks source link

Fix: full token amount in tx details #3848

Closed katspaugh closed 1 week ago

katspaugh commented 2 weeks ago

What it solves

Resolves https://github.com/5afe/safe-support/issues/464

A user reported a regression after #3807. Token amounts should not be abbreviated in tx details.

How this PR fixes it

It makes an exception for token amounts displayed in tx details to show the full number up to 30 digits. If more than 30, it will be still abbreviated.

After the fix:

Screenshot 2024-06-18 at 21 16 43
github-actions[bot] commented 2 weeks ago

Branch preview

βœ… Deploy successful!

Website: https://amount--walletweb.review.5afe.dev/home?safe=eth:0xA77DE01e157f9f57C7c4A326eeE9C4874D0598b6

Storybook: https://amount--walletweb.review.5afe.dev/storybook/

github-actions[bot] commented 2 weeks ago

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A

Report generated by eslint-plus-action

github-actions[bot] commented 2 weeks ago

πŸ“¦ Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. πŸ€–

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1003.77 KB (🟑 +24 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

github-actions[bot] commented 2 weeks ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
79.16% (-0.01% πŸ”»)
11554/14595
πŸ”΄ Branches
58.33% (-0.02% πŸ”»)
2794/4790
🟑 Functions
66.12% (-0.04% πŸ”»)
1850/2798
🟒 Lines
80.49% (-0.02% πŸ”»)
10415/12940
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟒 |
`...` / index.tsx
|
82.35% (-8.82% πŸ”»)
|
66.67% (-16.67% πŸ”»)
|
50% (-12.5% πŸ”»)
|
83.87% (-9.68% πŸ”»)
| | 🟒 |
`...` / useGasPrice.ts
|
95% (-1.25% πŸ”»)
|
80.95% (-2.38% πŸ”»)
| 100% |
94.81% (-1.3% πŸ”»)
| | 🟒 |
`...` / index.tsx
| 100% |
85.71% (-14.29% πŸ”»)
| 100% | 100% |

Test suite run success

1444 tests passing in 199 suites.

Report generated by πŸ§ͺjest coverage report action from 6c09d844d2625a25564d05fa6f4a56a0c3c83b8d

liliya-soroka commented 1 week ago

Verified