Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

feat: add open at login feature#429

Merged
OGPoyraz merged 2 commits intomainfrom
feat/414-add-a-feature-to-launch-the-app-on-laptop-launch
Jan 20, 2023
Merged

feat: add open at login feature#429
OGPoyraz merged 2 commits intomainfrom
feat/414-add-a-feature-to-launch-the-app-on-laptop-launch

Conversation

@OGPoyraz
Copy link
Copy Markdown
Member

@OGPoyraz OGPoyraz commented Jan 17, 2023

Overview

  • As a main feature, this PR adds open at login with options of yes,no,minimized
    Screenshot 2023-01-18 at 09 31 29
  • Introduce DESKTOP_PREVENT_OPEN_ON_STARTUP env variable to prevent startup logic for the development environment

Fixes

  • Translations are not persisted and are no more in redux anymore
    • This is solving the issue when a new locale is added but translations do not appear
    • Changing language and storing locale key still happens in redux. So locale keys like en,de,fr value stay in redux, but reading translation values are directly happening from locale JSON files. ( See packages/app/ui/contexts/i18n.js )
  • Removes root persister of store, adds app persistor to persist app settings.
    - This will give us the flexibility of what to persist and what not in the root.
  • Rename DESKTOP_UI_DEBUG to DESKTOP_UI_ENABLE_DEV_TOOLS
  • Removed mainWindow delay
  • Simplify comments, additions to readme file

@OGPoyraz OGPoyraz linked an issue Jan 17, 2023 that may be closed by this pull request
@OGPoyraz OGPoyraz force-pushed the feat/414-add-a-feature-to-launch-the-app-on-laptop-launch branch 11 times, most recently from d32f342 to cd1291c Compare January 18, 2023 08:18
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@matthewwalsh0 do you remember why we added this timeout?
I've removed it and done the local tests, works pretty smoothly without it.

Copy link
Copy Markdown
Member

@matthewwalsh0 matthewwalsh0 Jan 20, 2023

Choose a reason for hiding this comment

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

On MacOS at least, I got a blank white screen for about a second while React loaded, will re-test locally.

@OGPoyraz OGPoyraz marked this pull request as ready for review January 18, 2023 08:41
@OGPoyraz OGPoyraz requested a review from a team January 18, 2023 08:41
@OGPoyraz OGPoyraz self-assigned this Jan 18, 2023
@OGPoyraz OGPoyraz force-pushed the feat/414-add-a-feature-to-launch-the-app-on-laptop-launch branch 2 times, most recently from da3dfb6 to fd6bb6e Compare January 19, 2023 20:41
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On my env PR, I've updated the debug env check to use cfg() so best to do the same here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exactly, I saw that in your PR. As soon as it gets merged, I can update it

@OGPoyraz OGPoyraz force-pushed the feat/414-add-a-feature-to-launch-the-app-on-laptop-launch branch from fd6bb6e to 087af09 Compare January 20, 2023 10:23
@OGPoyraz OGPoyraz force-pushed the feat/414-add-a-feature-to-launch-the-app-on-laptop-launch branch from 087af09 to 46876c0 Compare January 20, 2023 10:26
@OGPoyraz OGPoyraz merged commit 0eb11ca into main Jan 20, 2023
@OGPoyraz OGPoyraz deleted the feat/414-add-a-feature-to-launch-the-app-on-laptop-launch branch February 1, 2023 07:48
@cryptotavares cryptotavares mentioned this pull request Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a feature to launch the app on laptop launch

2 participants