This commit is contained in:
louiscklaw
2025-04-26 06:15:18 +08:00
parent df87cfb037
commit 6e8fea3bdd
57 changed files with 1392 additions and 20183 deletions

View File

@@ -1,7 +1,9 @@
'use client';
// RULES: sorting direction for student lists
export type SortDir = 'asc' | 'desc';
// RULES: core student data structure
export interface Student {
id: string;
name: string;
@@ -14,6 +16,7 @@ export interface Student {
updatedAt?: Date;
}
// RULES: form data structure for creating new student
export interface CreateFormProps {
name: string;
email: string;
@@ -36,6 +39,7 @@ export interface CreateFormProps {
// status?: 'pending' | 'active' | 'blocked';
}
// RULES: form data structure for editing existing student
export interface EditFormProps {
name: string;
email: string;
@@ -57,11 +61,14 @@ export interface EditFormProps {
// quota?: number;
// status?: 'pending' | 'active' | 'blocked';
}
// RULES: filter props for student search and filtering
export interface CustomersFiltersProps {
filters?: Filters;
sortDir?: SortDir;
fullData: Student[];
}
// RULES: available filter options for student data
export interface Filters {
email?: string;
phone?: string;