Phase 0.2: Remove frontend deprecated code

- Delete pages: sum, audit, admin/random-jobs
- Delete old homepage (counter) and create redirect page
- Update Header.tsx: remove Counter, Sum, Audit, Random Jobs nav items
- Update auth-context.tsx: remove VIEW_COUNTER, INCREMENT_COUNTER, USE_SUM permissions
- Update profile/page.test.tsx: fix nav link assertions
This commit is contained in:
counterweight 2025-12-22 18:09:09 +01:00
parent 5bad1e7e17
commit a5c1eccb4b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
9 changed files with 27 additions and 1260 deletions

View file

@ -12,9 +12,6 @@ export type PermissionType = components["schemas"]["Permission"];
// The type annotation ensures compile-time validation against the generated schema.
// Adding a new permission in the backend will cause a type error here until updated.
export const Permission: Record<string, PermissionType> = {
VIEW_COUNTER: "view_counter",
INCREMENT_COUNTER: "increment_counter",
USE_SUM: "use_sum",
VIEW_AUDIT: "view_audit",
FETCH_PRICE: "fetch_price",
MANAGE_OWN_PROFILE: "manage_own_profile",