Skip to content

Extract hardcoded values into a centralized constants file #175

Description

@Akatenvictor

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

  • API base URLs extracted to constants
  • Cache duration values centralized
  • UI breakpoint values in one location
  • Z-index scale documented and centralized
  • Validation limits (max bio length, etc.) in constants
  • Error message strings centralized

Technical Context

  • Create lib/constants.ts for app constants
  • Create lib/config.ts for configuration values
  • Import from constants instead of hardcoding

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions