⭐️⭐️⭐️ 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 { ActionDef } from '@/lib/api/endpoints/actions';
import type { CustomField } from '@/lib/api/endpoints/customFields';
import type { ProjectDetail } from '@/lib/api/endpoints/projects';
import { Table, TableBody, TableHead, TableHeader, TableRow } from '@/components/ui/table';
import { SettingsActionRow } from './SettingsActionRow';
interface SettingsActionsTableProps {
actions: ActionDef[];
project: ProjectDetail;
customFields: CustomField[];
onEdit: (actionId: number) => void;
onDuplicate: (action: ActionDef) => void;
onDelete: (action: ActionDef) => void;
}
export function SettingsActionsTable({
actions,
project,
customFields,
onEdit,
onDuplicate,
onDelete,
}: SettingsActionsTableProps) {
const t = useTranslations('settings.actions');
const tCommon = useTranslations('common');
return (
<Table className="min-w-[680px] table-fixed">
<colgroup>
<col className="w-[44%]" />
<col className="w-[42%]" />
<col className="w-[14%]" />
</colgroup>
<TableHeader>
<TableRow className="hover:bg-transparent">
<TableHead className="text-xs font-medium text-muted-foreground">
{t('columns.action')}
</TableHead>
<TableHead className="text-xs font-medium text-muted-foreground">
{t('columns.thenSet')}
</TableHead>
<TableHead className="text-right text-xs font-medium text-muted-foreground">
{tCommon('actions')}
</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{actions.map((action) => (
<SettingsActionRow
key={action.id}
action={action}
project={project}
customFields={customFields}
onEdit={() => onEdit(action.id)}
onDuplicate={() => onDuplicate(action)}
onDelete={() => onDelete(action)}
/>
))}
</TableBody>
</Table>
);
}