From d044c1c680096446c7c75cd656e2d342fabd172b Mon Sep 17 00:00:00 2001
From: digiwand <20778143+digiwand@users.noreply.github.com>
Date: Thu, 16 Jan 2025 08:20:48 -0800
Subject: [PATCH] feat: "Unlimited" value Decoding Simulation and account and
message modal UI/UX updates (#13030)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## **Description**
Feat:
- Support "Unlimited" display values in decoding simulation
- Update account detail and message modals to have transparent
backgrounds and enable click to close on background
Note: It might be helpful to walk through the commits to review
## **Related issues**
Fixes: https://github.com/MetaMask/metamask-mobile/issues/13022
Relates to: https://github.com/MetaMask/metamask-mobile/pull/12994
## **Manual testing steps**
1. Go to this page...
2.
3.
## **Screenshots/Recordings**
### **Before**
![CleanShot 2025-01-16 at 03 23
30](https://github.com/user-attachments/assets/fd192b87-c5b7-4bb8-9d35-509b8c6bd55a)
![CleanShot 2025-01-16 at 04 12
30](https://github.com/user-attachments/assets/3468d59b-f045-4f5a-8669-09de78b7b7d1)
### **After**
![CleanShot 2025-01-16 at 03 22
54](https://github.com/user-attachments/assets/4a02032e-92bb-4579-aebf-311dab8e3184)
![CleanShot 2025-01-16 at 03 20
50](https://github.com/user-attachments/assets/9dd7b37c-8ced-4f50-b247-fdd7cd698247)
### **Before without "Unlimited" support**
### **After "Unlimited" support**
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **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.
---
.../TypedSignV3V4/Simulation/Simulation.tsx | 4 +--
.../TypedSignDecoded.test.tsx | 13 +++++++
.../TypedSignDecoded/TypedSignDecoded.tsx | 13 ++++---
.../ValueDisplay/ValueDisplay.test.tsx | 34 ++++++++++++-------
.../components/ValueDisplay/ValueDisplay.tsx | 15 ++++++--
.../ExpandableSection/ExpandableSection.tsx | 2 +-
.../Views/confirmations/utils/confirm.ts | 3 ++
locales/languages/en.json | 3 +-
8 files changed, 62 insertions(+), 25 deletions(-)
diff --git a/app/components/Views/confirmations/components/Confirm/Info/TypedSignV3V4/Simulation/Simulation.tsx b/app/components/Views/confirmations/components/Confirm/Info/TypedSignV3V4/Simulation/Simulation.tsx
index 981a9355911..37265d0d0cd 100644
--- a/app/components/Views/confirmations/components/Confirm/Info/TypedSignV3V4/Simulation/Simulation.tsx
+++ b/app/components/Views/confirmations/components/Confirm/Info/TypedSignV3V4/Simulation/Simulation.tsx
@@ -16,12 +16,12 @@ const TypedSignV3V4Simulation: React.FC