Skip to content

Code Review Phase 2: Constants & Configuration #23

@jitu5

Description

@jitu5

Code Review Phase 2: Constants & Configuration

Purpose: Review all application constants — the "magic values" that control behavior across the app. These are referenced by nearly every other module.

Prerequisites: Phase 1 (Type System)
Estimated time: 1 hour
Files: 8


Files to Review (in order)


Key Concepts

  • as const assertions create readonly literal types from object literals
  • Custom window events (CustomEvent) are used for cross-component communication outside of Redux
  • safeGetItem/safeSetItem wrap localStorage with try-catch for environments where storage is unavailable

Focus Areas

  • STORAGE_KEYS constants are now used consistently across the codebase (themeSlice, uiSlice, useAppInitialization, telemetry all reference STORAGE_KEYS). Verify there are no remaining hardcoded localStorage key strings.
  • Does DATASET_TYPE_MAPPING in datasetTypes.ts cover every value in the DatasetType union from kedro.ts?
  • Are debounce values sensible (500ms auto-save, 300ms validation)?
  • Are event producer/consumer comments in events.ts accurate?
  • Is the isConnectionId check in dnd.ts consistent with the one in ids.ts?

Next: Phase 4 (Redux Store & Slices)

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-reviewStructured code review phases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions