Compare commits

..

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

View file

@ -1,7 +1,7 @@
import { Suspense } from "react"; import { Suspense } from "react";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { AnalysisPageContent } from "./AnalysisPageContent"; import { PticaPageContent } from "./ptica/PticaPageContent";
// ── Metadata ────────────────────────────────────────────────────────────────── // ── Metadata ──────────────────────────────────────────────────────────────────
@ -21,13 +21,18 @@ export async function generateMetadata({
const { cad: cadRaw } = await params; const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw); const cad = decodeURIComponent(cadRaw);
return { return {
title: `Анализ ${cad} — Site Finder`, title: `ПТИЦА · ${cad}`,
description: `Анализ инвестиционного участка ${cad}`, description: `Когнитивный анализ участка ${cad} — платформа ПТИЦА`,
}; };
} }
// ── Page ────────────────────────────────────────────────────────────────────── // ── 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) { export default async function AnalysisPage({ params }: PageProps) {
const { cad: cadRaw } = await params; const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw); const cad = decodeURIComponent(cadRaw);
@ -36,18 +41,23 @@ export default async function AnalysisPage({ params }: PageProps) {
<Suspense <Suspense
fallback={ fallback={
<div <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={{ style={{
padding: "40px 24px", minHeight: "100vh",
textAlign: "center", display: "grid",
color: "var(--fg-tertiary, #73767E)", placeItems: "center",
background: "#060f16",
color: "#8ba6b3",
fontSize: 14, fontSize: 14,
}} }}
> >
Загрузка анализа Загрузка ПТИЦА
</div> </div>
} }
> >
<AnalysisPageContent cad={cad} /> <PticaPageContent cad={cad} />
</Suspense> </Suspense>
); );
} }