Perform a code review of recent changes.
Review Checklist
TypeScript & Code Quality
- No
anytypes - Proper error handling
- Clear naming conventions
- Functions are small and focused
- No unused variables or imports
Astro & Components
- Props have TypeScript interfaces
- Components follow single responsibility
- Correct use of
client:*directives (minimal JS) - Data structures extracted from templates
Accessibility
- Semantic HTML elements used
- Interactive elements have labels
- Form inputs have associated labels
- Color contrast is sufficient
- Keyboard navigation works
Performance & Eco-design
- Minimal client-side JavaScript
- No unnecessary dependencies
- Images optimized
- Bundle size reasonable
Tauri (if applicable)
- Rust code follows conventions
- Minimal permissions in capabilities
- IPC data validated
- Errors handled gracefully
Security
- No secrets in code
- User inputs validated
- LocalStorage data validated on read
Commands to Run
# Type check
npx astro check
# Build web
npm run build
# Build desktop (optional)
npm run build:desktop
Converted and distributed by TomeVault — claim your Tome and manage your conversions.