⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { useTranslations } from 'next-intl';
import type { WidgetConfig } from '@/utils/dashboardWidgets';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
import { STATUS_FILTER } from './AgentRunsWidget';
import LimitSelect from './LimitSelect';
// The run status filter and the row count.
export default function AgentRunsWidgetSettings({
config,
onConfigChange,
}: {
config: WidgetConfig;
onConfigChange: (config: WidgetConfig) => void;
}) {
const t = useTranslations('dashboards.agentRuns');
const status = config.runStatus ?? null;
const limit = config.limit ?? 20;
return (
<div className="flex flex-wrap items-center gap-2">
<Select
value={status ?? 'all'}
onValueChange={(v) =>
onConfigChange({ runStatus: v === 'all' ? null : (v as WidgetConfig['runStatus']) })
}
>
<SelectTrigger size="sm" className="w-[130px]">
<SelectValue />
</SelectTrigger>
<SelectContent>
{STATUS_FILTER.map((option) => (
<SelectItem key={option} value={option}>
{t(`filters.${option}`)}
</SelectItem>
))}
</SelectContent>
</Select>
<LimitSelect value={limit} onChange={(next) => onConfigChange({ limit: next })} />
</div>
);
}