refactor(tradein/v2): перенос HUD v2 в tradein-mvp frontend
All checks were successful
CI / changes (pull_request) Successful in 6s
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Successful in 1m3s
CI / openapi-codegen-check (pull_request) Successful in 1m59s

Прод-/trade-in/* обслуживает tradein-mvp/frontend (basePath=/trade-in,
standalone), а не главный frontend — v2 по ошибке попал в главный, где
прод его не отдаёт. Markup-only порт (fixtures, без API):

- компоненты v2 → tradein-mvp/frontend/src/components/trade-in/v2/
- роут src/app/v2/ (basePath даёт прод-URL /trade-in/v2)
- public/trade-in-v2/building.png
- HeroBar: <img> → next/image (плоский img не префиксит basePath → 404)
- удалён мёртвый v2 из главного frontend

next build (NEXT_PUBLIC_BASE_PATH=/trade-in) зелёный, роут /v2 prerendered.
This commit is contained in:
bot-backend 2026-06-28 13:10:23 +03:00
parent fba41c0cce
commit fcb85deab8
18 changed files with 5 additions and 5 deletions

View file

Before

Width:  |  Height:  |  Size: 501 KiB

After

Width:  |  Height:  |  Size: 501 KiB

View file

@ -1,5 +1,7 @@
"use client";
import Image from "next/image";
import { tokens } from "./tokens";
import { object, report } from "./fixtures";
@ -184,14 +186,12 @@ export default function HeroBar({ onOpenInfo }: HeroBarProps) {
boxShadow: "0 6px 26px rgba(40,80,130,.10)",
}}
>
<img
<Image
src="/trade-in-v2/building.png"
alt=""
fill
sizes="560px"
style={{
position: "absolute",
inset: 0,
width: "100%",
height: "100%",
objectFit: "contain",
objectPosition: "right center",
filter: "saturate(.9) brightness(1.04)",