feat: add sorter simulation dashboard MVP

This commit is contained in:
deploy
2026-07-04 00:26:08 +02:00
parent 482be98b49
commit 9395d25332
33 changed files with 3141 additions and 0 deletions

33
src/components/Header.tsx Normal file
View File

@@ -0,0 +1,33 @@
import type { SimulationState } from '../domain/types';
interface HeaderProps {
simulation: SimulationState;
onStart: () => void;
onPause: () => void;
onReset: () => void;
onStep: () => void;
}
export default function Header({ simulation, onStart, onPause, onReset, onStep }: HeaderProps) {
return (
<header className="header">
<div>
<p className="eyebrow">Intelligent robotic sorting line</p>
<h1>OZON Tech Sorter Simulation</h1>
</div>
<div className="header-status">
<div className={`status-pill status-${simulation.systemStatus.toLowerCase()}`}>
<span />
{simulation.systemStatus}
</div>
<div className="scenario-label">Scenario: {simulation.scenario.name}</div>
<div className="header-actions">
<button onClick={onStart}>Start</button>
<button onClick={onPause}>Pause</button>
<button onClick={onReset}>Reset</button>
<button onClick={onStep}>Step</button>
</div>
</div>
</header>
);
}