feat: add settings and reports pages

- Add settings page with organization, sites, courts, and users tabs
- Add reports page with revenue charts and statistics
- Add users API endpoint
- Add sites/[id] API endpoint for CRUD operations
- Add tabs UI component
- Fix sites API to return isActive field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ivan
2026-02-01 08:27:32 +00:00
parent 864902df81
commit 51ecb1b231
15 changed files with 2083 additions and 17 deletions

View File

@@ -12,22 +12,32 @@ interface Client {
phone: string | null;
avatar?: string | null;
level: string | null;
notes: string | null;
isActive: boolean;
createdAt: string;
memberships?: Array<{
id: string;
status: string;
remainingHours: number | null;
startDate: string;
endDate: string;
remainingHours: number | null;
plan: {
id: string;
name: string;
price: number | string;
durationMonths: number;
courtHours: number | null;
discountPercent: number | string | null;
};
}>;
_count?: {
bookings: number;
};
stats?: {
totalBookings: number;
totalSpent: number;
balance: number;
};
}
interface ClientTableProps {