Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native send flow: review & send #12240

Closed
wants to merge 4 commits into from
Closed

Conversation

PeKne
Copy link
Contributor

@PeKne PeKne commented May 3, 2024

Description

  • 07f1426: reusable transaction review utils and types moved from desktop package to suite-common
  • a9ac15c: send transaction on-device review and send added

Related Issue

Closes #10867
Closes #10868

Screenshots:

Screen.Recording.2024-05-03.at.8.08.26.mov

@PeKne PeKne added the mobile Suite Lite issues and PRs label May 3, 2024
@PeKne PeKne changed the title feat: send flow: review & send native send flow: review & send May 3, 2024
@PeKne PeKne marked this pull request as ready for review May 3, 2024 06:24
@PeKne PeKne requested a review from a team as a code owner May 3, 2024 06:24
@PeKne PeKne force-pushed the feat/simple-native-send-form branch from a9ac15c to 69bd136 Compare May 3, 2024 06:52
suite-native/module-send/src/screens/SendReviewScreen.tsx Outdated Show resolved Hide resolved
suite-native/module-send/src/screens/SendReviewScreen.tsx Outdated Show resolved Hide resolved
Comment on lines +55 to +57
const decreaseOutputId = precomposedTx?.useNativeRbf
? precomposedForm?.setMaxOutputId
: undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is duplicated between here and selectTransactionReviewOutputs in suite-native/module-send/src/selectors.ts, it could be moved inside the selector

} = form;
const rawValues = watch();

useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this an effect? You could debounce even in onChange handler and could be more deterministic...

suite-native/module-send/src/components/SendForm.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@vytick vytick left a comment

Choose a reason for hiding this comment

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

Nice job here 🚀

Just a few nits :)

/>
</>
)}
{totalSpent && (
Copy link
Contributor

Choose a reason for hiding this comment

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

fee and total spent look very similar.
If this is from final design I suggest to make a component for it. If not, just ignore this

suite-native/module-send/src/screens/SendReviewScreen.tsx Outdated Show resolved Hide resolved
@PeKne PeKne marked this pull request as draft May 10, 2024 06:40
@PeKne
Copy link
Contributor Author

PeKne commented Jun 24, 2024

Closing in favor of new PR: #12968

@PeKne PeKne closed this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send coins - send transaction Send coins - inputs review screen
3 participants