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

Feat/llm ledger sync redirection on sync again #7729

Merged

Conversation

cgrellard-ledger
Copy link
Contributor

@cgrellard-ledger cgrellard-ledger commented Sep 3, 2024

βœ… Checklist

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

πŸ“ Description

Ledger sync redirects on qr code when trying to sync again after a successful sync
Instead of passing the currentStep and the setCurrentStep of the activation drawer to every components, we store it with redux and use an action to handle to state of the current step. This gives us more control over it and it allows us to set the step from anywhere

❓ 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)

@cgrellard-ledger cgrellard-ledger requested a review from a team as a code owner September 3, 2024 06:40
Copy link

vercel bot commented Sep 3, 2024

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

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 0:49am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 0:49am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 0:49am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 0:49am
web-tools ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 0:49am

@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM labels Sep 3, 2024
@cgrellard-ledger cgrellard-ledger force-pushed the feat/llm-ledger-sync-redirection-on-sync-again branch from 27bb455 to 8ce087f Compare September 3, 2024 07:51
@live-github-bot live-github-bot bot removed the desktop Has changes in LLD label Sep 3, 2024
@cgrellard-ledger cgrellard-ledger force-pushed the feat/llm-ledger-sync-redirection-on-sync-again branch from 8ce087f to 84dcd64 Compare September 3, 2024 08:50
@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Sep 3, 2024
@cgrellard-ledger cgrellard-ledger force-pushed the feat/llm-ledger-sync-redirection-on-sync-again branch 2 times, most recently from 1e91120 to c5d7221 Compare September 3, 2024 12:32
@live-github-bot live-github-bot bot removed the desktop Has changes in LLD label Sep 3, 2024

const closeDrawer = useCallback(() => {
dispatch(setLedgerSyncActivateDrawer(false));
}, [dispatch]);
setCurrentStep(Steps.Activation);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's the only file that we need to do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's the only place where we set it to false

@cgrellard-ledger cgrellard-ledger force-pushed the feat/llm-ledger-sync-redirection-on-sync-again branch from c5d7221 to b7aca24 Compare September 3, 2024 12:49
@cgrellard-ledger cgrellard-ledger merged commit f5c8891 into develop Sep 3, 2024
37 of 38 checks passed
@cgrellard-ledger cgrellard-ledger deleted the feat/llm-ledger-sync-redirection-on-sync-again branch September 3, 2024 15:23
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