feat(time): show work type name in the time entry list #213

Merged
nrupard merged 3 commits from feat/mapps-202-work-type-name-in-time-list into main 2026-06-16 15:21:44 +02:00
Owner

The time entry list rendered the Date, Work Item, Description, Hours and Billable columns but never surfaced the entry's work type, so the only place a user saw it was the edit modal's picker. Add a Work Type column that resolves each entry's work_type_id to the work type's human name, fetched client-side from the /work-types lookup and matched by id (mirroring how the timesheet resolves ticket/project names). Falls back to "-" when the id is absent or the lookup has not loaded, so a bare UUID is never shown.

#MAPPS-202

The time entry list rendered the Date, Work Item, Description, Hours and Billable columns but never surfaced the entry's work type, so the only place a user saw it was the edit modal's picker. Add a Work Type column that resolves each entry's work_type_id to the work type's human name, fetched client-side from the /work-types lookup and matched by id (mirroring how the timesheet resolves ticket/project names). Falls back to "-" when the id is absent or the lookup has not loaded, so a bare UUID is never shown. #MAPPS-202
feat(time): show work type name in the time entry list
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m54s
f0d81b22f8
The time entry list rendered the Date, Work Item, Description, Hours and Billable columns but never surfaced the entry's work type, so the only place a user saw it was the edit modal's picker. Add a Work Type column that resolves each entry's work_type_id to the work type's human name, fetched client-side from the /work-types lookup and matched by id (mirroring how the timesheet resolves ticket/project names). Falls back to "-" when the id is absent or the lookup has not loaded, so a bare UUID is never shown.

#MAPPS-202
fix(time): fetch work types with per_page=100 in the edit modal
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 5s
33bb6bfd69
The time-entry edit-modal pickers fetched `/work-types` with no `per_page`, so the work-type Select silently dropped any options beyond the server's default page size. The new MAPPS-202 list column already fetches `/work-types?per_page=100`; align the two modal fetches (the standalone entry modal and the timesheet modal) so the picker offers the same full lookup the list resolves against.

#MAPPS-202
style(time): wrap the work-types fetch call to satisfy rustfmt
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 57s
Create release / Create release from merged PR (pull_request) Has been skipped
88736f5b34
The previous commit appended `?per_page=100` to the modal fetches, pushing the single-line call over rustfmt's width limit. Apply rustfmt's wrapping (URL argument on its own line) so `cargo fmt --check` passes.

#MAPPS-202
nrupard deleted branch feat/mapps-202-work-type-name-in-time-list 2026-06-16 15:21:44 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!213
No description provided.