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/live 10716 focus app when modal open #6632

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

RamyEB
Copy link
Contributor

@RamyEB RamyEB commented Apr 8, 2024

βœ… Checklist

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

πŸ“ Description

Focus on Ledger Live when modal opens
JIRA TICKET

❓ Context

  • JIRA or GitHub link:

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

Copy link

vercel bot commented Apr 8, 2024

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

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:23am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:23am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:23am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:23am
web-tools ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:23am

@live-github-bot live-github-bot bot added desktop Has changes in LLD translations Translation files have been touched labels Apr 8, 2024
@RamyEB RamyEB force-pushed the feat/LIVE-10716-focus-app-when-modal-open branch from 797c027 to 6c50352 Compare April 8, 2024 15:58
@RamyEB RamyEB marked this pull request as ready for review April 8, 2024 15:58
@RamyEB RamyEB requested a review from a team as a code owner April 8, 2024 15:58
@live-github-bot live-github-bot bot removed the translations Translation files have been touched label Apr 8, 2024
@Justkant Justkant requested a review from a team April 9, 2024 09:17
Copy link
Contributor

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

That solution will cover the scenario 1 but is not generic enough to work on all wallet-api call that requires a user action.
It would be good to do the logic in the wallet-api part so that we show LLD on any message that requires an action from the user.

Comment on lines 17 to 19
useEffect(() => {
ipcRenderer.send("ready-to-show", {});
}, []);
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better to make our own show handler on main because ready-to-show will trigger a deeplink for windows and linux.

ipcMain.on("show", () => {
  const w = getMainWindow();
  if (w) {
    show(w);
  }
});

Also it would be good to do the logic in the wallet-api part so that we show LLD on any message that requires an action from the user

@RamyEB RamyEB merged commit 2f23141 into develop Apr 11, 2024
33 checks passed
@RamyEB RamyEB deleted the feat/LIVE-10716-focus-app-when-modal-open branch April 11, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants