Compare commits

..

No commits in common. "520fa55f2b35357988a87b6b4c15887d14bd6d6e" and "2318f0906a9e2839820091484cf659265e724026" have entirely different histories.

View file

@ -1,7 +1,7 @@
import { Suspense } from "react";
import type { Metadata } from "next";
import { AnalysisPageContent } from "./AnalysisPageContent";
import { PticaPageContent } from "./ptica/PticaPageContent";
// ── Metadata ──────────────────────────────────────────────────────────────────
@ -21,13 +21,18 @@ export async function generateMetadata({
const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw);
return {
title: `Анализ ${cad} — Site Finder`,
description: `Анализ инвестиционного участка ${cad}`,
title: `ПТИЦА · ${cad}`,
description: `Когнитивный анализ участка ${cad} — платформа ПТИЦА`,
};
}
// ── Page ──────────────────────────────────────────────────────────────────────
// The ПТИЦА cockpit is now the PRIMARY analysis view: every entry point
// (entry-map click, recent parcels, cad input, direct URL) lands here. The old
// AnalysisPageContent stays in the repo for reference but is no longer rendered
// on this route. The sibling `[cad]/ptica` subroute redirects back here so a
// single PticaPageContent is the only live copy of the cockpit.
export default async function AnalysisPage({ params }: PageProps) {
const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw);
@ -36,18 +41,23 @@ export default async function AnalysisPage({ params }: PageProps) {
<Suspense
fallback={
<div
// Inline hex intentionally duplicates --bg / --text-muted: the scoped
// CSS-module tokens live under .pticaRoot[data-theme="dark"] and aren't
// reachable from this server-rendered Suspense fallback.
style={{
padding: "40px 24px",
textAlign: "center",
color: "var(--fg-tertiary, #73767E)",
minHeight: "100vh",
display: "grid",
placeItems: "center",
background: "#060f16",
color: "#8ba6b3",
fontSize: 14,
}}
>
Загрузка анализа
Загрузка ПТИЦА
</div>
}
>
<AnalysisPageContent cad={cad} />
<PticaPageContent cad={cad} />
</Suspense>
);
}