No description
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. |
||
|---|---|---|
| .github | ||
| src | ||
| .gitignore | ||
| .spark-initial-sha | ||
| components.json | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| PRD.md | ||
| README.md | ||
| runtime.config.json | ||
| SECURITY.md | ||
| spark.meta.json | ||
| tailwind.config.js | ||
| theme.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
✨ Welcome to Your Spark Template!
You've just launched your brand-new Spark Template Codespace — everything’s fired up and ready for you to explore, build, and create with Spark!
This template is your blank canvas. It comes with a minimal setup to help you get started quickly with Spark development.
🚀 What's Inside?
- A clean, minimal Spark environment
- Pre-configured for local development
- Ready to scale with your ideas
🧠 What Can You Do?
Right now, this is just a starting point — the perfect place to begin building and testing your Spark applications.
🧹 Just Exploring? No problem! If you were just checking things out and don’t need to keep this code:
- Simply delete your Spark.
- Everything will be cleaned up — no traces left behind.
📄 License For Spark Template Resources
The Spark Template files and resources from GitHub are licensed under the terms of the MIT license, Copyright GitHub, Inc.