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 working confirmation #5

Merged
merged 5 commits into from
Feb 20, 2024
Merged

Feat working confirmation #5

merged 5 commits into from
Feb 20, 2024

Conversation

theBGuy
Copy link
Owner

@theBGuy theBGuy commented Feb 19, 2024

Description:

Display a dialog every x minutes that prompts the user to confirm yes or no to if they are still working. If the dialog triggers and the user doesn't interact with it within 2 minutes, stop the timer. The interval is configurable through the settings dialog opened through the user menu dropdown.

Commits & Changes

  • Backend
    • Added new ShowWindow method that uses the wails runtime package to bring the window to the front or open it if it was minimized
  • Frontend
    • Add settings dialog to make the still working interval time configurable
    • Change openDialog -> openNewOrg it isn't the only Dialog component we have anymore
    • Modify handleMenuClose method to close any of the open dialog components

Screenshots

user-menu
settings-dialog
updated-time-notif
still-working-dialog

- Display a dialog every 30minutes that prompts the user to confirm yes or no to if they are still working. If the dialog triggers and the user doesn't interact with it within 2 minutes, stop the timer.
- In the event the app is minimized when the 30minute check is hit we call `ShowWindow` to open it back up for the user to confirm yes/no.
- Fix testing case
- Add settings dialog to make the `still working` interval time configurable
- Change `openDialog` -> `openNewOrg` it isn't the only `Dialog` component we have anymore
- Modify `handleMenuClose` method to close any of the open dialog components
- Changed the `DialogContentText` to be a little more clear what it's doing for changing the `Are you still working?` notification's interval
- Cleaned up the toast success messages for changing the time interval, use a html component so we can have a line break
@theBGuy theBGuy merged commit 78fdf34 into master Feb 20, 2024
@theBGuy theBGuy deleted the feat-working-confirmation branch February 20, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant