Skip to content

Migrate raw keys and master private key warnings to UI4 card - #6095

Closed
j0ntz wants to merge 2 commits into
developfrom
jon/ui4-warning-cards
Closed

Migrate raw keys and master private key warnings to UI4 card#6095
j0ntz wants to merge 2 commits into
developfrom
jon/ui4-warning-cards

Conversation

@j0ntz

@j0ntz j0ntz commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Description

The Reveal Raw Keys and Reveal Master Private Key password confirmation
screens still used the legacy bordered Alert component for their warning
text, while the Export Logs modal (the UI4 reference) uses the solid
gradient AlertCardUi4 card. This PR swaps TextInputModal's warning
render (shared by both screens) from Alert to AlertCardUi4, matching
the Export Logs style and edge-login-ui-rn's own copy of TextInputModal,
which had already made this same change.

Verified live on the iOS sim: Wallet List menu -> Master Private Key and
Get Raw Keys both now show the gradient warning card instead of the old
outlined box (screenshots attached below).

Asana task


Note

Low Risk
Presentation-only change in a shared modal; no auth, key derivation, or password-check logic is modified.

Overview
Password confirmation modals for Reveal Raw Keys and Reveal Master Private Key now show warnings with the UI4 AlertCardUi4 gradient card instead of the legacy bordered Alert, aligned with Export Logs and edge-login-ui-rn.

TextInputModal maps warningMessage to AlertCardUi4 (type="warning", localized title, body prop) and drops the old styled layout in favor of StyleSheet for the multiline inner container. Snapshots and ESLint coverage for the modal are updated accordingly; CHANGELOG notes the user-visible change.

Reviewed by Cursor Bugbot for commit f40e807. Bugbot is set up for automated code reviews on this repo. Configure here.

j0ntz added 2 commits July 23, 2026 19:26
Add explicit return types, type catch callback as unknown, and replace
the styled() wrapper with a plain View + StyleSheet component.
The Reveal Raw Keys and Reveal Master Private Key password screens shared
TextInputModal's legacy bordered Alert component for their warning text.
Swap it for the UI4 AlertCardUi4 (gradient card + icon), matching the
Export Logs modal's warning card and edge-login-ui-rn's own already-UI4'd
TextInputModal.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@j0ntz

j0ntz commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

📸 Test evidence

master private key warning

master private key warning

raw keys warning

raw keys warning

Captured by the agent's in-app test run (build-and-test).

@j0ntz j0ntz mentioned this pull request Jul 24, 2026
6 tasks
@j0ntz

j0ntz commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #6105, which consolidates this and 11 other small GUI task branches into one PR/branch per the umbrella task's instructions.

@j0ntz j0ntz closed this Jul 24, 2026
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.

1 participant