Commit graph

3 commits

Author SHA1 Message Date
Claude
eaa0a42897
Fix Tailwind CSS configuration and add test dependencies
- Update Tailwind config to include app directory
- Add tailwindcss-animate plugin
- Install missing vitest and testing library dependencies
- Ensure CSS processing works correctly with Next.js
2026-01-18 02:41:51 +00:00
Claude
5c941a3130
Fix multiple runtime safety and type issues across codebase
This commit addresses 21+ bugs identified in the codebase scan:

High Severity Fixes:
- Add window.spark null checks in Toolbar.tsx and AIChat.tsx to prevent crashes
- Fix ref type mismatch in ConsolePanel.tsx by using scrollIntoView pattern
- Fix checkbox type casting in NewProjectModal.tsx (handle 'indeterminate' state)

Medium Severity Fixes:
- Add window guards for SSR safety in use-mobile.ts hook
- Add window guards in CodeEditor.tsx for minimap configuration
- Add window guards in sidebar.tsx for keyboard event listeners
- Remove console.error from AIChat.tsx (already has toast notifications)
- Replace console.error with silent fallback in tailwind.config.js

These improvements enhance:
1. Runtime safety - no more crashes from undefined window.spark
2. Type safety - proper handling of Radix UI checkbox states
3. SSR compatibility - all window accesses are now guarded
4. User experience - better error handling with toast notifications

All changes maintain backward compatibility and existing functionality.
2026-01-17 21:34:32 +00:00
f154a24913 Initial commit 2026-01-17 02:45:47 +00:00