You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task involves integrating the completed front-end and back-end components to allow the user to create a new log through the application. This task has two requirements:
Update the input fields to use the corresponding data from the db
Employee Select: Use the data from the users table. The employee should default to the current user, and the select should remain locked. There may be some investigation required on how to obtain the user id of the current user.
Tags Select: Use the data from the tags table. This is blocked until Linking tags and log records table #84 is merged. This input can be disabled as a workaround - NOT REQUIRED FOR MVP (Disable Input for now)
Attention To: Also use the data from the users table.
When the submit button is clicked on the "Create Log" modal, a new log is created in the database with the information the user inputted for the fields
Implementation
Create the corresponding API calls in front-end/src/APIClients
Update CreateLog.tsx to use data from the db for inputs
Include the API call to create a log in the onSubmit method
The text was updated successfully, but these errors were encountered:
@kevin-pierce just thought of this... but when you select a resident, should we display on the residents that are currently with SHOW? for context, we track the date they joined, and the date they left. If they have a value for date_left, that means they are no longer with SHOW, but they're in the system so they can be tracked for previous logs.
What are your thoughts? I need to bring this up with the designers and Hiba, but my thinking is that they should still be able to be selected, since a user may want to create a log for an event that occurred in the past. There should be some message that indicated to the user that they've selected a resident who's no longer with SHOW.
Summary
This task involves integrating the completed front-end and back-end components to allow the user to create a new log through the application. This task has two requirements:
Back-end Component:
log_records_service.py
Front-end Component:
CreateLog.tsx
Goals
Implementation
front-end/src/APIClients
CreateLog.tsx
to use data from the db for inputsThe text was updated successfully, but these errors were encountered: