Commit 12143c5
committed
chore(architecture): clean verified demo codebase
## Summary
- Consolidate demo auth, route metadata, report export helpers, and release docs into reusable modules.
- Remove stale docs, generated reports, unused assets, dead components, orphan hooks, and unused dependencies.
- Fix remaining action gaps across reports, backups, audit filters, uploaded-file management, profile dialogs, and settings controls.
## Changes Made
### Architecture
- Centralized seeded demo account metadata and role route mapping.
- Moved app route definitions into a reusable route registry.
- Added typed report export filtering and simplified dashboard data shaping.
### Cleanup
- Removed stale release notes, old evidence files, generated Playwright report output, unused UI modules, orphan hooks, and unused bucket/database helpers.
- Optimized PWA/fav icon assets and removed unused React/logo source assets.
- Removed unused dependencies from package metadata and lockfile.
### Product Fixes
- Wired admin audit-log email and action filters.
- Enabled backup export, report date filtering, faculty dark mode, uploaded-file category persistence/removal, and profile dialog close/accessibility behavior.
- Suppressed expected optional missing profile-image noise while preserving real storage error logging.
### Verification
- Added unit coverage for reusable auth/routes/report helpers.
- Added Playwright coverage for admin action controls, management exports, faculty settings, profile edits, and uploaded-file persistence.
## Why
- The project needed a cleaner plug-and-play structure, less stale surface area, smaller asset/dependency footprint, and stronger E2E evidence for user-facing controls.
## Notes for Reviewers
- Remaining unused-export scan findings are intentionally retained shared UI primitive exports for future component reuse.
- Final verification before commit passed lint, unit tests, security scan, SEO/link checks, audit, build, and both local and Pages-style Playwright runs.1 parent 913e21e commit 12143c5
59 files changed
Lines changed: 992 additions & 1751 deletions
File tree
- docs
- playwright-report
- public
- scripts
- src
- assets
- client
- components
- faculty
- ui
- hooks
- lib
- pages
- admin
- audit-logs
- dashboard
- reports
- settings
- auth
- faculty
- profile
- settings
- uploaded
- routes
- test
- tools
- accounts
- buckets
- database
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
This file was deleted.
This file was deleted.
0 commit comments