refactor: enhance type safety and error handling in navigation and project creation

- Updated navigation functions to cast route paths correctly, improving type safety.
- Added error handling for the templates API in project creation hooks to ensure robustness.
- Refactored task progress panel to improve type handling for feature data.
- Introduced type checks and default values in various components to enhance overall stability.

These changes improve the reliability and maintainability of the application, ensuring better user experience and code quality.
This commit is contained in:
DhanushSantosh
2026-01-06 20:46:06 +05:30
parent 27c6d5a3bb
commit 96f154d440
39 changed files with 241 additions and 172 deletions

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import { useCallback, useEffect, useState } from 'react';
import { Button } from '@/components/ui/button';
import { RefreshCw, AlertCircle } from 'lucide-react';