feat: expand advanced widget experiences

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-14 11:07:09 +02:00
1 parent 9437d211c8
commit c099a8eef6
119 files changed
+3624 -844

No files matched your search

@@ -0,0 +1,25 @@
import { describe, expect, test } from "vitest";
import { getNotificationDisplay } from "./display";
describe("notification display", () => {
test("advanced mode exposes logos, sources, and full bodies", () => {
expect(
getNotificationDisplay({ displayMode: "advanced", hideLogos: true, isRoomy: false, bodyLineClamp: 1 }),
).toEqual({
showLogos: true,
showSource: true,
bodyLineClamp: undefined,
});
});
test("compact mode respects presentation constraints", () => {
expect(
getNotificationDisplay({ displayMode: "compact", hideLogos: true, isRoomy: false, bodyLineClamp: 2 }),
).toEqual({
showLogos: false,
showSource: false,
bodyLineClamp: 2,
});
});
});