Skip to content

[codex] clean verified demo codebase - #10

Merged
Iron-Mark merged 1 commit into
mainfrom
dev
Jun 25, 2026
Merged

[codex] clean verified demo codebase#10
Iron-Mark merged 1 commit into
mainfrom
dev

Conversation

@Iron-Mark

Copy link
Copy Markdown
Owner

Summary

  • Consolidates demo auth, app routes, report export helpers, and release evidence into reusable modules/docs.
  • Removes stale docs, generated reports, unused assets, dead components/hooks/helpers, and unused dependencies.
  • Fixes remaining action gaps across audit filters, reports, backups, uploaded-file management, profile dialogs, and settings controls.
  • Expands Playwright coverage for admin/faculty actions and Pages-style preview behavior.

Why

The repo needed a cleaner architecture, fewer stale files, smaller asset/dependency surface area, and stronger evidence that the demo works end to end across user-facing controls.

Verification

  • npm run lint
  • npm test -- --run -> 21 files, 52 tests passed
  • npm run security:scan
  • npm run seo:check
  • npm run links:check
  • npm audit --audit-level=moderate -> 0 vulnerabilities
  • npm run build
  • npx playwright test --reporter=line -> 26/26 passed
  • GitHub Pages-style preview Playwright run -> 26/26 passed
  • git diff --check passed with Windows LF-to-CRLF notices only

Notes

  • Remaining knip unused-export findings are shared UI primitive exports intentionally kept for future reusable component/API surface.
  • This PR is opened as draft for review before merge.

## 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.
@Iron-Mark
Iron-Mark marked this pull request as ready for review June 25, 2026 05:34
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Iron-Mark
Iron-Mark merged commit bde3762 into main Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant