Describe the bug
Multiple TypeScript type errors exist across admin pages, preventing successful production build.
Sample Errors Found
src/app/admin/data-retention/page.tsx:155 - Property 'entityType' does not exist
src/app/admin/roles/page.tsx:604 - Property 'onClick' does not exist on ResponsiveTableRow
src/app/admin/settings/page.tsx:274 - Property 'label' does not exist on SystemConfig
- Multiple
isNotNull comparison errors with null values
- Various auth-related type errors
Expected behavior
All TypeScript errors should be resolved for successful production builds.
Possible Solution
Run pnpm run typecheck to identify all errors and fix them systematically. Focus on:
- Missing type definitions
- Incorrect property access
- Null safety issues
Files Affected
Multiple admin pages under src/app/admin/
Discovered By
Automated TypeScript analysis during build verification.
Describe the bug
Multiple TypeScript type errors exist across admin pages, preventing successful production build.
Sample Errors Found
src/app/admin/data-retention/page.tsx:155- Property 'entityType' does not existsrc/app/admin/roles/page.tsx:604- Property 'onClick' does not exist on ResponsiveTableRowsrc/app/admin/settings/page.tsx:274- Property 'label' does not exist on SystemConfigisNotNullcomparison errors with null valuesExpected behavior
All TypeScript errors should be resolved for successful production builds.
Possible Solution
Run
pnpm run typecheckto identify all errors and fix them systematically. Focus on:Files Affected
Multiple admin pages under
src/app/admin/Discovered By
Automated TypeScript analysis during build verification.