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.

fix(approvals): space the auto-approve venue checkboxes and update the notify tests for the approvals category and delivered counts

nirholas02843cce03df
diff --git a/pages/approvals.html b/pages/approvals.html
index d46c26554..4c45bf0cf 100644
--- a/pages/approvals.html
+++ b/pages/approvals.html
@@ -106,6 +106,7 @@
@keyframes enter{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:none;}}
.ap-head{display:flex;align-items:flex-start;gap:12px;}
.ap-head .ap-check{margin-top:3px;}
+ #ap-venues{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:6px;}
.ap-title{flex:1;min-width:0;}
.ap-summary{font-size:15px;font-weight:600;line-height:1.4;word-break:break-word;}
.ap-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--dim);margin-top:4px;}
diff --git a/tests/api/notify-in-app-gate.test.js b/tests/api/notify-in-app-gate.test.js
index cc16cb7a0..19bf78dc1 100644
--- a/tests/api/notify-in-app-gate.test.js
+++ b/tests/api/notify-in-app-gate.test.js
@@ -124,7 +124,7 @@ describe('insertNotification: a muted in_app category', () => {
const out = await insertNotification(USER, 'dm_received', { actor: 'bob' });
- expect(out).toEqual({ id: null, in_app: false });
+ expect(out).toEqual({ id: null, in_app: false, delivered: { push: 0 } });
expect(inboxInserts()).toHaveLength(0);
expect(sendPushToUser).not.toHaveBeenCalled();
expect(funnelEvents()).toEqual([]);
diff --git a/tests/notify-prefs.test.js b/tests/notify-prefs.test.js
index 90adf5dd8..d395966cc 100644
--- a/tests/notify-prefs.test.js
+++ b/tests/notify-prefs.test.js
@@ -18,9 +18,9 @@ import {
} from '../api/_lib/notify-prefs.js';
describe('category model', () => {
- it('exposes the nine display categories and five channels', () => {
+ it('exposes the eleven display categories and six channels', () => {
expect(CATEGORIES.map((c) => c.key)).toEqual([
- 'sales', 'purchases', 'social', 'irl', 'alerts', 'creations', 'companion', 'knock', 'mail', 'account',
+ 'sales', 'purchases', 'social', 'irl', 'alerts', 'creations', 'companion', 'knock', 'mail', 'approvals', 'account',
]);
expect(CHANNELS).toEqual(['in_app', 'push', 'email', 'telegram', 'discord', 'avatar']);
});