feat(timesheets): submit-certification modal and withdraw action (PMS-183) #114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mapps-183-timesheet-withdraw"
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?
What
SPA half of PMS-183: a submit-confirmation modal with a required certification checkbox, and a Withdraw action for a submitted-but-not-approved timesheet.
Depends on mokosh-server PR #157 (the
draftstate + withdraw endpoint).Changes
POST /timesheets/{user_id}/{week_start}/withdrawto pull the week back to draft.draftstate to "Not submitted" andpendingto "Pending approval".Acceptance criteria
🤖 Generated with Claude Code
Submitting a timesheet now opens a confirmation modal with a required certification checkbox ("I certify that the timesheet I am submitting is correct") that gates the Submit button. A submitted (pending) week shows a Withdraw button that POSTs the new withdraw endpoint to pull it back to draft; the badge maps the new draft state to "Not submitted" and pending to "Pending approval". Both actions restart the summary and entries resources so the state change shows without a manual refresh. Depends on mokosh-server #157. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>