Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Dec 1, 2025

FIGMA

Description

This PR applies the v59 design on receive sheet

Preview

Screen_recording_20251205_081642.mp4
Figma Android

QA Notes

Tested:

  • Camera permission not granted -> should display UI to try again
  • Permission granted
  • Scan with failure
  • Scan with success
  • Scan from gallery

@jvsena42 jvsena42 changed the base branch from master to feat/new-receive-sheet December 1, 2025 15:02
@jvsena42 jvsena42 marked this pull request as draft December 1, 2025 15:02
@jvsena42 jvsena42 changed the title feat: Send Sheet redesi feat: Send Sheet redesign Dec 1, 2025
@jvsena42 jvsena42 changed the title feat: Send Sheet redesign feat: Send Sheet v59 redesign Dec 1, 2025
@jvsena42 jvsena42 marked this pull request as ready for review December 2, 2025 11:53
@jvsena42 jvsena42 self-assigned this Dec 2, 2025
@jvsena42 jvsena42 requested a review from ovitrif December 2, 2025 11:54
@jvsena42 jvsena42 marked this pull request as draft December 2, 2025 11:56
@jvsena42
Copy link
Member Author

jvsena42 commented Dec 2, 2025

Drafted to update the RectangleButton in the other screens

@jvsena42 jvsena42 marked this pull request as ready for review December 2, 2025 12:41
@jvsena42

This comment was marked as outdated.

@jvsena42 jvsena42 requested a review from Copilot December 2, 2025 12:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements the v59 redesign for the Send Sheet, transforming it from a simple list of buttons into an interactive QR code scanner with camera integration. The main changes include adding camera functionality, permission handling, and gallery image scanning capabilities.

Key changes:

  • Added inline camera preview with QR code scanning in the Send Sheet
  • Implemented camera permission handling with a permission denied state UI
  • Refactored RectangleButton component to support simplified icon rendering with backgrounds

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
app/src/main/res/drawable/ic_camera.xml New camera icon drawable resource used in the permission denied UI
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendRecipientScreen.kt Complete redesign to integrate camera preview, QR scanning, gallery image scanning, and permission handling directly into the send screen
app/src/main/java/to/bitkit/ui/screens/scanner/QrCodeAnalyzer.kt Updated QR code analyzer to use cooldown-based scanning instead of single-scan approach
app/src/main/java/to/bitkit/ui/components/RectangleButton.kt Refactored to simplify icon API, now accepting drawable resource IDs with automatic background styling
app/src/main/java/to/bitkit/ui/screens/transfer/FundingScreen.kt Updated to use new RectangleButton API with drawable resource IDs
app/src/main/java/to/bitkit/ui/screens/transfer/FundingAdvancedScreen.kt Updated to use new RectangleButton API with drawable resource IDs

@jvsena42 jvsena42 marked this pull request as draft December 2, 2025 13:34
@jvsena42

This comment was marked as resolved.

@jvsena42 jvsena42 marked this pull request as draft December 3, 2025 22:43
@jvsena42
Copy link
Member Author

jvsena42 commented Dec 3, 2025

Will be reopened after #485 merge

Base automatically changed from feat/new-receive-sheet to master December 4, 2025 13:20
@jvsena42
Copy link
Member Author

jvsena42 commented Dec 4, 2025

Waiting for #495 merge

@jvsena42 jvsena42 marked this pull request as ready for review December 5, 2025 12:03
@jvsena42
Copy link
Member Author

jvsena42 commented Dec 5, 2025

@piotr-iohk some tests are failing because of the camera permission dialog

@piotr-iohk
Copy link
Collaborator

@piotr-iohk some tests are failing because of the camera permission dialog

Adjusted.

Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

Only issues I found are not related to the PR changes:

1. Different error message in Toast when pasting (vs. iOS)

2. Transition to Confirm screen is often low-FPS

sendConfirmSlow.mp4

@ovitrif ovitrif merged commit c06c035 into master Dec 8, 2025
29 of 41 checks passed
@ovitrif ovitrif deleted the feat/send-sheet-redesign branch December 8, 2025 14:31
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.

4 participants