diff options
| author | xuatz <xzlow10@gmail.com> | 2025-06-02 04:01:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-01 20:01:26 +0100 |
| commit | 3afe1e21df6dcc0483e74e0db02d9d82af32ecea (patch) | |
| tree | 32208bf2de6fedae00aaeb4f7ca0d74a816b4764 /packages/shared | |
| parent | 8784c73c112b5b87bcf48670401e3956464ea436 (diff) | |
| download | karakeep-3afe1e21df6dcc0483e74e0db02d9d82af32ecea.tar.zst | |
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 <me@mbassem.com>
Diffstat (limited to 'packages/shared')
| -rw-r--r-- | packages/shared/types/users.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/shared/types/users.ts b/packages/shared/types/users.ts index 62b77e56..0abe13b1 100644 --- a/packages/shared/types/users.ts +++ b/packages/shared/types/users.ts @@ -45,10 +45,12 @@ export const zUserSettingsSchema = z.object({ "open_original_link", "expand_bookmark_preview", ]), + archiveDisplayBehaviour: z.enum(["show", "hide"]), }); export type ZUserSettings = z.infer<typeof zUserSettingsSchema>; export const zUpdateUserSettingsSchema = zUserSettingsSchema.partial().pick({ bookmarkClickAction: true, + archiveDisplayBehaviour: true, }); |
