Fix TypeScript typecheck errors
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-30 15:56:06 +01:00
parent 916b204688
commit b1f9f7cee0
42 changed files with 324 additions and 72 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { render, screen, waitFor, within } from '@testing-library/react';
import { ADMIN_EVENTS_PATH } from '../../constants';
import type { TenantEvent } from '../../api';
const fixtures = vi.hoisted(() => ({
event: {
@@ -9,14 +10,17 @@ const fixtures = vi.hoisted(() => ({
name: 'Demo Wedding',
slug: 'demo-event',
event_date: '2026-02-19',
status: 'published' as const,
settings: { location: 'Berlin' },
event_type_id: null,
event_type: null,
status: 'published',
engagement_mode: undefined,
settings: { location: 'Berlin', guest_upload_visibility: 'immediate' },
tasks_count: 4,
photo_count: 12,
active_invites_count: 3,
total_invites_count: 5,
member_permissions: ['photos:moderate', 'tasks:manage', 'join-tokens:manage'],
},
} as TenantEvent,
activePackage: {
id: 1,
package_id: 1,