diff --git a/frontend/src/components/TaskFilterBar.tsx b/frontend/src/components/TaskFilterBar.tsx index e02ab44..db6116f 100644 --- a/frontend/src/components/TaskFilterBar.tsx +++ b/frontend/src/components/TaskFilterBar.tsx @@ -1,8 +1,7 @@ -import { Filter, RefreshCw, Search } from 'lucide-react' +import { RefreshCw, Search } from 'lucide-react' import { TASK_STATUS_LABELS, TASK_STATUS_OPTIONS, type TaskStatus } from '../types/task' import type { Project } from '../services/projectService' import type { Category } from '../types/category' -import { MultiSelectChips } from './MultiSelectChips' import { CategoryIcon } from './CategoryIcon' import { MultiSelectDropdown } from './MultiSelectDropdown' import type { TaskFilters } from './taskFilters' @@ -68,84 +67,83 @@ export function TaskFilterBar({ )} - {projects.length > 0 && ( -
- - Projetos - + {projects.length > 0 && ( + ({ value: p.id, label: p.name, - color: p.color ?? undefined, icon: p.icon ? : undefined, }))} selected={filters.projectIds} onChange={(projectIds) => update({ projectIds })} /> -
- )} + )} -
- - Status - ({ value: s, label: TASK_STATUS_LABELS[s], - color: STATUS_CHIP_COLORS[s], + icon: ( +
+ ), }))} selected={filters.statuses} onChange={(statuses) => update({ statuses })} /> -
- {assignees.length > 0 && ( -
- {currentUserId !== undefined && ( - - )} + {categories.length > 0 && ( ({ - value: assignee.id, - label: assignee.name, - icon: , - }))} - selected={filters.userIds} - onChange={(userIds) => update({ userIds })} - /> -
- )} - - {categories.length > 0 && ( -
- - Categorias - ({ value: c.id, label: c.name, - color: c.color, icon: , }))} selected={filters.categoryIds} onChange={(categoryIds) => update({ categoryIds })} /> -
- )} + )} + + {assignees.length > 0 && ( +
+ ({ + value: assignee.id, + label: assignee.name, + icon: , + }))} + selected={filters.userIds} + onChange={(userIds) => update({ userIds })} + /> + {currentUserId !== undefined && ( + + )} +
+ )} +
) }