fix(voice): say the attachment limit is 10 KB in total

The attach menu promised up to 10 KB per file, but the attachments share
one 10 KB budget, so two 6 KB files were refused. The hint now says the
limit covers them all, in every locale.
This commit is contained in:
Sameh Khamis committed 2026-11-03 15:54:54 -08:00
1 parent 829db19f60
commit 51b561815c
14 files changed
+26 -15

No files matched your search

+11
View File
@@ -108,6 +108,17 @@ test('attachments over 10 KB together are refused', async (t) => {
]);
});
test('the attach menu states the 10 KB limit for all attachments together', async (t) => {
const { pinia, settle } = mountVoiceView(t);
const ui = createTestVoiceUi({ panel: true, pinia });
attachments(t, { ui });
ui.update('chat', { open: true });
await settle();
const hint = $('#gev-chat-attach-menu > p').textContent;
assert.match(hint, /up to 10 KB in total\./);
assert.doesNotMatch(hint, /each/);
});
test('Escape closes the attach menu and returns to the Attach button', async (t) => {
const { pinia, settle } = mountVoiceView(t);
const ui = createTestVoiceUi({ panel: true, pinia });