arbret/frontend
counterweight 09560296aa
refactor: derive Permission type from generated OpenAPI schema
Issue #3: The frontend Permission enum was manually duplicated from
the backend. While full generation isn't practical, this change
ties the frontend constants to the generated OpenAPI types for
compile-time validation.

Changes:
- Update ConstantsResponse schema to use actual Permission/InviteStatus
  enums (enables OpenAPI to include enum values)
- Import enums in schemas.py (no circular dependency issue)
- Update auth-context.tsx to derive PermissionType from generated schema
- Update meta route to return enum instances instead of string values
- Permission values are now type-checked against the OpenAPI schema

If a permission is added to the backend but not to the frontend's
Permission object, TypeScript will fail to compile. This provides
a safety net without requiring a complex build-time generation step.
2025-12-21 23:55:47 +01:00
..
app refactor: derive Permission type from generated OpenAPI schema 2025-12-21 23:55:47 +01:00
e2e Replace fixed timeout with polling in random-jobs E2E test 2025-12-21 23:14:59 +01:00
.gitignore Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00
.prettierignore fix pre-commit hook and code quality fixes 2025-12-21 22:14:48 +01:00
.prettierrc.json Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
env.example first round of review 2025-12-18 22:24:46 +01:00
eslint.config.js Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
next-env.d.ts starting 2025-12-18 21:37:28 +01:00
next.config.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
package-lock.json Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00
package.json Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00
playwright.config.ts Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
tsconfig.json Add Prettier for TypeScript formatting 2025-12-21 21:59:26 +01:00
tsconfig.tsbuildinfo Phase 5: Frontend Admin Page 2025-12-21 22:55:56 +01:00
vitest.config.ts Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00