From 3afe1e21df6dcc0483e74e0db02d9d82af32ecea Mon Sep 17 00:00:00 2001 From: xuatz Date: Mon, 2 Jun 2025 04:01:26 +0900 Subject: feat: add user customisable default archive display behaviour (#1505) * fix typo * implementation * bug fix and refactoring * Use nuqs for searchParam management * remove the todo about the tests * fix tests --------- Co-authored-by: Mohamed Bassem --- packages/trpc/routers/users.test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/trpc/routers/users.test.ts') diff --git a/packages/trpc/routers/users.test.ts b/packages/trpc/routers/users.test.ts index 3d2d164d..3fd939b1 100644 --- a/packages/trpc/routers/users.test.ts +++ b/packages/trpc/routers/users.test.ts @@ -111,6 +111,7 @@ describe("User Routes", () => { // The default settings expect(settings).toEqual({ bookmarkClickAction: "open_original_link", + archiveDisplayBehaviour: "show", }); // Update settings @@ -122,6 +123,7 @@ describe("User Routes", () => { const updatedSettings = await caller.users.settings(); expect(updatedSettings).toEqual({ bookmarkClickAction: "expand_bookmark_preview", + archiveDisplayBehaviour: "show", }); // Test invalid update (e.g., empty input, if schema enforces it) -- cgit v1.2.3-70-g09d2