fix(vacay): allow vacation on public holidays and add today marker

Removes the client-side guard that blocked toggling vacation entries on
public holiday dates, so users who work on holidays can still book leave.
Also adds a filled blue circle on today's date in the Vacay calendar for
quick orientation.

Closes #651
This commit is contained in:
jubnl
2026-04-15 02:38:50 +02:00
parent 06f68a462b
commit ee3966d6c8
3 changed files with 28 additions and 8 deletions
@@ -151,7 +151,7 @@ describe('VacayCalendar', () => {
expect(toggleEntry).toHaveBeenCalledWith('2025-01-01', 42)
})
it('FE-COMP-VACAYCALENDAR-007: cell click blocked by public holiday', async () => {
it('FE-COMP-VACAYCALENDAR-007: cell click on public holiday toggles vacation entry', async () => {
const user = userEvent.setup()
const toggleEntry = vi.fn().mockResolvedValue(undefined)
@@ -168,10 +168,10 @@ describe('VacayCalendar', () => {
render(<VacayCalendar />)
// Month 0, button emits '2025-01-01' which is a holiday
// Month 0, button emits '2025-01-01' which is a holiday — should still toggle vacation
await user.click(screen.getByText('click-0'))
expect(toggleEntry).not.toHaveBeenCalled()
expect(toggleEntry).toHaveBeenCalledWith('2025-01-01', undefined)
})
it('FE-COMP-VACAYCALENDAR-008: cell click in company mode calls toggleCompanyHoliday', async () => {