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.
61 lines
1.9 KiB
HTML
61 lines
1.9 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>ai-chess</title>
|
|
<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/style.css" />
|
|
</head>
|
|
<body>
|
|
<main id="layout">
|
|
<aside id="chat-col">
|
|
<header class="col-header">
|
|
<span>chat</span>
|
|
<span id="chat-counter"></span>
|
|
</header>
|
|
<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"></div>
|
|
<div id="board-footer">
|
|
<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>
|
|
</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>
|
|
<label><input type="checkbox" name="allow_draw_resign" /> allow draw / resign</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>
|
|
<button value="save" id="settings-save">save</button>
|
|
</menu>
|
|
</form>
|
|
</dialog>
|
|
|
|
<script src="/static/app.js" type="module"></script>
|
|
</body>
|
|
</html>
|