update,
This commit is contained in:
@@ -1,25 +1,44 @@
|
||||
# GUIDELINES & KEY COMPONENTS
|
||||
# STUDENT MANAGEMENT GUIDELINES
|
||||
|
||||
- `_constants.ts` contains the constant for
|
||||
## Core Components
|
||||
|
||||
- default value (defaultValue)
|
||||
- empty value (emptyValue)
|
||||
- `_constants.ts` - Contains essential constants for:
|
||||
- Default values (defaultValue)
|
||||
- Empty/placeholder values (emptyValue)
|
||||
- Student status options (active/inactive)
|
||||
- Grade level options
|
||||
|
||||
- `customers-table.tsx`
|
||||
## Student Data Table System
|
||||
|
||||
- `confirm-delete-modal.tsx` - delete modal component when click delete button on list
|
||||
- `students-table.tsx` - Main student listing table
|
||||
- `confirm-delete-modal.tsx` - Confirmation dialog for student deletion
|
||||
- `students-selection-context.tsx` - Context for selected student records
|
||||
|
||||
- `customers-filters.tsx`
|
||||
- `customers-pagination.tsx`
|
||||
- `email-filter-popover.tsx`
|
||||
- `phone-filter-popover.tsx`
|
||||
- `customers-selection-context.tsx`
|
||||
### Table Features
|
||||
|
||||
- `customer-create-form.tsx` - form to create a new customer
|
||||
- `customer-edit-form.tsx` - form to edit a existing customer
|
||||
- `students-filters.tsx` - Filter controls for the student table
|
||||
- `email-filter-popover.tsx` - Email-specific filtering
|
||||
- `phone-filter-popover.tsx` - Phone number filtering
|
||||
- `students-pagination.tsx` - Pagination controls
|
||||
|
||||
- `type.d.tsx` - contains type definition
|
||||
## Student Forms
|
||||
|
||||
- `notifications.tsx` - constants used for demonstration
|
||||
- `payments.tsx` - constants used for demonstration
|
||||
- `shipping-address.tsx` - constants used for demonstration
|
||||
- `student-create-form.tsx` - Form for adding new students with:
|
||||
- Personal information fields
|
||||
- Contact details
|
||||
- Enrollment information
|
||||
- `student-edit-form.tsx` - Form for modifying existing student records
|
||||
|
||||
## Supporting Components
|
||||
|
||||
- `type.d.tsx` - Type definitions for student data
|
||||
- `notifications.tsx` - Student notification preferences
|
||||
- `payments.tsx` - Student payment records
|
||||
- `shipping-address.tsx` - Student address information
|
||||
|
||||
## Best Practices
|
||||
|
||||
1. Always validate student data before submission
|
||||
2. Use the provided constants for default/empty values
|
||||
3. Maintain consistent field naming across all components
|
||||
4. Follow accessibility guidelines for all form inputs
|
||||
|
Reference in New Issue
Block a user