oportunidades 7
tests / ci (push) Waiting to run

This commit is contained in:
2026-10-13 11:40:29 +02:00
parent 20971d523f
commit 287e991486
2902 changed files with 1085456 additions and 25957 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { createOperationKey } from '@/lib/operation-key';
import { Head, Link, router, useForm } from '@inertiajs/react';
import { useState } from 'react';
import type { LegacyArticle } from '@/pages/portal/legacy';
@@ -16,7 +17,7 @@ export default function InvestmentContexts({
contexts: InvestmentContext[];
contentSource?: LegacyArticle;
}) {
const [key] = useState(() => globalThis.crypto.randomUUID());
const [key] = useState(() => createOperationKey());
const form = useForm({
title: '',
client_key: key,
+4 -3
View File
@@ -1,3 +1,4 @@
import { createOperationKey } from '@/lib/operation-key';
import { Head, Link, router, useForm, usePage } from '@inertiajs/react';
import { useState } from 'react';
import {
@@ -345,7 +346,7 @@ export default function InvestmentPath(path: Path) {
consent: false,
});
const [service, setService] = useState(path.services[0]?.id ?? '');
const [requestKey] = useState(() => crypto.randomUUID());
const [requestKey] = useState(() => createOperationKey());
const [taskReason, setTaskReason] = useState('');
const [error, setError] = useState('');
function support() {
@@ -356,7 +357,7 @@ export default function InvestmentPath(path: Path) {
);
}
return (
<main className="mx-auto min-w-0 max-w-6xl space-y-6 p-4 [overflow-wrap:anywhere] [&_label]:min-w-0 [&_select]:min-w-0 [&_select]:max-w-full [&_input]:min-w-0 [&_input]:max-w-full md:p-8">
<main className="mx-auto max-w-6xl min-w-0 space-y-6 p-4 [overflow-wrap:anywhere] md:p-8 [&_input]:max-w-full [&_input]:min-w-0 [&_label]:min-w-0 [&_select]:max-w-full [&_select]:min-w-0">
<Head title={path.case.title} />
<Link className="underline" href="/investimentos">
Os meus investimentos
@@ -618,7 +619,7 @@ export default function InvestmentPath(path: Path) {
</h2>
{path.canWrite && (
<form
className="grid min-w-0 gap-3 [&_label]:min-w-0 [&_select]:min-w-0 [&_select]:max-w-full [&_input]:min-w-0 [&_input]:max-w-full"
className="grid min-w-0 gap-3 [&_input]:max-w-full [&_input]:min-w-0 [&_label]:min-w-0 [&_select]:max-w-full [&_select]:min-w-0"
onSubmit={(event) => {
event.preventDefault();
task.transform((data) => ({