fix(ptica): load Inter, surface map legend, drop flag, honest product chart, home link #1855

Merged
bot-backend merged 1 commit from fix/ptica-inter-map-product into main 2026-06-20 20:42:30 +00:00
Collaborator

Addresses «всё ещё очень криво и косо» on the ПТИЦА cockpit. Five code-verified root causes (diffed vs prototype ptica-redesign/):

  1. Inter never loaded (dominant bug). App referenced literal "Inter" but only IBM Plex Mono went through next/font → whole cockpit rendered in -apple-system/SF (wider metrics → rail labels overflow 96px column, tabular numbers misalign). Now loads Inter via next/font/google (latin+cyrillic, 400–700); wires --font-ui + body to var(--font-inter). No package.json/lockfile change (next/font bundled).
  2. Map legend invisible. Overlay z-index:4 was buried under Leaflet panes (200–700). Gave .leaflet-container its own stacking context (position:absolute; z-index:1) like the prototype → overlay + tools surface.
  3. Stray map «флаг». Leaflet 1.9 attribution prefix (flag + «Leaflet») dropped via attributionControl={false} + <AttributionControl prefix={false}>; © Esri/Maxar/CARTO data credits kept.
  4. RECOMMENDED PRODUCT wall of 15 full-red −1.00 bars → filter to recommended obj_class, honest empty state on degenerate signal, cap rows, nowrap+ellipsis labels.
  5. Home nav. ПТИЦА wordmark → <Link href="/site-finder"> + focus ring.

Gates: tsc 0 · lint clean · build OK. code-reviewer ⚠️minor → a11y focus ring added.

🤖 Generated with Claude Code

Addresses «всё ещё очень криво и косо» on the ПТИЦА cockpit. Five code-verified root causes (diffed vs prototype `ptica-redesign/`): 1. **Inter never loaded (dominant bug).** App referenced literal `"Inter"` but only IBM Plex Mono went through `next/font` → whole cockpit rendered in `-apple-system`/SF (wider metrics → rail labels overflow 96px column, tabular numbers misalign). Now loads Inter via `next/font/google` (latin+cyrillic, 400–700); wires `--font-ui` + body to `var(--font-inter)`. No package.json/lockfile change (next/font bundled). 2. **Map legend invisible.** Overlay `z-index:4` was buried under Leaflet panes (200–700). Gave `.leaflet-container` its own stacking context (`position:absolute; z-index:1`) like the prototype → overlay + tools surface. 3. **Stray map «флаг».** Leaflet 1.9 attribution prefix (flag + «Leaflet») dropped via `attributionControl={false}` + `<AttributionControl prefix={false}>`; © Esri/Maxar/CARTO data credits kept. 4. **RECOMMENDED PRODUCT** wall of 15 full-red −1.00 bars → filter to recommended `obj_class`, honest empty state on degenerate signal, cap rows, `nowrap`+ellipsis labels. 5. **Home nav.** ПТИЦА wordmark → `<Link href="/site-finder">` + focus ring. Gates: tsc 0 · lint clean · build OK. code-reviewer ⚠️minor → a11y focus ring added. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bot-backend added 1 commit 2026-06-20 20:42:21 +00:00
fix(ptica): load Inter, surface map legend, drop flag, honest product chart, home link
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 57s
CI / openapi-codegen-check (pull_request) Successful in 1m56s
f4b54671d9
Root causes behind the cockpit looking «криво/косо»:

- Inter was never loaded — app referenced literal "Inter" but only IBM Plex
  Mono went through next/font, so the whole cockpit rendered in -apple-system
  (wider metrics → rail labels overflow, tabular numbers misalign). Load Inter
  via next/font/google (latin+cyrillic) and wire --font-ui/body to it.
- Map legend overlay (z-index 4) was buried under Leaflet panes (200-700):
  give .leaflet-container its own stacking context (position:absolute; z-index:1)
  like the prototype, so the overlay + tools surface.
- Drop the Leaflet attribution flag/"Leaflet" prefix (prefix={false}) while
  keeping the © Esri/Maxar/CARTO data credits.
- RECOMMENDED PRODUCT rendered 15 degenerate full-red −1.00 bars: filter mix to
  the recommended class, show an honest empty state on degenerate signal, cap
  rows, and stop labels wrapping (nowrap+ellipsis).
- ПТИЦА wordmark is now a Link → /site-finder (home), with a focus ring.
bot-backend merged commit 9370c7af8e into main 2026-06-20 20:42:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#1855
No description provided.