Compare commits

...
3 changed files with 34 additions and 18 deletions
+3
View File
@@ -1,5 +1,8 @@
# Changelog # Changelog
## v0.2.2 — 2026-09-28 21:02
- LOCAL SYSTEM tab: explorable-worlds list now staggers moons under their parent planet (indented rows) — ASHFALL attached under BRIMSTONE, new PALEMOON moon under AURELLE; badges unchanged.
## v0.2.1 — 2026-09-28 20:22 ## v0.2.1 — 2026-09-28 20:22
- LOCAL SYSTEM tab: removed the system node graph (star/planets/moons) — the tab now shows only the explorable-worlds list at full panel width. WORLD MAP keeps its node graph; `components/ui/node-graph.tsx` unchanged and still in use there. - LOCAL SYSTEM tab: removed the system node graph (star/planets/moons) — the tab now shows only the explorable-worlds list at full panel width. WORLD MAP keeps its node graph; `components/ui/node-graph.tsx` unchanged and still in use there.
+30 -17
View File
@@ -72,11 +72,16 @@ const worldMapEdges: NodeGraphEdge[] = [
// LOCAL SYSTEM — explorable worlds of the current system (regenerated per save after each jump, later). // LOCAL SYSTEM — explorable worlds of the current system (regenerated per save after each jump, later).
const explorablePlanets = [ const explorablePlanets = [
{ name: 'AURELLE', type: 'TERRESTRIAL // OCEAN CONTINENTS', state: 'UNEXPLORED' as const }, {
{ name: 'BRIMSTONE', type: 'GAS GIANT // CLOUD DECKS', state: 'SCANNED' as const }, name: 'AURELLE', type: 'TERRESTRIAL // OCEAN CONTINENTS', state: 'UNEXPLORED' as const,
{ name: 'ASHFALL (MOON)', type: 'VOLCANIC MOON // SULFUR VEINS', state: 'UNEXPLORED' as const }, moons: [{ name: 'PALEMOON', type: 'ICE MOON // FROST PLAINS', state: 'UNEXPLORED' as const }],
{ name: 'CINDERROCK', type: 'ROCKY // IRON RICH', state: 'UNEXPLORED' as const }, },
{ name: 'DRIFTBAND', type: 'ASTEROID FIELD // HAZARD', state: 'HAZARD' as const }, {
name: 'BRIMSTONE', type: 'GAS GIANT // CLOUD DECKS', state: 'SCANNED' as const,
moons: [{ name: 'ASHFALL', type: 'VOLCANIC MOON // SULFUR VEINS', state: 'UNEXPLORED' as const }],
},
{ name: 'CINDERROCK', type: 'ROCKY // IRON RICH', state: 'UNEXPLORED' as const, moons: [] },
{ name: 'DRIFTBAND', type: 'ASTEROID FIELD // HAZARD', state: 'HAZARD' as const, moons: [] },
] ]
const crew = [ const crew = [
@@ -389,31 +394,39 @@ export function MissionControl() {
> >
EXPLORABLE WORLDS // FIND THINGS HERE (PLACEHOLDER) EXPLORABLE WORLDS // FIND THINGS HERE (PLACEHOLDER)
</div> </div>
{explorablePlanets.map((planet, i) => ( {explorablePlanets.flatMap((planet) => [
{ name: planet.name, type: planet.type, state: planet.state, depth: 0 },
...planet.moons.map((moon) => ({
name: moon.name,
type: moon.type,
state: moon.state,
depth: 1,
})),
]).map((row, i, rows) => (
<div <div
key={planet.name} key={row.name}
style={{ style={{
display: 'flex', display: 'flex',
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
gap: '0.5rem', gap: '0.5rem',
padding: '0.6rem 0.75rem', padding: row.depth
? '0.6rem 0.75rem 0.6rem 1.75rem'
: '0.6rem 0.75rem',
borderBottom: borderBottom:
i < explorablePlanets.length - 1 i < rows.length - 1 ? '1px solid var(--border)' : 'none',
? '1px solid var(--border)'
: 'none',
}} }}
> >
<div style={{ overflow: 'hidden' }}> <div style={{ overflow: 'hidden' }}>
<div <div
style={{ style={{
fontSize: '0.68rem', fontSize: '0.68rem',
color: 'var(--text-secondary)', color: row.depth ? 'var(--text-muted)' : 'var(--text-secondary)',
letterSpacing: '0.04em', letterSpacing: '0.04em',
textTransform: 'uppercase', textTransform: 'uppercase',
}} }}
> >
{planet.name} {row.name}
</div> </div>
<div <div
style={{ style={{
@@ -423,19 +436,19 @@ export function MissionControl() {
marginTop: '2px', marginTop: '2px',
}} }}
> >
{planet.type} {row.type}
</div> </div>
</div> </div>
<Badge <Badge
variant={ variant={
planet.state === 'UNEXPLORED' row.state === 'UNEXPLORED'
? 'SCANNING' ? 'SCANNING'
: planet.state === 'HAZARD' : row.state === 'HAZARD'
? 'WARNING' ? 'WARNING'
: 'ACTIVE' : 'ACTIVE'
} }
> >
{planet.state} {row.state}
</Badge> </Badge>
</div> </div>
))} ))}
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "space-wanderer", "name": "space-wanderer",
"version": "0.2.1", "version": "0.2.2",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3000", "dev": "next dev -p 3000",