No description
Find a file
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
.github Initial commit 2026-01-17 02:45:47 +00:00
src Fix multiple runtime safety and type issues across codebase 2026-01-17 21:34:32 +00:00
.gitignore Initial commit 2026-01-17 02:45:47 +00:00
.spark-initial-sha Generated by Spark: # Create Next.js app 2026-01-17 02:46:02 +00:00
components.json Initial commit 2026-01-17 02:45:47 +00:00
index.html Generated by Spark: ? 2026-01-17 02:52:12 +00:00
LICENSE Initial commit 2026-01-17 02:45:47 +00:00
package-lock.json Generated by Spark: ? 2026-01-17 02:52:12 +00:00
package.json Generated by Spark: ? 2026-01-17 02:52:12 +00:00
PRD.md Generated by Spark: Create a cloud-based game development IDE called "AeThex Studio" using Next.js and Tailwind. 2026-01-17 03:02:17 +00:00
README.md Initial commit 2026-01-17 02:45:47 +00:00
runtime.config.json Add spark configuration 2026-01-17 04:20:14 +00:00
SECURITY.md Initial commit 2026-01-17 02:45:47 +00:00
spark.meta.json Generated by Spark: ? 2026-01-17 02:52:12 +00:00
tailwind.config.js Fix multiple runtime safety and type issues across codebase 2026-01-17 21:34:32 +00:00
theme.json Initial commit 2026-01-17 02:45:47 +00:00
tsconfig.json Initial commit 2026-01-17 02:45:47 +00:00
vite.config.ts Initial commit 2026-01-17 02:45:47 +00:00

Welcome to Your Spark Template!

You've just launched your brand-new Spark Template Codespace — everythings 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 dont 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.