feat(ui): add "Export all" and "Import all" buttons for moving hosts
CI / Typecheck, test, feed (push) Successful in 13s
CI / Build site (push) Successful in 8s
CI / Container image (push) Successful in 31s

This commit is contained in:
Lucas Winther committed 2026-09-17 10:20:07 +02:00
1 parent b36047d218
commit b73c253de2
4 files changed
+111 -82

No files matched your search

+14
View File
@@ -49,6 +49,8 @@ function render(prefs: Prefs, ignoredCount = 0): string {
ignoredCount={ignoredCount}
onExport={() => {}}
onImport={() => {}}
onExportAll={() => {}}
onImportAll={() => {}}
own={{
games: {},
events: {},
@@ -287,3 +289,15 @@ describe("the chores checkbox reports its own pref", () => {
expect(off).toBe(on - 1);
});
});
describe("Controls: backup and export actions", () => {
test("renders all four export and import buttons", () => {
const markup = render(PREFS);
expect(markup).toContain("Export</button>");
expect(markup).toContain("Import<input");
expect(markup).toContain("Export all</button>");
expect(markup).toContain("Import all<input");
expect(markup).toContain("when moving hosts");
});
});