-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description
The Development Tools section currently lacks an interactive puzzle/logic tool and has minor React hook dependency warnings that reduce code quality and may cause unstable re-renders.
Additionally, the missing ESLint configuration makes it harder to maintain consistent code standards across the project.
Solution
This PR introduces:
✅ New Feature
Sudoku Solver & Generator Tool
- Generate Sudoku puzzles (Easy / Medium / Hard)
- Auto-solve puzzles instantly
- Interactive editable grid
- Responsive UI for desktop + mobile
- Clean and modular component structure
✅ Fixes
-
Resolved
react-hooks/exhaustive-depswarnings in:apiKeyGenerator.tsxfibonacciCalculator.tsx
-
Wrapped functions using
useCallback -
Corrected
useEffectdependencies to prevent unnecessary re-renders
✅ Improvements
-
Added
.eslintrc.jsonfor linting consistency -
Improved maintainability and overall code quality
-
Registered the Sudoku tool inside:
constants.tsxdevelopmentToolsConstant.tsx
Alternatives
- Keep existing tools only (no puzzle feature)
- Ignore hook warnings (not recommended due to potential bugs)
- Use an external Sudoku library (avoided to keep the bundle small and fully custom)
The chosen approach keeps the implementation lightweight and fully maintainable within the project.
Additional context
- Lint passes with zero warnings
- All tools verified working
- Sudoku tested for generation and solving correctness
- UI tested on both mobile and desktop
- Screenshots attached in the PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels