Scope parks and downstream investment requests to the treated opportunity

This commit is contained in:
2026-10-23 17:49:22 +02:00
parent ad4160f040
commit 4a01e9e2b7
25 changed files with 408 additions and 39 deletions
@@ -9,6 +9,8 @@ import { Conversation } from './conversation';
import type { Message } from './conversation';
import CountrySelect, { type Country } from '@/components/country-select';
type Payload = {
context_opportunity?: string;
context_opportunity_snapshot?: string;
simple_participation?: boolean;
opportunity_title?: string;
opportunity_reference?: string;
@@ -79,6 +81,7 @@ type Props = {
id: string;
version: number;
payload: Partial<Payload>;
opportunity_id?: number | null;
status: string;
};
references: References;
@@ -461,6 +464,7 @@ function Editor({
<DossierPrefill
contextId={contextDossierId}
consumer="submission"
initialOpportunity={s.opportunity_id ? `opportunity:${s.opportunity_id}` : undefined}
values={form.data.payload}
boundRevision={boundContextRevision}
readOnly={readonly}