feat(time): explain disabled timesheet Submit + add jump-to-current-week (PMS-310) #166
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-310-timesheet-empty-week-affordances"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements PMS-310.
Problem
On the Timesheets page, paging the week selector forward to a future (empty) week left the user with a silently greyed-out "Submit Timesheet" button and no quick way back to the current week, so the page felt stuck.
Changes (
src/pages/time.rs,TimesheetsPage)!has_entries && !already_approved && !is_pending), a caption "No time logged this week yet." now sits directly under the button, giving the greyed state a stated reason.monday_of_week(today), returning in one click. Hidden when already on the current week.Verification
just pre-commit(pinned rust 1.94 image, = CI) passes: fmt, clippy-D warnings,cargo check --target wasm32-unknown-unknown, all 90 lib tests.Acceptance criteria
🤖 Generated with Claude Code