Skip to content

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.

feat(accessibility): enhance ARIA attributes for improved screen reader support in multiple tabs

fudjia89c530de286c
diff --git a/src/agent-wallet-hub/tabs/autopilot.js b/src/agent-wallet-hub/tabs/autopilot.js
index 62b27e9e5..cbbe488cc 100644
--- a/src/agent-wallet-hub/tabs/autopilot.js
+++ b/src/agent-wallet-hub/tabs/autopilot.js
@@ -383,7 +383,7 @@ registerWalletTab({
const rows = (res.results || []).map((r) => {
const tone = STATUS_TONE[r.last_status] || 'muted';
const explorer = r.explorer || (r.signature ? explorerTxUrl(r.signature, ctx.getNetwork()) : null);
- return `<li class="ap-rule"><span class="ic">${KIND_ICON[r.kind] || '•'}</span><div class="body"><div class="ttl">${esc(r.label)}</div><div class="note">${esc(r.last_note || r.last_status || '')}${explorer ? ` · <a href="${esc(explorer)}" target="_blank" rel="noopener">view tx ↗</a>` : ''}</div></div><div class="ctl"><span class="ap-chip ${tone}">${esc((r.last_status || '').replace('_', ' '))}</span></div></li>`;
+ return `<li class="ap-rule"><span class="ic" aria-hidden="true">${KIND_ICON[r.kind] || '•'}</span><div class="body"><div class="ttl">${esc(r.label)}</div><div class="note">${esc(r.last_note || r.last_status || '')}${explorer ? ` · <a href="${esc(explorer)}" target="_blank" rel="noopener">view tx ↗</a>` : ''}</div></div><div class="ctl"><span class="ap-chip ${tone}">${esc((r.last_status || '').replace('_', ' '))}</span></div></li>`;
}).join('');
return `<div style="margin-top:var(--space-md,14px)"><p class="sub" style="margin:0 0 8px">Last run</p><ul class="ap-rules">${rows}</ul></div>`;
}
diff --git a/src/agent-wallet-hub/tabs/portfolio.js b/src/agent-wallet-hub/tabs/portfolio.js
index 63b8ff549..24a05ce29 100644
--- a/src/agent-wallet-hub/tabs/portfolio.js
+++ b/src/agent-wallet-hub/tabs/portfolio.js
@@ -383,8 +383,8 @@ registerWalletTab({
<div style="overflow-x:auto;">
<table class="awh-port-table">
<thead><tr>
- <th>Asset</th><th class="col-amt">Amount</th><th>Value</th>
- <th class="col-basis">Cost basis</th><th>Unrealized</th><th></th>
+ <th scope="col">Asset</th><th scope="col" class="col-amt">Amount</th><th scope="col">Value</th>
+ <th scope="col" class="col-basis">Cost basis</th><th scope="col">Unrealized</th><th scope="col"><span class="awh-sr-only">Actions</span></th>
</tr></thead>
<tbody>${body}</tbody>
</table>
diff --git a/src/agent-wallet-hub/tabs/snipe.js b/src/agent-wallet-hub/tabs/snipe.js
index 044664d04..25be04af9 100644
--- a/src/agent-wallet-hub/tabs/snipe.js
+++ b/src/agent-wallet-hub/tabs/snipe.js
@@ -239,7 +239,7 @@ registerWalletTab({
return `<div class="sb-card sb-hero">
<h2>Describe a snipe strategy</h2>
<p class="sub">Write it in plain English. We compile it into a validated config — clamped to this agent's spend guards — then backtest it against three.ws's own real launch history before you risk a lamport.</p>
- <textarea class="sb-ta" id="sb-src" placeholder="${esc(EXAMPLES[0])}" ${busy ? 'disabled' : ''}>${esc(state.source)}</textarea>
+ <textarea class="sb-ta" id="sb-src" aria-label="Describe your snipe strategy in plain English" placeholder="${esc(EXAMPLES[0])}" ${busy ? 'disabled' : ''}>${esc(state.source)}</textarea>
<div class="sb-egs">${EXAMPLES.map((e, i) => `<button class="sb-eg" data-eg="${i}">${esc(e.length > 60 ? e.slice(0, 58) + '…' : e)}</button>`).join('')}</div>
<div class="sb-actions">
<button class="sb-btn primary" id="sb-compile" ${busy ? 'disabled' : ''}>${busy ? '<span class="sb-spin"></span>Compiling…' : (state.compiled ? 'Re-compile' : 'Compile strategy')}</button>
diff --git a/src/agent-wallet-hub/tabs/withdraw.js b/src/agent-wallet-hub/tabs/withdraw.js
index 2aa664bce..1f5f99b1b 100644
--- a/src/agent-wallet-hub/tabs/withdraw.js
+++ b/src/agent-wallet-hub/tabs/withdraw.js
@@ -526,7 +526,7 @@ registerWalletTab({
<button class="awh-btn" id="awh-allow-btn" type="button">Add</button>
</div>
</div>
- <div class="awh-err" id="awh-lim-err" hidden></div>
+ <div class="awh-err" id="awh-lim-err" role="alert" hidden></div>
<button class="awh-btn awh-btn--primary" id="awh-lim-save" type="button" style="width:100%;">Save limits</button>
</div>`;
}