feat: add Svelte DnD action and enhance flow management features

- Added "svelte-dnd-action" dependency to facilitate drag-and-drop functionality.
- Introduced new "Fluxos de Trabalho" section in the dashboard for managing workflow templates and instances.
- Updated permission handling for sectors and flow templates in the backend.
- Enhanced schema definitions to support flow templates, instances, and associated documents.
- Improved UI components to include new workflow management features across various dashboard pages.
This commit is contained in:
2025-11-25 00:21:35 -03:00
parent 409872352c
commit f8d9c17f63
16 changed files with 4073 additions and 5 deletions

View File

@@ -13,7 +13,8 @@
| 'teams'
| 'userPlus'
| 'clock'
| 'video';
| 'video'
| 'building';
type PaletteKey = 'primary' | 'success' | 'secondary' | 'accent' | 'info' | 'error' | 'warning';
type TiRouteId =
@@ -30,7 +31,8 @@
| '/(dashboard)/ti/monitoramento'
| '/(dashboard)/ti/configuracoes-ponto'
| '/(dashboard)/ti/configuracoes-relogio'
| '/(dashboard)/ti/configuracoes-jitsi';
| '/(dashboard)/ti/configuracoes-jitsi'
| '/(dashboard)/configuracoes/setores';
type FeatureCard = {
title: string;
@@ -211,6 +213,13 @@
strokeLinecap: 'round',
strokeLinejoin: 'round'
}
],
building: [
{
d: 'M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4',
strokeLinecap: 'round',
strokeLinejoin: 'round'
}
]
};
@@ -349,6 +358,15 @@
{ label: 'Relatórios', variant: 'outline' }
]
},
{
title: 'Gestão de Setores',
description:
'Gerencie os setores da organização. Setores são utilizados para organizar funcionários e definir responsabilidades em fluxos de trabalho.',
ctaLabel: 'Gerenciar Setores',
href: '/(dashboard)/configuracoes/setores',
palette: 'accent',
icon: 'building'
},
{
title: 'Documentação',
description: