revert(ptica): restore old Section1-6 analysis view as default route
All checks were successful
CI / changes (pull_request) Successful in 5s
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Successful in 57s
CI / openapi-codegen-check (pull_request) Successful in 1m50s

The ПТИЦА dark cockpit (made default in ba05a4c) is being redesigned from
scratch. Roll the live /site-finder/analysis/[cad] route back to the original
AnalysisPageContent (Section1-6) so pilots/investor see the stable design while
the new cockpit is reworked.

Non-destructive: only the route's rendered component + metadata/fallback are
reverted. All ptica code stays in the repo and the cockpit remains viewable at
/__preview/ptica-full for redesign reference.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Light1YT 2026-06-21 18:39:49 +05:00
parent 2318f0906a
commit aba4e61be2

View file

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