chore: [DSYS-616] replace single Box instance and update @deprecated JSDoc#29636
chore: [DSYS-616] replace single Box instance and update @deprecated JSDoc#29636cursor[bot] wants to merge 1 commit intomainfrom
Conversation
Replace one legacy UI Box usage with design-system Box; add @deprecated JSDoc with MMDS README and migration guide links (DSYS-629 docs version). Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeConfirmations: The transaction-details component is part of the confirmations/activity area and covers transaction detail display after confirmations. SmokeWalletPlatform: Tests transaction history display (incoming/outgoing ETH transactions, token transfer details) which directly uses this TransactionDetails component. No other tags are warranted - the change is isolated to the transaction details view styling and doesn't affect core logic, controllers, navigation structure, or other feature areas. Performance Test Selection: |
|



Description
Upstream MMDS documentation: MetaMask/metamask-design-system#1145 (
MIGRATION_DOCS_VERSION: 7fb6452a61c939c216503c4914f1f46f4d528175).This change migrates one production
Boxusage in confirmations transaction details from the legacy mobileapp/components/UI/Boxwrapper toBoxfrom@metamask/design-system-react-native. Horizontal padding is preserved withtwClassName="px-4"(equivalent to the previouspaddingInline: 16). Legacygap={12}(raw pixels on the old wrapper) is mapped to MMDS spacing withgap={3}(12px in the design-system spacing scale).@deprecatedJSDoc on the legacyBoxentry point (app/components/UI/Box/Box.tsx) now includes exactly two@seelinks: the MMDS Box README and the React Native migration guide#box-componentanchor.DSYS_EPIC: DSYS-616Fixes: DSYS-629Processed MIGRATION_DOCS_VERSION: 7fb6452a61c939c216503c4914f1f46f4d528175Migration doc discrepancies found
app/component-library, while this repo’s legacyBoximplementation lives underapp/components/UI/Box(called out in DSYS-629 docs on the upstream PR). Behavior here is unchanged aside from the MMDSBoxspacing scale forgap.Changelog
CHANGELOG entry: null
Related issues
Fixes: DSYS-629
Manual testing steps
Screenshots/Recordings
N/A (layout parity with previous
Boxwrapper; no intentional visual change).Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist