[LWDM] fix(LIVE-29443): add mobile swap status drawer infrastructure#18864
[LWDM] fix(LIVE-29443): add mobile swap status drawer infrastructure#18864philipptpunkt wants to merge 1 commit into
Conversation
Web Tools Build Status
|
|
There was a problem hiding this comment.
Pull request overview
Adds the missing Redux + drawer plumbing on Ledger Wallet Mobile to support an upcoming “Swap Transaction Status” bottom-sheet flow, and tightens the queued drawer close handling to reliably distinguish header-close intent from other close causes.
Changes:
- Introduces a new
swapTransactionStatusDrawerRedux slice (open/close + params) and wires it into the mobile root reducer +Statetyping. - Extends the queued drawer bottom-sheet hook/component to handle
onHeaderClosePresseddeterministically (and avoid duplicateonCloseon subsequent dismiss signals). - Updates CODEOWNERS and adds unit coverage for the new header-close behavior in
useQueuedDrawerBottomSheet.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
CODEOWNERS |
Assigns ownership for the new mobile swap status drawer reducer file. |
apps/ledger-live-mobile/src/reducers/types.ts |
Adds the new slice type/import and includes it in the root State. |
apps/ledger-live-mobile/src/reducers/swapTransactionStatusDrawer.ts |
New Redux Toolkit slice storing drawer open state + SwapTransactionStatusParams. |
apps/ledger-live-mobile/src/reducers/index.ts |
Registers the new reducer in combineReducers. |
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/useQueuedDrawerBottomSheet.ts |
Adds onHeaderClosePressed support with guarded close sequencing. |
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/QueuedDrawerBottomSheet.tsx |
Routes BottomSheet onHeaderClosePressed through the hook handler. |
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/__tests__/useQueuedDrawerBottomSheet.test.ts |
Adds a regression test ensuring header-close triggers callbacks once and ignores later close events. |
Rsdoctor Bundle Diff AnalysisFound 7 projects in monorepo, 7 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 desktop-mainPath:
📁 desktop-preloaderPath:
📁 desktop-rendererPath:
📁 desktop-webviewDappPreloaderPath:
📁 desktop-webviewPreloaderPath:
📁 desktop-workersPath:
📁 mobilePath:
Generated by Rsdoctor GitHub Action |
73fa0e9 to
3c63647
Compare
f4c4d45 to
75488d4
Compare
3c63647 to
ddad409
Compare
75488d4 to
7eadb5a
Compare
ddad409 to
df27b3c
Compare
7eadb5a to
9138418
Compare
df27b3c to
5eddc1c
Compare
9138418 to
73350df
Compare
5eddc1c to
e60054b
Compare
73350df to
904dc9d
Compare
904dc9d to
df1604f
Compare
df1604f to
a4f9955
Compare
|



Jira: https://ledgerhq.atlassian.net/browse/LIVE-29443
Summary
swapTransactionStatusDrawerreducer and root reducer/type registration.handleHeaderClosePressedso close tracking and duplicate close protection remain stable.Review Scope
@ledgerhq/wallet-xpfor genericQueuedDrawerbehavior.@ledgerhq/ptxfor the swap status drawer reducer ownership.Validation
QueuedDrawerfocused Jest tests passed.Stack (managed by stac-man)