Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(war-board): tighten the league panel rendering and widen its coverage
nirholas2aff6eff0596
diff --git a/src/play/war-board.js b/src/play/war-board.jsindex 659b34e3d..bc86633b8 100644--- a/src/play/war-board.js+++ b/src/play/war-board.js@@ -118,14 +118,15 @@ function paint(root, data, coin) {root.textContent = '';if (live.length) {- root.appendChild(heading(live.length === 1 ? 'One war is running now' : `${live.length} wars are running now`));+ root.appendChild(heading('Live now'));const list = el('ul', 'war-board-list');for (const m of live) list.appendChild(liveRow(m));root.appendChild(list);}if (waiting.length) {- root.appendChild(heading(waiting.length === 1 ? 'One community is waiting for an opponent' : `${waiting.length} communities are waiting for an opponent`));+ root.appendChild(heading('Waiting for an opponent'));+ root.appendChild(note('Queue your coin at its war portal and this is who it fights.'));const list = el('ul', 'war-board-list');for (const c of waiting) list.appendChild(queueRow(c));root.appendChild(list);@@ -181,7 +182,7 @@ function queueRow(c) {a.appendChild(avatar(c));const main = el('span', 'war-board-main');main.appendChild(text('span', 'war-board-title', label(c)));- main.appendChild(text('span', 'war-board-sub', `Queued ${ago(c.since)}: queue your coin and this is who you fight.`));+ main.appendChild(text('span', 'war-board-sub', `Queued ${ago(c.since)}`));a.appendChild(main);a.appendChild(text('span', 'war-board-tag', 'in queue'));li.appendChild(a);diff --git a/src/play/war.css b/src/play/war.cssindex 7668ddb96..bda2644b1 100644--- a/src/play/war.css+++ b/src/play/war.css@@ -493,12 +493,17 @@ button { font: inherit; color: inherit; cursor: pointer; }}.war-board-sub {+ /* Two lines, then clip. A single nowrap line cut a sentence mid-word at every+ width, because the card is 420px at its widest and the phone case is the+ one that matters. */+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ line-clamp: 2;overflow: hidden;color: var(--war-muted);font-size: 11.5px;line-height: 1.4;- text-overflow: ellipsis;- white-space: nowrap;}.war-board-tag {diff --git a/tests/war-board.test.js b/tests/war-board.test.jsindex b35ac3eba..5252b27da 100644--- a/tests/war-board.test.js+++ b/tests/war-board.test.js@@ -90,7 +90,7 @@ describe('the war room', () => {});await mount({});- expect(textOf()).toContain('One war is running now');+ expect(textOf()).toContain('Live now');expect(textOf()).toContain('$THREE 7 - 4 $SYN');expect(textOf()).toContain('5 fighters on the field');@@ -111,8 +111,8 @@ describe('the war room', () => {});await mount({});- expect(textOf()).toContain('One community is waiting for an opponent');- expect(textOf()).toContain('2m ago');+ expect(textOf()).toContain('Waiting for an opponent');+ expect(textOf()).toContain('Queued 2m ago');expect(rows()[0].getAttribute('href')).toContain(`coin=${RIVAL_MINT}`);});