Centralise Milestone interface to types/domain.ts #40

Closed
opened 2026-05-02 13:15:41 +02:00 by myrmidex · 0 comments
Owner

The Milestone interface ({ target: number; description: string; created_at: string }) is copy-pasted across dashboard.tsx, StatsBox.tsx, ProgressBar.tsx, and OnboardingFlow.tsx. Any field addition requires touching every file.

Fix: Move to resources/js/types/domain.ts and import where needed.

Effort: S — do when next feature touches any of these files.

The `Milestone` interface (`{ target: number; description: string; created_at: string }`) is copy-pasted across `dashboard.tsx`, `StatsBox.tsx`, `ProgressBar.tsx`, and `OnboardingFlow.tsx`. Any field addition requires touching every file. **Fix:** Move to `resources/js/types/domain.ts` and import where needed. **Effort:** S — do when next feature touches any of these files.
myrmidex added this to the v0.3.0 milestone 2026-05-02 13:15:41 +02:00
myrmidex self-assigned this 2026-05-02 20:27:38 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lvl0/incr#40
No description provided.