Description
src/operationQueue.ts uses numeric literals (e.g., 1, 5, 10) as priority levels throughout the code. These magic numbers make it hard to understand relative urgency and error-prone to add new levels. Replacing them with named constants improves readability.
Acceptance Criteria
Context
- Target file:
src/operationQueue.ts
- Export
OperationPriority so callers can use the constants too
Description
src/operationQueue.tsuses numeric literals (e.g.,1,5,10) as priority levels throughout the code. These magic numbers make it hard to understand relative urgency and error-prone to add new levels. Replacing them with named constants improves readability.Acceptance Criteria
OperationPriorityconst enum (or plain object) definesLOW = 1,NORMAL = 5,HIGH = 10(or equivalents matching the current values)operationQueue.tsare replaced with the named constantsContext
src/operationQueue.tsOperationPriorityso callers can use the constants too