feat(ticket): support criteria-based global ticket assignment

This commit is contained in:
2026-07-28 18:47:29 +05:30
parent 0601322361
commit 8e8803396d
16 changed files with 586 additions and 107 deletions

View File

@@ -27,6 +27,7 @@ interface MultiSelectPopoverProps {
onValuesChange: (values: string[]) => void;
searchPlaceholder?: string;
emptyMessage?: string;
emptySelectionLabel?: string;
align?: 'start' | 'center' | 'end';
}
@@ -45,6 +46,7 @@ export function MultiSelectPopover({
onValuesChange,
searchPlaceholder = 'Search',
emptyMessage = 'No options found.',
emptySelectionLabel,
align = 'end',
}: MultiSelectPopoverProps) {
const [search, setSearch] = useState('');
@@ -96,7 +98,11 @@ export function MultiSelectPopover({
>
{icon}
{label}
<Badge variant="secondary">{values.length}</Badge>
<Badge variant="secondary">
{values.length === 0 && emptySelectionLabel
? emptySelectionLabel
: values.length}
</Badge>
<ChevronDown />
</Button>
</PopoverTrigger>