Skip to content

Commit 12143c5

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
node_modules
22
dist
33
dist-ssr
4+
playwright-report
5+
test-results
46
*.local
57
.env
68
.env.*
79
.DS_Store
8-
.vscode/
10+
.vscode/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Public showcase URL: https://iron-mark.github.io/Hackathon-Smart-Profile-Managem
2020

2121
Release checkpoint: [`v2.1.1`](https://github.com/Iron-Mark/Hackathon-Smart-Profile-Management-System/releases/tag/v2.1.1)
2222

23-
Release evidence: [`docs/release-evidence-v2.1.1.md`](docs/release-evidence-v2.1.1.md)
23+
Release status: [`docs/release-status.md`](docs/release-status.md)
2424

2525
The public build is intentionally demo-only. It uses seeded reviewer accounts, browser-local demo storage, generated sample files, and deterministic AI/OCR fallbacks when private API keys are not configured. There is no supported hosted persistence path in this showcase branch.
2626

@@ -126,7 +126,7 @@ For a concise showcase script, see `docs/demo-checklist.md`.
126126
For public reviewer notes, see `docs/PUBLIC_DEMO.md`.
127127
For demo backend limitations, see `docs/demo-backend.md`.
128128
For optional Clerk identity and Organization controls, see `docs/clerk-showcase-auth.md`.
129-
For the verified release checkpoint, see `docs/release-evidence-v2.1.1.md`.
129+
For the verified release checkpoint and current release gate, see `docs/release-status.md`.
130130
The README screenshots are maintained in `docs/images/login.png`, `docs/images/profile.png`, and `docs/images/dashboard.png`.
131131

132132
### Performance And Web Vitals

docs/post-deploy-review.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/post-merge-live-evidence-2026-06-21.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

docs/release-evidence-v2.1.1.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/release-status.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Release Status
2+
3+
Current public showcase:
4+
5+
https://iron-mark.github.io/Hackathon-Smart-Profile-Management-System/
6+
7+
## Current Release
8+
9+
- Latest documented checkpoint: `v2.1.1`
10+
- GitHub release: https://github.com/Iron-Mark/Hackathon-Smart-Profile-Management-System/releases/tag/v2.1.1
11+
- Release commit: `09573665db005f4a1114dcaf9606886a7cfbc73f`
12+
- Public runtime model: static GitHub Pages app with browser-local demo storage
13+
14+
## What The Release Captures
15+
16+
- Faculty credential upload, admin review, approval tracking, and faculty status visibility.
17+
- Seeded reviewer accounts plus browser-local public registration.
18+
- Browser-local submissions, audit logs, upload metadata, profile data, and small file previews.
19+
- Generated sample credentials only. Public reviewers should not upload real IDs, transcripts, licenses, or faculty records.
20+
- Optional local Clerk sign-in/sign-up showcase; admin access remains the seeded admin demo account.
21+
- Optional local OpenAI experimentation; missing keys use deterministic demo fallbacks.
22+
- Public SEO/AEO/GEO sources through landing-page facts, FAQ JSON-LD, `answers.md`, `llms.txt`, sitemap, robots, and social preview metadata.
23+
- Local Web Vitals panel backed by the official `web-vitals` package.
24+
25+
## Verification Gate
26+
27+
Run the local gate before tagging, publishing, or claiming a release is current:
28+
29+
```bash
30+
npm ci
31+
npm test -- --run
32+
npm run lint
33+
npm run security:scan
34+
npm run seo:check
35+
npm run links:check
36+
npm run build
37+
npx playwright test
38+
```
39+
40+
For GitHub Pages-style local QA, use the build preview commands in `docs/demo-checklist.md`.
41+
42+
## Last Recorded Live Evidence
43+
44+
The `v2.1.1` checkpoint was previously verified against GitHub Pages with:
45+
46+
- Full live Playwright suite: `17 passed`
47+
- Landing page and app deep links returning HTTP 200 through static fallbacks
48+
- Generated sample files returning HTTP 200
49+
- `answers.md`, `llms.txt`, `sitemap.xml`, `robots.txt`, and `og-image.png` returning HTTP 200
50+
- Mobile landing and faculty dashboard smoke checks
51+
- No required backend secrets for the public build
52+
53+
Treat these as release evidence for the historical checkpoint. Re-run the verification gate before making a fresh current-state claim.
54+
55+
## Release Safety Notes
56+
57+
- This repository is a static public demo, not production authentication, authorization, audit logging, or document storage.
58+
- Uploaded demo files and account state stay in the visitor's current browser.
59+
- Clerk Organizations are showcase context only and do not grant admin access.
60+
- Browser-exposed OpenAI keys are for local experimentation only; production use would require a server-side proxy.
61+
62+
## Future Release Checklist
63+
64+
1. Confirm the worktree is clean except intended release changes.
65+
2. Run the full verification gate.
66+
3. Build and test with the GitHub Pages base path from `docs/demo-checklist.md`.
67+
4. Merge the verified branch into the publish branch.
68+
5. Wait for GitHub Pages deployment to finish.
69+
6. Re-run the live Playwright suite against the public URL.
70+
7. Confirm public assets and sample files return HTTP 200.
71+
8. Tag only the verified commit.

docs/release-tag-plan-v2.1.x.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

docs/release_notes_legacy.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)