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

fix(llm): prevent debounce causing memo change miss #8652

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

thesan
Copy link
Contributor

@thesan thesan commented Dec 10, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Prevent debounce from causing the memo tag not being saved.

Here's 2 example with the debounce set to 1 second for clarity:

the problem:

Screen.Recording.2024-12-10.at.10.54.13.mov
this PR's solution:
Screen.Recording.2024-12-10.at.10.57.02.mov

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@thesan thesan requested a review from a team as a code owner December 10, 2024 09:47
Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Dec 10, 2024 10:40am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 10, 2024 10:40am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 10, 2024 10:40am
web-tools ⬜️ Ignored (Inspect) Visit Preview Dec 10, 2024 10:40am

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Dec 10, 2024
@@ -341,7 +341,12 @@ export default function SendSelectRecipient({ navigation, route }: Props) {
testID="recipient-continue-button"
type="primary"
title={<Trans i18nKey="common.continue" />}
disabled={debouncedBridgePending || !!status.errors.recipient || !!memoTag?.error}
disabled={
Copy link
Contributor

Choose a reason for hiding this comment

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

just for readability, we can extract this above :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@thesan thesan force-pushed the fix/llm-secure-memo-debounce branch from 14bb54a to 2b5bfd0 Compare December 10, 2024 10:24
themooneer
themooneer previously approved these changes Dec 10, 2024
Copy link
Contributor

@themooneer themooneer left a comment

Choose a reason for hiding this comment

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

LGTM

@thesan thesan merged commit c8c382f into develop Dec 10, 2024
43 of 45 checks passed
@thesan thesan deleted the fix/llm-secure-memo-debounce branch December 10, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants