mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-24 00:13:07 +00:00
refactor: extract shared isBacklogLikeStatus helper and improve comments
Address PR #825 review feedback: - Extract duplicated backlog-like status check into shared helper in constants.ts - Improve spec-parser regex comment to clarify subsection preservation - Add file path reference in row-actions.tsx comment for traceability Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -136,6 +136,26 @@ export function getPipelineInsertIndex(): number {
|
||||
return BASE_COLUMNS.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Statuses that display in the backlog column because they don't have dedicated columns:
|
||||
* - 'backlog': Default state for new features
|
||||
* - 'ready': Feature has an approved plan, waiting for execution
|
||||
* - 'interrupted': Feature execution was aborted (user stopped it, server restart)
|
||||
* - 'merge_conflict': Automatic merge failed, user must resolve conflicts
|
||||
*
|
||||
* Used to determine row click behavior and menu actions when a feature is running
|
||||
* but its status hasn't updated yet (race condition during WebSocket/cache sync).
|
||||
* See use-board-column-features.ts for the column assignment logic.
|
||||
*/
|
||||
export function isBacklogLikeStatus(status: string): boolean {
|
||||
return (
|
||||
status === 'backlog' ||
|
||||
status === 'ready' ||
|
||||
status === 'interrupted' ||
|
||||
status === 'merge_conflict'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a status is a pipeline status
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user