feat: consolidar desenvolvimentos do portal InvestMoz

This commit is contained in:
2026-11-03 23:32:32 +02:00
parent 1da273f1f3
commit 36c8cadb49
345 changed files with 110714 additions and 2799 deletions
+30 -3
View File
@@ -344,9 +344,11 @@ function InternalStaffGrant({
function Grant({
types,
organizations,
technicalSupportAvailable = false,
}: {
types: string[];
organizations: { id: string; name: string }[];
technicalSupportAvailable?: boolean;
}) {
const [user, setUser] = useState('');
const [role, setRole] = useState('validator');
@@ -436,8 +438,27 @@ function Grant({
setResponsibilities([]);
}}
>
{['validator', 'publisher', 'auditor'].map((v) => (
<option key={v}>{v}</option>
{[
'validator',
'publisher',
'auditor',
...(technicalSupportAvailable
? ['technical_support']
: []),
].map((v) => (
<option key={v} value={v}>
{
(
{
validator: 'Validador',
publisher: 'Publicador',
auditor: 'Auditor',
technical_support:
'Suporte técnico',
} as Record<string, string>
)[v]
}
</option>
))}
</select>
</label>
@@ -839,7 +860,9 @@ export default function Administration({
operatorOrganizations,
internalTypes,
staffAccounts,
technicalSupportAvailable = false,
}: {
technicalSupportAvailable?: boolean;
operatorOrganizations: OperatorOrganization[];
internalTypes: string[];
staffAccounts: {
@@ -920,7 +943,11 @@ export default function Administration({
organizations={organizations}
operators={operatorOrganizations}
/>
<Grant types={types} organizations={organizations} />
<Grant
types={types}
organizations={organizations}
technicalSupportAvailable={technicalSupportAvailable}
/>
<Security
pair={pair}
entries={securityRequests}