Repository navigation
fix: usdt confirm details fit above swipe to pay - #1062
Conversation
|
QA on an iPhone 17 Pro simulator (iOS 27.0), regtest debug build of this branch with a local-only hook that supplies the quote, contact and invoice note:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The change stays within the expanded USDT send confirmation screen. The PR appears safe to merge, with a non-blocking gap in the journey check. Findings
SummaryMoves the expanded USDT fee note into the scrolling details and leaves Swipe To Pay pinned.
Reviews (1) · Last reviewed commit: "fix: fit usdt confirm details above a pi..." · Reviewed by Greptile |
|
Pushed 895c04a: |
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Moves the USDT fee note into the scrolling details under Hide Details so it can no longer collide with the pinned Swipe To Pay, and adds that check to two journeys. Reviewed 895c04a, light tier.
What I checked, and 2 candidates I ruled out
Read in full: confirmation(_:) in UsdtSendView.swift, and the two journey edits.
CI: SwiftFormat and validate green; unit and integration tests still running. Swift is not built on this box.
Ruled out
- Note no longer at the bottom when details fit: the content
VStackkeeps.frame(minHeight: geometry.size.height)and the note followsSpacer(minLength: 0), so it still sits at the bottom when nothing overflows. - Conflict with #1064 on the same file: the two branches merge cleanly (
git merge-tree).
Merge confidence: 4/5, the unit tests are still running; the change is layout, which journeys cover rather than tests.
jvsena42
left a comment
There was a problem hiding this comment.
Code scan at 895c04a: no issues found.
- Layout: the fee note sits after a flexible spacer inside the min-height scroll column. When the details fit, it sits at the bottom; when they overflow, it follows Hide Details. Swipe to pay stays pinned outside the scroll.
- Show/Hide: each toggle scrolls back to the top, so the amount header is visible.
- Reachability: amount, Pay from, Network, Payment, Fee, Address, Contact and Note all stay reachable by scrolling. Nothing is clipped.
- Parity: same structure, journey text and changelog sentence as synonymdev/bitkit-android#1637.
- Journeys:
usdt-send-review-and-details.xmlandpaykit-quoted-usdt.xmlupdated. The new Paykit step covers Greptile's resolved thread.
Device gate (partial): 895c04a — not run yet. Pending: a Paykit USDT request with a contact and a wrapped note → Show Details → scroll and Hide Details, with no overlap and Swipe pinned. Then a plain send on a short screen with large text (iPhone SE with the largest Dynamic Type on iOS).
Device results will follow in a separate review.
jvsena42
left a comment
There was a problem hiding this comment.
Device results, part 1, on the USDT fixture (iPhone 17 simulator, 895c04a). Plain USDT send of 1.00:
- Default text: the details fit. The fee note sits at the bottom, 24 pt above Swipe To Pay. Hide Details brings the illustration back.
- Accessibility Large: the details overflow. Scrolled to the end, the fee note follows Hide Details with a 24 pt gap and no overlap, and Swipe stays pinned and fully visible. After Hide and Show Details again, the amount header is visible both times.
- Largest text (AX5): same result. The fee note wraps to three lines with no overlap, and Swipe stays pinned. No iPhone SE simulator exists, so this stands in for compact plus largest text.
- Journey: the changed action in
usdt-send-review-and-details.xmlpassed.
Not from this PR: at AX5, the "Swipe To Pay" title runs under the knob. SwipeButton isn't in this diff, and I haven't compared it on master yet.
Device gate (partial): 895c04a — 4 checks passed, 0 failed. Pending: the new action in paykit-quoted-usdt.xml, a linked contact's USDT request with a wrapping note. The only open request on the test wallet comes from a contact that no longer publishes a USDT endpoint, so the next run will create a fresh request from the Android device.
|
@jvsena42 thanks for the device pass.
Right, this PR doesn't touch The Paykit journey step (a USDT request with a contact and a wrapping note) is the one left; it waits for your fresh request from the Android device. |
pwltr
left a comment
There was a problem hiding this comment.
Approved. Moving the fee explanation into the scrolling details fixes the overlap while keeping Swipe To Pay pinned. The explanation stays at the bottom when details fit and remains reachable when they overflow. Payment logic and the collapsed review are unchanged.
Closes #1060
Twin: synonymdev/bitkit-android#1637
This PR makes the expanded USDT confirm fit the longest set of details (contact, address and invoice note on a Paykit request): the fee hint now scrolls with the details under Hide Details, and Swipe To Pay stays pinned.
Description
usdt-send-review-and-details.xml.Out of Scope
UsdtSendView.swiftcollapsed confirm, Amount and submitted states: unchanged.Design
Bitkit - Refactor v63 › Send (USDT) › Confirm Details USDT. The frame shows a direct send without the Contact and Invoice Note rows; this PR keeps its order (details, Hide Details, fee hint, Swipe To Pay) and makes it scroll when a Paykit request adds those rows.
Preview
Before, 3.0.1, a plain send without the Contact row (address masked):
After, regtest with a local test hook supplying the quote, contact and invoice note: details open, then scrolled to the fee hint:
i1060.mp4
After, a plain send whose details fit: the hint stays at the bottom and a gentle drag up moves nothing:
QA Notes
Journeys
usdt-send-review-and-details.xml— the fee hint sits below Hide Details and scrolls with the details, with Swipe To Pay pinnedpaykit-quoted-usdt.xml— a USDT request with contact and a long invoice note: details scroll past Hide Details to the fee note, with Swipe To Pay pinnedManual Tests
journeys/README.mdplus a USDT quote, which needs the local USDT fixtureAutomated Checks
N/A