feat: history/favorites panel, image preview, context strip

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 11:50:53 +01:00
1 parent 6360c75ff8
commit 7116af9434
9 files changed
+930 -79

No files matched your search

+12
View File
@@ -58,3 +58,15 @@ test("removeMention takes the quoted form and the bare form out", () => {
assert.equal(removeMention("see @/a/ęą.png now", "/a/ęą.png"), "see now");
assert.equal(removeMention('see @"/a b/c.png"x now', "/a b/c.png"), 'see @"/a b/c.png"x now');
});
import { formatBytes } from "../mod/ovis-composer/attachments.js";
test("formatBytes", () => {
assert.equal(formatBytes(0), "0 B");
assert.equal(formatBytes(512), "512 B");
assert.equal(formatBytes(2048), "2 KB");
assert.equal(formatBytes(1536), "1,5 KB");
assert.equal(formatBytes(5 * 1024 * 1024), "5 MB");
assert.equal(formatBytes(undefined), "");
assert.equal(formatBytes(NaN), "");
});