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

πŸ› [LIVE-12015] [LLD/LLM] Prevent the screen from locking for firmware update and app installation/update #6698

Merged
merged 7 commits into from
Apr 23, 2024

Conversation

jdabbech-ledger
Copy link
Contributor

@jdabbech-ledger jdabbech-ledger commented Apr 17, 2024

βœ… Checklist

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

πŸ“ Description

Prevent the screen from locking for firmware update and app installation/update

  • App install inside My Ledger
  • Firmware Update
  • Inline App install => DeviceAction Component
  • Sync Onboarding

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

Copy link

vercel bot commented Apr 17, 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 23, 2024 1:58pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 1:58pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 1:58pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 1:58pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 1:58pm

@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Apr 17, 2024
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch 3 times, most recently from 78ab3f6 to f228e9e Compare April 17, 2024 15:38
@jdabbech-ledger jdabbech-ledger added the live-devices Device team label label Apr 18, 2024
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from f228e9e to c53b057 Compare April 18, 2024 09:08
@jdabbech-ledger jdabbech-ledger changed the title πŸ› [LIVE-12015] [LLD & LLM] Prevent the screen from locking for firmware update and app installation/update πŸ› [LIVE-12015] [LLD] Prevent the screen from locking for firmware update and app installation/update Apr 18, 2024
@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Apr 18, 2024
@jdabbech-ledger jdabbech-ledger marked this pull request as ready for review April 18, 2024 14:56
@jdabbech-ledger jdabbech-ledger requested review from a team as code owners April 18, 2024 14:56
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from a005542 to aceac7d Compare April 18, 2024 15:21
mbertin-ledger
mbertin-ledger previously approved these changes Apr 19, 2024

const activateKeepAwake = useCallback(async () => {
if (Number.isNaN(blockerId.current)) {
blockerId.current = await ipcRenderer.invoke("activate-keep-screen-awake");
Copy link
Member

Choose a reason for hiding this comment

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

[SHOULD] Use constants for the string key (ie: "activate-keep-screen-awake" and "deactivate-keep-screen-awake")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

any ipc message is defined and used this way in main/setup.ts actually

@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch 3 times, most recently from c1e1292 to 7a564e3 Compare April 19, 2024 15:40
@jdabbech-ledger jdabbech-ledger changed the title πŸ› [LIVE-12015] [LLD] Prevent the screen from locking for firmware update and app installation/update πŸ› [LIVE-12015] [LLD/LLM] Prevent the screen from locking for firmware update and app installation/update Apr 22, 2024
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch 2 times, most recently from b2c70fb to 80335ee Compare April 22, 2024 12:59
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from 80335ee to 167e189 Compare April 23, 2024 08:04
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from 167e189 to 95e152a Compare April 23, 2024 09:00
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger left a comment

Choose a reason for hiding this comment

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

πŸš€

@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from 95e152a to 452cf23 Compare April 23, 2024 13:11
@jdabbech-ledger jdabbech-ledger requested a review from a team as a code owner April 23, 2024 13:11
@jdabbech-ledger jdabbech-ledger changed the base branch from develop to release April 23, 2024 13:11
@ledger-wiz-cspm-secret-detection
Copy link

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Sensitive Data 0C 0H 0M 4L 0I
Total 0C 0H 0M 4L 0I
Secrets 0πŸ”‘

- App install inside My Ledger
- Firmware Update
- Inline App install => DeviceAction Component
- Sync Onboarding
- App install inside My Ledger
- Firmware Update
- Inline App install => DeviceAction Component
- Sync Onboarding
@jdabbech-ledger jdabbech-ledger force-pushed the bugfix/LIVE-12015-keep-screen-awake branch from 452cf23 to 21c196d Compare April 23, 2024 13:18
@jdabbech-ledger jdabbech-ledger changed the base branch from release to develop April 23, 2024 13:32
@jdabbech-ledger jdabbech-ledger merged commit 88f2401 into develop Apr 23, 2024
55 of 56 checks passed
@jdabbech-ledger jdabbech-ledger deleted the bugfix/LIVE-12015-keep-screen-awake branch April 23, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD live-devices Device team label mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants