feat(tasks): status dot in the column colour in the list view, also on phones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ac068248d7
commit
0ca715ba64
3 files changed
+49
-26
No files matched your search
@@ -28,6 +28,18 @@ export const DEFAULT_KANBAN_COLUMNS: KanbanColumn[] = [
|
||||
];
|
||||
|
||||
// Wrapper and content split so the hooks always run in the same number (see TaskDetailModal)
|
||||
// Dot colour of a status column (Kanban header, list view); fixed by column role for now
|
||||
export const columnDotClass = (col: KanbanColumn | undefined): string =>
|
||||
!col
|
||||
? 'bg-faint'
|
||||
: col.isDone
|
||||
? 'bg-status-ok'
|
||||
: col.id === 'in_progress'
|
||||
? 'bg-accent'
|
||||
: col.id === 'waiting'
|
||||
? 'bg-status-warn'
|
||||
: 'bg-faint';
|
||||
|
||||
export const ManageColumnsModal: React.FC<ManageColumnsModalProps> = (props) =>
|
||||
props.isOpen ? <ManageColumnsModalContent {...props} /> : null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user