feat(editorial): separate cluster analysis approval and publication in QA

This commit is contained in:
2026-11-13 23:08:02 +02:00
parent b3849d850e
commit 1218734eca
16 changed files with 658 additions and 46 deletions
+14 -1
View File
@@ -9,6 +9,7 @@ import {
import type { Paginated } from '../management/shared';
import { titles, statuses } from './types';
import type { Structure, StructureRecord } from './types';
import { states as editorialStates } from '../management/editorial-workflow';
export default function Index({
structure,
@@ -16,7 +17,7 @@ export default function Index({
filters,
}: {
structure: Structure;
records: Paginated<StructureRecord>;
records: Paginated<StructureRecord & { editorial_state?: string }>;
filters: { q?: string };
}) {
const form = useForm({ q: filters.q ?? '' });
@@ -61,6 +62,18 @@ export default function Index({
{record.code} · {statuses[structure][record.status]}
</p>
{record.sector && <p>{record.sector}</p>}
{record.editorial_state && (
<p>
Competitividade:{' '}
{editorialStates[record.editorial_state] ??
{
legacy_published:
'Publicação anterior preservada',
not_started: 'Sem análise guardada',
}[record.editorial_state] ??
record.editorial_state}
</p>
)}
</article>
))}
</div>