Overhaul dashboard into command center with compute tracking, era-gated sections
CI / build-and-push (push) Successful in 37s
CI / build-and-push (push) Successful in 37s
Add compute history time-series (capacity vs demand chart), revenue vs expenses dual-line chart, enhanced system status (training allocation, network uptime, model freshness), active operations panel, market position bars, and competitor snapshot. Stat cards expand from 3 to 6 as player progresses through eras. Graceful v9→v10 save migration preserves existing games. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1430,6 +1430,11 @@ export const useGameStore = create<Store>()(
|
||||
return rest;
|
||||
},
|
||||
migrate: (_persisted, version) => {
|
||||
if (version === 9) {
|
||||
const s = _persisted as Record<string, unknown>;
|
||||
const compute = s.compute as Record<string, unknown>;
|
||||
return { ...s, compute: { ...compute, computeHistory: [] } } as unknown as Store;
|
||||
}
|
||||
if (version < SAVE_VERSION) {
|
||||
return {
|
||||
...initialGameState,
|
||||
@@ -1437,7 +1442,7 @@ export const useGameStore = create<Store>()(
|
||||
notifications: [{
|
||||
id: uuid(),
|
||||
title: 'Save Reset',
|
||||
message: 'Your save was reset due to a major market system overhaul — shared TAM competition, multi-tier pricing, enterprise pipeline, developer ecosystem, and technology obsolescence!',
|
||||
message: 'Your save was reset due to a major game update. Start fresh and build your AI empire!',
|
||||
type: 'info' as const,
|
||||
tick: 0,
|
||||
read: false,
|
||||
|
||||
Reference in New Issue
Block a user