feat(api): add M5 coverage controls and frontend spec
This commit is contained in:
@@ -256,6 +256,36 @@ async function main() {
|
||||
[fixture.benefits.commuter.id, fixture.tenant.id, fixture.staff.ana.id, fixture.benefits.commuter.title]
|
||||
);
|
||||
|
||||
await client.query(
|
||||
`
|
||||
INSERT INTO staff_benefit_history (
|
||||
id, tenant_id, staff_id, benefit_id, benefit_type, title, status,
|
||||
effective_at, ended_at, tracked_hours, target_hours, notes, metadata
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
$1, $3, $4, $5, 'COMMUTER', $6, 'PENDING',
|
||||
NOW() - INTERVAL '45 days', NOW() - INTERVAL '10 days', 18, 40,
|
||||
'Hours were below threshold for payout window.',
|
||||
'{"source":"seed-v2-demo","period":"previous"}'::jsonb
|
||||
),
|
||||
(
|
||||
$2, $3, $4, $5, 'COMMUTER', $6, 'ACTIVE',
|
||||
NOW() - INTERVAL '9 days', NULL, 32, 40,
|
||||
'Current active commuter stipend tracking.',
|
||||
'{"source":"seed-v2-demo","period":"current"}'::jsonb
|
||||
)
|
||||
`,
|
||||
[
|
||||
fixture.benefitHistory.commuterPending.id,
|
||||
fixture.benefitHistory.commuterActive.id,
|
||||
fixture.tenant.id,
|
||||
fixture.staff.ana.id,
|
||||
fixture.benefits.commuter.id,
|
||||
fixture.benefits.commuter.title,
|
||||
]
|
||||
);
|
||||
|
||||
await client.query(
|
||||
`
|
||||
INSERT INTO emergency_contacts (
|
||||
|
||||
Reference in New Issue
Block a user