-
Notifications
You must be signed in to change notification settings - Fork 17
Description
π Feature Request
Description
In the next-pms timesheet view, the frontend should visually disable (gray out/make read-only) the dates that fall beyond the permitted backdated time entry limit.
Motivation
Currently, there is no visual indication on the UI to show which past dates are locked for time entry. Users can spend time manually filling out their timesheets for past dates, only to receive a "Backdated timeentry not allowed" error upon submission. Disabling the inputs directly on the UI will prevent this wasted effort, reduce frustration, and significantly improve the overall user experience.
Mockups or References
Acceptance Criteria:
- The frontend fetches the backdated time entry limit configuration from the backend.
- Timesheet columns/cells for dates older than the allowed limit are visually indicated as disabled (e.g., grayed out).
- Users are prevented from clicking, adding, or editing time entries on these disabled dates (inputs should be strictly read-only or disabled).
- (Optional) Provide a tooltip when hovering over disabled dates explaining why they are locked (e.g., "Backdated time entry limit exceeded").
Additional Context
The backend already correctly validates this by throwing a Backdated timeentry not allowed error. This feature request is specifically to handle this validation gracefully on the frontend (FE) before the user even attempts to input data.