[PR #1505] [MERGED] feat: add user customisable default archive display behaviour #1846

Closed
opened 2026-03-02 11:59:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1505
Author: @xuatz
Created: 5/31/2025
Status: Merged
Merged: 6/1/2025
Merged by: @MohamedBassem

Base: mainHead: feat/hide-archived-content


📝 Commits (6)

📊 Changes

19 files changed (+2226 additions, -24 deletions)

View changed files

📝 apps/web/app/dashboard/lists/[listId]/page.tsx (+14 -1)
📝 apps/web/app/dashboard/tags/[tagId]/page.tsx (+14 -1)
📝 apps/web/app/layout.tsx (+12 -9)
📝 apps/web/components/dashboard/lists/ListOptions.tsx (+19 -1)
📝 apps/web/components/dashboard/tags/TagOptions.tsx (+12 -2)
📝 apps/web/components/settings/UserOptions.tsx (+49 -3)
apps/web/components/utils/useShowArchived.tsx (+24 -0)
📝 apps/web/lib/i18n/locales/en/translation.json (+11 -3)
📝 apps/web/lib/userSettings.tsx (+1 -0)
📝 apps/web/package.json (+1 -0)
📝 docs/docs/07-Development/03-database.md (+2 -3)
packages/db/drizzle/0050_add_user_settings_archive_display_behaviour.sql (+1 -0)
packages/db/drizzle/meta/0050_snapshot.json (+2021 -0)
📝 packages/db/drizzle/meta/_journal.json (+8 -1)
📝 packages/db/schema.ts (+3 -0)
📝 packages/shared/types/users.ts (+2 -0)
📝 packages/trpc/routers/users.test.ts (+2 -0)
📝 packages/trpc/routers/users.ts (+2 -0)
📝 pnpm-lock.yaml (+28 -0)

📄 Description

Summary

  • added new global user setting Archive Display Behaviour
    • defaults to existing behaviour; show archived in tag/list
  • update tags and list query to conditionally hide archived bookmarks
  • add ?includeArchived=true|false to support ephemeral override
    • toggleable via one of the action in the ••• menu

Possible Further Improvements

  • show a badge showing how many bookmarks are hidden
  • show a pill in the ••• menu or in the search bar to let the users know that a filter is applied

Screenshots

image

image

image

fixes #697


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/1505 **Author:** [@xuatz](https://github.com/xuatz) **Created:** 5/31/2025 **Status:** ✅ Merged **Merged:** 6/1/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `feat/hide-archived-content` --- ### 📝 Commits (6) - [`5a64a36`](https://github.com/karakeep-app/karakeep/commit/5a64a36db926ac3c6081be7b0fe3b3e94e84ce05) fix typo - [`ddea05f`](https://github.com/karakeep-app/karakeep/commit/ddea05feb49a369085e7607732698e4dba49cf82) implementation - [`aa5acba`](https://github.com/karakeep-app/karakeep/commit/aa5acba734430f0b1d563247f805ed99022c33ce) bug fix and refactoring - [`2010eeb`](https://github.com/karakeep-app/karakeep/commit/2010eebf998545ce7cbb9be6e8603b4664fe05e9) Use nuqs for searchParam management - [`99a8f9b`](https://github.com/karakeep-app/karakeep/commit/99a8f9bfbb91fac552bfea6977c6cc2f3c45e004) remove the todo about the tests - [`602a74d`](https://github.com/karakeep-app/karakeep/commit/602a74d9cd1aed95e892aeda47239110f46a762f) fix tests ### 📊 Changes **19 files changed** (+2226 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/app/dashboard/lists/[listId]/page.tsx` (+14 -1) 📝 `apps/web/app/dashboard/tags/[tagId]/page.tsx` (+14 -1) 📝 `apps/web/app/layout.tsx` (+12 -9) 📝 `apps/web/components/dashboard/lists/ListOptions.tsx` (+19 -1) 📝 `apps/web/components/dashboard/tags/TagOptions.tsx` (+12 -2) 📝 `apps/web/components/settings/UserOptions.tsx` (+49 -3) ➕ `apps/web/components/utils/useShowArchived.tsx` (+24 -0) 📝 `apps/web/lib/i18n/locales/en/translation.json` (+11 -3) 📝 `apps/web/lib/userSettings.tsx` (+1 -0) 📝 `apps/web/package.json` (+1 -0) 📝 `docs/docs/07-Development/03-database.md` (+2 -3) ➕ `packages/db/drizzle/0050_add_user_settings_archive_display_behaviour.sql` (+1 -0) ➕ `packages/db/drizzle/meta/0050_snapshot.json` (+2021 -0) 📝 `packages/db/drizzle/meta/_journal.json` (+8 -1) 📝 `packages/db/schema.ts` (+3 -0) 📝 `packages/shared/types/users.ts` (+2 -0) 📝 `packages/trpc/routers/users.test.ts` (+2 -0) 📝 `packages/trpc/routers/users.ts` (+2 -0) 📝 `pnpm-lock.yaml` (+28 -0) </details> ### 📄 Description ## Summary * added new global user setting `Archive Display Behaviour` * defaults to existing behaviour; show archived in tag/list * update tags and list `query` to conditionally hide archived bookmarks * add ?includeArchived=true|false to support ephemeral override * toggleable via one of the action in the `•••` menu ## Possible Further Improvements * show a badge showing how many bookmarks are hidden * show a pill in the `•••` menu or in the search bar to let the users know that a filter is applied ## Screenshots ![image](https://github.com/user-attachments/assets/a9e22658-5f03-46f9-b847-562f604a107a) ![image](https://github.com/user-attachments/assets/a810c234-935d-449d-ba9a-0689b948fc10) ![image](https://github.com/user-attachments/assets/227ca497-14b6-4007-b3a0-60d842b4f341) fixes #697 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:59:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1846
No description provided.