feat(snippets): redesign panel to match the host list

This commit is contained in:
LukeGus committed 2026-09-28 20:13:08 -05:00
1 parent 278fc7e32a
commit 75c3542ba0
12 files changed
+1520 -613

No files matched your search

@@ -0,0 +1,26 @@
import { describe, expect, it } from "vitest";
import { readSnippetSettings } from "../../src/frontend/settings";
describe("readSnippetSettings", () => {
it("falls back to the manifest defaults", () => {
expect(readSnippetSettings({})).toEqual({
foldersCollapsed: true,
showCommands: true,
confirmExecution: false,
});
});
it("reads saved values", () => {
expect(
readSnippetSettings({
foldersCollapsed: false,
showCommands: false,
confirmExecution: true,
}),
).toEqual({
foldersCollapsed: false,
showCommands: false,
confirmExecution: true,
});
});
});