Skip to content

Conversation

@adityashibu
Copy link
Member

This pull request includes several changes to the backend and frontend of the application, focusing on user management and device allocation. The most important changes include adding user deletion functionality, integrating device data into user management, and updating the frontend to handle user deletions.

Backend Changes:

  • Added a new endpoint to delete users (delete_user) in backend/fastAPI.py.
  • Integrated device data into user management by loading devices from devices.json and allocating them to users in backend/users.py. [1] [2] [3] [4]
  • Added a function to create a JSON file with the selected user's allocated devices in backend/users.py.

Frontend Changes:

  • Updated the Users component to handle user deletions, including state management and API calls in frontend/src/app/users/page.jsx. [1] [2]
  • Added a confirmation dialog for user deletions in frontend/src/app/users/page.jsx.

Database Changes:

  • Updated users_db.json to include additional users and devices. [1] [2]

@adityashibu adityashibu merged commit 0b4f882 into PowerHouse-Project:main Mar 8, 2025
7 checks passed
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