Activities tracking (dual-timestamp activities)
Last modified with commit a995415 on
by hip3r.
Dual timestamp activities require both a start and an end action to be recorded. Test drive is the primary example of this activity type.
Example:
- Test drive
Starting the activity:
- Promotor clicks “Pokreni aktivnost” on Test drive on the invitee profile.
- A page for tracking activity opens with registration plate, start date and time, and comment.
- Registration plate is selected from vehicles assigned to the event.
- Start date and time are pre-filled with current date and time and can be changed by the promotor.
- Comment is optional.
- Promotor clicks “Spremi” to confirm.
- Activity on invitee profile is marked as started and the button changes to “Završi aktivnost”.
If the selected vehicle is currently assigned to another invitee, notification appears:
“Ovo vozilo ima aktivnost u tijeku s korisnikom [ime korisnika]. Ako dodijelite ovo vozilo novom pozvaniku, ta aktivnost će automatski biti završena.”
If the promotor confirms, the other invitee’s test drive is automatically marked as finished, end time is set to now, and the new test drive starts for the new invitee.
Ending the activity:
- Promotor clicks “Završi aktivnost” on the invitee profile.
- A page for tracking activity opens with registration plate, end date and time, and comment.
- Registration plate is pre-filled and read-only.
- End date and time are pre-filled with current date and time and can be changed by the promotor.
- Comment is optional.
- Promotor clicks “Spremi” to confirm.
- Activity is marked as completed and added to the activity log.
Invitee can drive the same car more than once.
Activity log:
All completed test drives are listed in the activity log (Popis aktivnosti) on the invitee profile.
Each entry shows:
- Activity name
- Registration plate
- Start date and time
- End date and time
- Comment
An unlimited number of test drives can be tracked per invitee.
Activity information cannot be edited after saving.