feat(time): max-hours-per-day settings page + inline day-cap error on log-time #256
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-244-max-hours-per-day"
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?
Add a Time Tracking settings page that reads and writes the tenant-wide time_tracking/max_hours_per_day setting (1..=24, 404 -> 24 default), admin-gated and modeled on SchedulingSettingsPage with client-side range validation mirroring the server. Wire it through a new Route::SettingsTimeTracking entry, a dispatch wrapper, and a SettingsCard in the Settings hub.
On the Log Time page, read the configured cap and the user's existing total for today, then pre-flight check before submit: an entry that would push the day over the cap now shows a specific inline error naming the cap and the minutes remaining, instead of only the generic 24h message or a raw server error. The single-entry 24h guard stays as a hard upper bound, and a server-side 409/422 day-cap rejection is surfaced in the same red error banner via post_authed_typed.
#MAPPS-244
52fc3568b72934c93e45