feat(editorial): separate cluster analysis approval and publication in QA
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user