What
Identify hardcoded strings, numbers, URLs, and magic values across the codebase and extract them into centralized constants files.
Why
Hardcoded values scattered across files are hard to update and easy to mistype. Centralized constants ensure consistency and simplify configuration changes.
Scope
In: API URLs, cache durations, UI constants (breakpoints, z-indices), validation limits, error messages
Out: Environment-specific constants
Acceptance Criteria
Technical Context
- Create lib/constants.ts for app constants
- Create lib/config.ts for configuration values
- Import from constants instead of hardcoding
What
Identify hardcoded strings, numbers, URLs, and magic values across the codebase and extract them into centralized constants files.
Why
Hardcoded values scattered across files are hard to update and easy to mistype. Centralized constants ensure consistency and simplify configuration changes.
Scope
In: API URLs, cache durations, UI constants (breakpoints, z-indices), validation limits, error messages
Out: Environment-specific constants
Acceptance Criteria
Technical Context