Skip to content

Add Multiselect Supervisor Combobox to Edit User Form #6

@Dark-Developer93

Description

@Dark-Developer93

Description

We need to add a new multiselect combobox field called "Supervisors" to the Edit User form. This combobox should list all users in the app, allowing the selection of multiple supervisors for each user. The selected Supervisors should be stored as an array of user IDs in the database.

Tasks

  1. Update the database schema to add a new "supervisors" field to the User table, capable of storing an array of user IDs.
  2. Modify the Edit User form in the frontend to include the new multiselect Supervisors combobox.
  3. Populate the Supervisors combobox with all users from the app.
  4. Implement search functionality within the combobox for easier user selection.
  5. Update the backend API to handle the new supervisors field when editing a user.
  6. Implement proper validation and error handling for the new field.

Acceptance Criteria

  • The User table in the database has a new "supervisors" field that can store multiple values.
  • The Edit User form displays a multiselect Supervisors combobox.
  • The Supervisors combobox is populated with all users in the app.
  • Users can search for and select multiple supervisors from the combobox and save the changes.
  • The backend API correctly processes and stores the multiple supervisor information.
  • Appropriate error handling and validation are in place.

Additional Notes

  • Ensure the UI clearly indicates that multiple supervisors can be selected.
  • Implement efficient search functionality within the combobox for quick user selection.
  • Ensure that circular dependencies are prevented (e.g., a user cannot be their own supervisor).
  • Update any relevant documentation or user guides to reflect this new multiselect combobox feature.
  • Consider performance implications when loading and searching through all users for large organizations.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions