commit9
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-30 20:02:30 +02:00
parent 6d14b4e6f0
commit c6373365bf
225 changed files with 15365 additions and 285 deletions
+8
View File
@@ -0,0 +1,8 @@
export const peopleStates: Record<string, string> = {
draft: 'Abertura por conferir',
open: 'Recepção de candidaturas',
assessment: 'Avaliação',
selection_review: 'Selecção por conferir',
selected: 'Selecção aprovada',
contract_draft: 'Minuta contratual preparada',
};
+88 -1
View File
@@ -16,6 +16,7 @@ export type ProcurementEntry = {
path: string;
roles?: string[];
fullPage?: boolean;
section?: string;
};
export type ProcurementGroup = {
id: string;
@@ -122,6 +123,57 @@ export function procurementNavigation(
},
],
},
{
id: 'people',
label: 'Pessoas e contratações',
icon: Users,
entries: [
{
id: 'people_registry',
label: 'Cadastro reutilizável de pessoas',
path: '/pessoas/cadastro',
roles: [
'admin',
'people_service_prepare',
'people_staff_prepare',
'people_registry_read',
'people_registry_manage',
],
},
{
id: 'people_hiring',
label: 'Processos e equipas',
path: '/pessoas',
roles: [
'admin',
'people_service_prepare',
'people_service_review',
'people_staff_prepare',
'people_staff_review',
],
},
{
id: 'people_services',
label: 'Serviços individuais',
path: '/pessoas?kind=service',
roles: [
'admin',
'people_service_prepare',
'people_service_review',
],
},
{
id: 'people_staff',
label: 'Recrutamento e selecção',
path: '/pessoas?kind=staff',
roles: [
'admin',
'people_staff_prepare',
'people_staff_review',
],
},
],
},
{
id: 'receiving',
label: 'Recepções e armazém',
@@ -251,7 +303,42 @@ export function procurementNavigation(
],
},
];
return groups
const purchasing = groups.filter((group) =>
['requests', 'approvals', 'sourcing', 'suppliers'].includes(group.id),
);
const compact = [
{
id: 'purchasing',
label: 'Compras',
icon: ClipboardList,
entries: purchasing.flatMap((group) =>
group.entries.map((entry) => ({
...entry,
section: group.label,
})),
),
},
...groups
.filter(
(group) =>
![
'requests',
'approvals',
'sourcing',
'suppliers',
].includes(group.id),
)
.map((group) => ({
...group,
label:
group.id === 'administration'
? 'Administração'
: group.id === 'receiving'
? 'Armazém e activos'
: group.label,
})),
];
return compact
.map((group) => ({
...group,
entries: group.entries.filter(