{t('app.name')}
-{t('redDaysList.emptyYear')}
- ) : ( -{t('redDaysList.emptyYear')}
+ ) : ( +
{t('parentBalance.summary', { left: daysLeft, total: totalDays })}
+
+ {t('parentBalance.summaryDubbeldagar', { count: dubbeldagarLeft ?? 0 })}
{totalError}
} diff --git a/frontend/src/components/modals/parent-balance-form.css b/frontend/src/components/modals/parent-balance-form.css index e7f0900..97826ca 100644 --- a/frontend/src/components/modals/parent-balance-form.css +++ b/frontend/src/components/modals/parent-balance-form.css @@ -8,10 +8,8 @@ font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); + line-height: 1.5; margin: 0; - padding: var(--sp-2); - background-color: var(--c-bg); - border-radius: var(--radius-sm); } /* The overlay/content/header/close/body shell, form fields and footer diff --git a/frontend/src/components/modals/qrcode-modal.css b/frontend/src/components/modals/qrcode-modal.css index 5e00473..e89c66f 100644 --- a/frontend/src/components/modals/qrcode-modal.css +++ b/frontend/src/components/modals/qrcode-modal.css @@ -50,10 +50,6 @@ max-width: 300px; width: 100%; height: auto; - border: 1px solid var(--c-border); - border-radius: var(--radius); - background-color: var(--c-surface); - padding: var(--sp-2); image-rendering: pixelated; } diff --git a/frontend/src/components/vacation-days/VacationDaysList.test.tsx b/frontend/src/components/vacation-days/VacationDaysList.test.tsx deleted file mode 100644 index 36ecb3a..0000000 --- a/frontend/src/components/vacation-days/VacationDaysList.test.tsx +++ /dev/null @@ -1,132 +0,0 @@ -/** - * REFERENCE TEST — for the VacationDaysList component + useVacationDays hook. - * - * Pattern to copy for other component tests: - * - vi.mock('@/services/api') to isolate from the real HTTP layer. - * - Use @testing-library/react renderHook for hooks. - * - Use render + waitFor for async component tests. - * - Always cover: loading state, error state, empty state, and the happy path. - */ - -import { render, renderHook, act, screen, waitFor } from '@testing-library/react' -import { vi, describe, it, expect, beforeEach } from 'vitest' -import { VacationDaysList } from './VacationDaysList' -import { useVacationDays } from '@/hooks/useVacationDays' -import * as api from '@/services/api' -import type { VacationDays } from '@/types' - -vi.mock('@/services/api') - -const MOCK_WS = 'workspace-1' -const MOCK_VACATION_DAYS: VacationDays[] = [ - { - id: 'vd-1', - personalDataUuid: 'pd-1', - workspaceId: MOCK_WS, - year: 2026, - totalDays: 25, - savedDaysIn: 5, - createdAt: '2026-01-01T00:00:00', - updatedAt: '2026-01-01T00:00:00', - }, - { - id: 'vd-2', - personalDataUuid: 'pd-2', - workspaceId: MOCK_WS, - year: 2025, - totalDays: 25, - savedDaysIn: 0, - createdAt: '2025-01-01T00:00:00', - updatedAt: '2025-01-01T00:00:00', - }, -] - -beforeEach(() => { - vi.resetAllMocks() -}) - -// --------------------------------------------------------------------------- -// Component tests -// --------------------------------------------------------------------------- - -describe('VacationDaysList', () => { - it('shows loading state while fetching', () => { - vi.mocked(api.getVacationDaysByWorkspace).mockReturnValue(new Promise(() => {})) - render({t('vacationDaysList.loading')}
- if (error) return{error}
- if (data.length === 0) return{t('vacationDaysList.empty')}
- - return ( -{t('app.name')}
-