mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 08:03:14 +00:00
* fix: reordered default columns in kanban board * Introduce dedicated flag to repair reversed default workspace statuses - Add `_workspaceStatusesReorderedDefaultRepaired` to decouple the one-shot repair from the initial status order migration. - Ensure the repair runs for users who saved the reversed default payload (with "Done" on the left) during a short-lived broken build. - Support both "Completed" and "Done" labels when identifying default status shapes to migrate or repair. --------- Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
21 lines
884 B
TypeScript
21 lines
884 B
TypeScript
import type { WorkspaceStatusDefinition } from './types'
|
|
|
|
export const DEFAULT_STATUS_VISUALS: Record<string, { color: string; icon: string }> = {
|
|
todo: { color: 'neutral', icon: 'circle' },
|
|
'in-progress': { color: 'conductor-progress', icon: 'conductor-progress' },
|
|
'in-review': { color: 'conductor-review', icon: 'conductor-review' },
|
|
completed: { color: 'conductor-done', icon: 'conductor-done' }
|
|
}
|
|
|
|
export const DEFAULT_WORKSPACE_STATUSES = [
|
|
{ id: 'todo', label: 'Todo', color: 'neutral', icon: 'circle' },
|
|
{
|
|
id: 'in-progress',
|
|
label: 'In progress',
|
|
color: 'conductor-progress',
|
|
icon: 'conductor-progress'
|
|
},
|
|
{ id: 'in-review', label: 'In review', color: 'conductor-review', icon: 'conductor-review' },
|
|
{ id: 'completed', label: 'Done', color: 'conductor-done', icon: 'conductor-done' }
|
|
] as const satisfies readonly WorkspaceStatusDefinition[]
|