Added user settings dialogue #33
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to the backend and frontend components of the application. The main changes involve modifications to automation scheduling, user management, and the user interface. Below are the most important changes grouped by theme:
Backend Updates:
backend/automations.json: Removed and modified automation entries to update the device IDs and trigger times.backend/automations.py: Updated theautomation_schedulerfunction to include the device status when changing the device status.backend/fastAPI.py: Added a new API endpoint to rename a user.backend/users.py: Implemented therename_selected_userfunction to handle renaming the currently selected user and updating the relevant JSON files.database/users_db.json: Updated user names and device entries, including adding new devices and modifying existing ones. [1] [2] [3]Frontend Updates:
frontend/src/app/ui/dashboard/accountMenu.jsx: Added a newUserSettingsDialogcomponent and integrated it into the account menu. This includes changes to the state management and rendering logic for the account menu. [1] [2] [3] [4] [5]frontend/src/app/ui/userSettingsDialogue.jsx: Created a newUserSettingsDialogcomponent to handle user settings, including fetching user data, displaying allocated devices, and allowing the user to rename themselves.