Files
coder/site/src/modules/workspaces/status.ts
T
Bruno QuaresmaandClaude d464360103 fix(site): resolve circular dependency between WorkspacesPage components (#19895)
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>
2025-09-19 18:50:11 -03:00

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",
];