How hquan1403/cnpm_24ct1_ch-mc-ng_ho-ngnh-tqu-n works
FaceAttend is presented as an employee face-attendance management UI, alongside a separate legacy Python face-matching tool. The main user workflow is dashboard navigation to attendance, employee, device, and reporting views; the kiosk screen currently simulates scan outcomes rather than invoking recognition. The legacy workflow records webcam sightings into a file-backed dataset, then lets users upload an image to search that dataset. The newer pages are mock-data-oriented; the excerpts do not establish backend connections for them.
Main entry points: app_user.py Image search API · sidebar.tsx Sidebar navigation · record_admin.py Webcam recorder · shell.tsx Dashboard shell
Components 23
Management UI
- Employees
face-attend/app/(dashboard)/employees/page.tsx - Employee detail
face-attend/app/(dashboard)/employees/[id]/page.tsx - Face management
face-attend/app/(dashboard)/faces/page.tsx - Departments
face-attend/app/(dashboard)/departments/page.tsx - Branches
face-attend/app/(dashboard)/branches/page.tsx - Roles
face-attend/app/(dashboard)/roles/page.tsx - Settings
face-attend/app/(dashboard)/settings/page.tsx - Dashboard
face-attend/app/(dashboard)/dashboard/page.tsx - Reports
face-attend/app/(dashboard)/reports/page.tsx
Attendance
- Shift management
face-attend/app/(dashboard)/shifts/page.tsx - Attendance history
face-attend/app/(dashboard)/attendance/history/page.tsx - Devices
face-attend/app/(dashboard)/devices/page.tsx - Kiosk screen
face-attend/app/attendance/page.tsx
Legacy face tool
- Image-search user
- Webcam recorder
file làm dự án cũ/record_admin.py - Image search API
file làm dự án cũ/app_user.py - Face detection and embeddings
file làm dự án cũ/face_engine.py - Matching and dataset files
file làm dự án cũ/matcher.py
Shared UI
- Dashboard shell
face-attend/components/dashboard/shell.tsx - Sidebar navigation
face-attend/components/dashboard/sidebar.tsx - Navigation items
face-attend/components/dashboard/nav-items.ts - Brand logo
face-attend/components/dashboard/logo.tsx - Top bar
face-attend/components/dashboard/topbar.tsx
Connections 10
- Dashboard shell → Sidebar navigation: renders
face-attend/components/dashboard/shell.tsx - Dashboard shell → Top bar: renders
face-attend/components/dashboard/shell.tsx - Sidebar navigation → Navigation items: uses links
face-attend/components/dashboard/sidebar.tsx - Sidebar navigation → Brand logo: renders
face-attend/components/dashboard/sidebar.tsx - Top bar → Kiosk screen: links to
face-attend/components/dashboard/topbar.tsx - Image-search user → Image search API: uploads image
file làm dự án cũ/app_user.py - Image search API → Face detection and embeddings: extracts embeddings
file làm dự án cũ/app_user.py - Image search API → Matching and dataset files: loads and matches
file làm dự án cũ/app_user.py - Webcam recorder → Face detection and embeddings: extracts embeddings
file làm dự án cũ/record_admin.py - Webcam recorder → Matching and dataset files: loads, matches, saves
file làm dự án cũ/record_admin.py