feat(extension): complete VS Code extension with kanban board interface (#997)
--------- Co-authored-by: DavidMaliglowka <13022280+DavidMaliglowka@users.noreply.github.com> Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
26
apps/extension/src/components/constants.ts
Normal file
26
apps/extension/src/components/constants.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Shared constants for TaskDetails components
|
||||
*/
|
||||
|
||||
/**
|
||||
* Status color definitions for visual indicators
|
||||
*/
|
||||
export const STATUS_DOT_COLORS = {
|
||||
done: '#22c55e', // Green
|
||||
'in-progress': '#3b82f6', // Blue
|
||||
review: '#a855f7', // Purple
|
||||
deferred: '#ef4444', // Red
|
||||
cancelled: '#6b7280', // Gray
|
||||
pending: '#eab308' // Yellow (default)
|
||||
} as const;
|
||||
|
||||
export type TaskStatus = keyof typeof STATUS_DOT_COLORS;
|
||||
|
||||
/**
|
||||
* Get the color for a status dot indicator
|
||||
* @param status - The task status
|
||||
* @returns The hex color code for the status
|
||||
*/
|
||||
export function getStatusDotColor(status: string): string {
|
||||
return STATUS_DOT_COLORS[status as TaskStatus] || STATUS_DOT_COLORS.pending;
|
||||
}
|
||||
Reference in New Issue
Block a user