Skip to content

Conversation

@AlexJSully
Copy link
Owner

No description provided.

@AlexJSully AlexJSully requested a review from Copilot January 2, 2026 02:03
@AlexJSully AlexJSully self-assigned this Jan 2, 2026
@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
portfolio Ready Ready Preview, Comment Jan 2, 2026 2:26am

Copy link
Contributor

Copilot AI left a 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.ts module 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.

@AlexJSully AlexJSully merged commit be2b373 into main Jan 2, 2026
8 checks passed
@AlexJSully AlexJSully deleted the alexjsully-260101 branch January 2, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants