feat(ui): chat-bubbles layout, fix eval bar visibility, no terminals
UI rewrite per user feedback: - Remove agent terminal panels entirely (tmux runs headlessly). - Left column: chat with colored bubbles per move (white→light, black→ dark, click to jump to ply, label shows agent+side+SAN). - Right column: SAN move history (lichess style, click to jump). - Center: board, untouched, but now constrained so it stops overflowing. - Eval bar between chat and board, vertical with cp/mate text; the earlier visual issue was pure CSS (no explicit height) — bar fills full column height now. - Keyboard nav: ←/→/space. - Bottom log strip kept (compact). Backend: TmuxTailer no longer started in lifespan (UI doesn't need term_chunk events). Stockfish + eval_bridge now log explicit errors to backend.log on startup failure.
This commit is contained in:
+23
-36
@@ -6,58 +6,47 @@
|
||||
<link rel="stylesheet" href="/static/vendor/chessground.base.css" />
|
||||
<link rel="stylesheet" href="/static/vendor/chessground.brown.css" />
|
||||
<link rel="stylesheet" href="/static/vendor/chessground.cburnett.css" />
|
||||
<link rel="stylesheet" href="/static/vendor/xterm.css" />
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<main id="layout">
|
||||
<section id="agent-codex" class="agent-panel">
|
||||
<header class="agent-header">
|
||||
<span class="agent-name">codex</span>
|
||||
<span class="agent-side" data-bind="codex-side">?</span>
|
||||
<aside id="chat-col">
|
||||
<header class="col-header">
|
||||
<span>chat</span>
|
||||
<span id="chat-counter"></span>
|
||||
</header>
|
||||
<div class="terminal" id="term-codex"></div>
|
||||
</section>
|
||||
<div id="chat-list"></div>
|
||||
</aside>
|
||||
|
||||
<div id="eval-col" title="stockfish eval">
|
||||
<div id="eval-fill"></div>
|
||||
<div id="eval-text">0.00</div>
|
||||
</div>
|
||||
|
||||
<section id="board-col">
|
||||
<div id="board-wrap">
|
||||
<div id="eval-bar"><div id="eval-fill"></div><div id="eval-text">0.0</div></div>
|
||||
<div id="board"></div>
|
||||
<aside id="history">
|
||||
<ol id="history-list"></ol>
|
||||
</aside>
|
||||
</div>
|
||||
<div id="board"></div>
|
||||
<div id="board-footer">
|
||||
<div id="status-line">…</div>
|
||||
<button id="new-game">New Game</button>
|
||||
<button id="settings-btn">⚙</button>
|
||||
<span id="status-line">…</span>
|
||||
<span id="sf-pv"></span>
|
||||
<button id="live-btn" hidden>live</button>
|
||||
<button id="new-game">new game</button>
|
||||
<button id="settings-btn" title="settings">⚙</button>
|
||||
</div>
|
||||
<div id="sf-lines"></div>
|
||||
</section>
|
||||
|
||||
<section id="agent-claude" class="agent-panel">
|
||||
<header class="agent-header">
|
||||
<span class="agent-name">claude</span>
|
||||
<span class="agent-side" data-bind="claude-side">?</span>
|
||||
</header>
|
||||
<div class="terminal" id="term-claude"></div>
|
||||
</section>
|
||||
<aside id="moves-col">
|
||||
<header class="col-header"><span>moves</span></header>
|
||||
<ol id="history-list"></ol>
|
||||
</aside>
|
||||
|
||||
<footer id="log-strip"><pre id="log-text"></pre></footer>
|
||||
</main>
|
||||
|
||||
<dialog id="settings-dialog">
|
||||
<form method="dialog" id="settings-form">
|
||||
<h3>Settings</h3>
|
||||
<h3>settings</h3>
|
||||
<label><input type="checkbox" name="allow_draw_resign" /> allow draw / resign</label>
|
||||
<label><input type="checkbox" name="allow_illegal_moves" /> allow illegal moves (cheats)</label>
|
||||
<label>theme_mode:
|
||||
<select name="theme_mode">
|
||||
<option value="by_side">by side (white→light, black→dark)</option>
|
||||
<option value="both_dark">both dark</option>
|
||||
<option value="both_light">both light</option>
|
||||
</select>
|
||||
</label>
|
||||
<label><input type="checkbox" name="allow_illegal_moves" /> allow illegal moves</label>
|
||||
<label>stockfish depth: <input type="number" name="stockfish_depth" min="6" max="30" /></label>
|
||||
<menu>
|
||||
<button value="cancel">cancel</button>
|
||||
@@ -66,8 +55,6 @@
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<script src="/static/vendor/xterm.js"></script>
|
||||
<script src="/static/vendor/xterm-addon-fit.js"></script>
|
||||
<script src="/static/app.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user