Activity v2
I’ve updated the Activity table with the following changes:
- Added a new “Duration Hours” field (3.5 for three and a half hours) to record how long each activity lasted.
- Introduced an “Activity Date” field that the admin should enter.
- Added an “Import CSV”. Uploading a properly formatted CSV now appends multiple activities in one go.
- All columns (except User ID, which remains mandatory) can now be left empty on import or in the table and edited later.
- Refactored code for compatibility with the new admin page layout
- Persisted the active tab in
sessionStorageso that after any action causing a page reload you remain on the same tab (Example: when deleting an activity, the page reloads and now instead of bringing you back to the first tab, it brings you directly to the activity tab)