Skip to content

hoist magic numbers to TrackLabConstants and named local constants - #8

Merged
veillette merged 1 commit into
mainfrom
claude/hoist-magic-numbers-ECNNP
Feb 19, 2026
Merged

hoist magic numbers to TrackLabConstants and named local constants#8
veillette merged 1 commit into
mainfrom
claude/hoist-magic-numbers-ECNNP

Conversation

@veillette

Copy link
Copy Markdown
Collaborator

Create src/TrackLabConstants.ts for cross-cutting shared constants
(panel corner radius, screen layout offsets, track symbol ASCII codes,
model-view transform thresholds, webcam dimensions).

In every view/model file, replace inline numeric literals with named
module-level constants — arrow dimensions, drag speeds, font sizes,
line widths, dash patterns, spacing values, button margins, precision
thresholds, and more.

https://claude.ai/code/session_01Pj5aaDUhUVCGbKAqPh8SaF

Create src/TrackLabConstants.ts for cross-cutting shared constants
(panel corner radius, screen layout offsets, track symbol ASCII codes,
model-view transform thresholds, webcam dimensions).

In every view/model file, replace inline numeric literals with named
module-level constants — arrow dimensions, drag speeds, font sizes,
line widths, dash patterns, spacing values, button margins, precision
thresholds, and more.

https://claude.ai/code/session_01Pj5aaDUhUVCGbKAqPh8SaF
@veillette
veillette merged commit 0bfb45b into main Feb 19, 2026
1 check passed
@veillette
veillette deleted the claude/hoist-magic-numbers-ECNNP branch February 20, 2026 16:45
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