resolvemos o problema dos ZEE e ZFI
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-07 19:46:35 +02:00
parent 0a086c3fa5
commit bdd766c68a
74 changed files with 6401 additions and 32 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export const kind = (r: Pick<Dossier, "project_id" | "cluster_id" | "corridor_id
export function Layout({ title, children }: { title: string; children: ReactNode }) {
const { flash } = usePage<{ flash?: { success?: string } }>().props;
return (
<main className="mx-auto max-w-6xl space-y-6 p-4 md:p-8">
<main className="mx-auto w-full min-w-0 max-w-6xl space-y-6 break-words p-4 md:p-8">
<Head title={title} />
<nav className="flex flex-wrap gap-5 text-sm underline" aria-label="Investimento">
<Link href="/">InvestMoz</Link>
+7 -1
View File
@@ -1,6 +1,8 @@
import { Link, useForm, router, usePage } from "@inertiajs/react";
import { useState } from "react";
import InvestmentMapPanel from "@/components/investment-map-panel";
import StructureGeographyPanel, { type StructureGeography } from '@/components/structure-geography';
import PartnershipSourceLinks from '@/components/partnership-source-links';
import { Management } from "../management/shared";
import { Layout, Field, control, button, labels, kind } from "./shared";
import type { Dossier } from "./shared";
@@ -9,6 +11,7 @@ export default function Show(props: Props) {
}
type Props = {
geography: StructureGeography;
existingSubmissions?: { id: string; version: number; updated_at: string }[];
anchorProject?: { code: string; name: string; status: string; budget_amount: string | null; budget_currency: string | null; start_date: string | null; end_date: string | null } | null;
zones?: {
@@ -36,6 +39,7 @@ function Editor({
zones = [],
anchorProject = null,
existingSubmissions = [],
geography,
}: Props) {
const { auth } = usePage<{ auth: { user: unknown } }>().props;
const [creatingManifestation, setCreatingManifestation] = useState(false);
@@ -55,6 +59,8 @@ function Editor({
{kind(record)} · {record.content.code}
</p>
<p className="text-sm">Fonte: {record.source}</p>
{(record.project_id||record.cluster_id)&&<PartnershipSourceLinks type={record.project_id?'project':'cluster'} id={record.project_id??record.cluster_id!}/>}
{(record.project_id || record.cluster_id) && <StructureGeographyPanel geography={geography} cluster={Boolean(record.cluster_id)} dossierId={record.id} />}
{anchorProject && (
<section className="space-y-2 rounded-xl border p-5" aria-labelledby="anchor-project-heading">
<h2 id="anchor-project-heading" className="text-xl font-bold">Referência de projecto âncora</h2>
@@ -148,7 +154,7 @@ function Editor({
<article key={opportunity.id}>
<Link
className="font-semibold underline"
href={`/oportunidades/${opportunity.slug}`}
href={`/oportunidades/${opportunity.slug}?from_dossier=${record.id}`}
>
{opportunity.title}
</Link>