mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Move `ACTIVE_BUILD_STATUSES` constant from `WorkspacesPage.tsx` to a module to break the circular dependency between `WorkspacesPage.tsx` and `BatchUpdateModalForm.tsx`. This resolves the circular dependency lint error and ensures proper code organization. **Error:** ``` • Circular Dependencies 1) src/pages/WorkspacesPage/WorkspacesPage.tsx -> src/pages/WorkspacesPage/BatchUpdateModalForm.tsx ``` --------- Co-authored-by: Claude <noreply@anthropic.com>
15 lines
378 B
TypeScript
15 lines
378 B
TypeScript
import type { WorkspaceStatus } from "api/typesGenerated";
|
|
|
|
/**
|
|
* The set of all workspace statuses that indicate that the state for a
|
|
* workspace is in the middle of a transition and will eventually reach a more
|
|
* stable state/status.
|
|
*/
|
|
export const ACTIVE_BUILD_STATUSES: readonly WorkspaceStatus[] = [
|
|
"canceling",
|
|
"deleting",
|
|
"pending",
|
|
"starting",
|
|
"stopping",
|
|
];
|