From c35edc60d08dd8e92243bba661917bbaaf556269 Mon Sep 17 00:00:00 2001 From: Kamil Krzywda Date: Tue, 29 Sep 2026 08:30:35 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20top=20bar=20shows=20app=20version?= =?UTF-8?q?=20instead=20of=20=E2=97=84=20SHIP=20label=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ components/mission-control.tsx | 3 ++- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 975734f..cb11311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.9.4 — 2026-09-29 08:29 +- Top bar (#23): the `◄ SHIP` label in the mission control header is replaced with the app version number (e.g. `v0.9.4`). The header reads it from `package.json` via the same `@/package.json` import that `/api/version` and the OpenAPI spec use, so there is a single source of truth — no second hardcoded copy. +- e2e: no spec changes needed — no spec asserted on the old `◄ SHIP` label (the landing-page test only checks the SpaceWanderer heading). All 15 specs compile unchanged. + ## v0.9.3 — 2026-09-29 08:20 - Layout (#21): only the middle column scrolls now — the app is pinned to the viewport (`height: 100vh` + `overflow: hidden` on the root in wide mode) so body-level scrolling no longer moves the side panes. Left/right columns keep their existing `overflow-y: auto`, so any overflowing content (e.g. a long planet list) scrolls inside its own track instead. - Added `min-height: 0` to the BODY wrapper and the 3-column grid — flex/grid items default to a content-based minimum size, which is what let the page grow past the viewport before. diff --git a/components/mission-control.tsx b/components/mission-control.tsx index a158956..237f8cc 100644 --- a/components/mission-control.tsx +++ b/components/mission-control.tsx @@ -18,6 +18,7 @@ import { CREW_CAPACITY } from '@/lib/game/ship-costs' import type { CrewDto, SystemState } from '@/lib/game/save' import type { ShipState } from '@/lib/game/ship' import type { TechDto } from '@/lib/game/tech' +import pkg from '@/package.json' // Interface base: layout + visual treatment rebuilt from the scificn-ui Mission Control // showcase (src/app/_pages/showcase/mission-control-content.tsx in baxy5/scificn-ui). All seven @@ -141,7 +142,7 @@ export function MissionControl() { flexShrink: 0, }} > - ◄ SHIP + v{pkg.version} │ diff --git a/package.json b/package.json index 1955063..7abc0ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "space-wanderer", - "version": "0.9.3", + "version": "0.9.4", "private": true, "scripts": { "dev": "next dev -p 3000", -- 2.54.0