-
-
Notifications
You must be signed in to change notification settings - Fork 0
Added new audit prompt #564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a centralized constants module to eliminate magic numbers throughout the codebase, improving maintainability and testability. The changes also include TypeScript type improvements, accessibility fixes, and proper cleanup of timeouts to prevent memory leaks.
Key Changes:
- Created a new
src/constants/index.tsmodule with categorized constants for delays, thresholds, network settings, and animations - Replaced hardcoded values across components with named constants
- Added proper TypeScript types and documentation
- Implemented cleanup logic for debounced functions and timeouts
Reviewed changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/constants/index.ts | New centralized constants module with delays, thresholds, network settings, and animation durations |
| src/util/isNetworkFast.ts | Replaced magic numbers with NETWORK constants and added proper TypeScript types |
| src/util/isNetworkFast.test.ts | Updated tests to use NETWORK constants |
| src/helpers/ascii.ts | Replaced hardcoded debounce delay with DELAYS constant |
| src/configs/firebase.ts | Added proper TypeScript types and documentation |
| src/components/projects/ProjectsGrid.tsx | Replaced magic number with DELAYS constant and added cleanup logic |
| src/components/banner/Avatar.tsx | Replaced magic numbers with constants and added debounce cleanup |
| src/components/Stars/StarsBackground.tsx | Improved TypeScript types and added timeout cleanup logic |
| src/app/not-found.tsx | Fixed accessibility attribute typo |
| src/app/not-found.test.tsx | Updated test to match corrected aria-label |
| package.json | Updated caniuse-lite and globals dependencies |
| docs/architecture/index.md | Added constants subsystem to architecture documentation |
| docs/architecture/constants.md | Comprehensive documentation for the new constants module |
| .github/prompts/audit-quality.md | New prompt for codebase quality audits |
| .github/prompts/audit-docs.md | Removed duplicate separator |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.