[PR #1738] [CLOSED] feat: Add bookmarks/tags counter to sidebar and search results (#1418) #1892

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

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1738
Author: @rodsnts
Created: 7/15/2025
Status: Closed

Base: mainHead: feat/item-search-counter-1418


📝 Commits (2)

  • 096cb44 feat: Add bookmarks/tags counter to sidebar and search results
  • 17c9283 feat: Add bookmarks/tags counter to sidebar and search results

📊 Changes

11 files changed (+178 additions, -21 deletions)

View changed files

📝 apps/web/app/dashboard/layout.tsx (+7 -0)
📝 apps/web/app/dashboard/search/page.tsx (+17 -6)
📝 apps/web/components/shared/sidebar/Sidebar.tsx (+1 -0)
apps/web/components/shared/sidebar/SidebarItemCount.tsx (+87 -0)
📝 apps/web/components/shared/sidebar/TSidebarItem.ts (+1 -0)
📝 apps/web/package.json (+1 -0)
📝 package.json (+1 -0)
📝 packages/shared-react/hooks/bookmarks.ts (+5 -0)
📝 packages/shared/types/bookmarks.ts (+6 -0)
📝 packages/trpc/routers/bookmarks.ts (+4 -8)
📝 pnpm-lock.yaml (+48 -7)

📄 Description

This PR implements the requested feature to display:

  • Total item counts in the sidebar next to each navigation item (Home, Tags, Highlights, Archive)
  • Search result counts on the search page showing "X results found"
  • Added Framer motion package for number increase/decrease animations in the badges

Fixes #1418

Screenshot 2025-07-15 113719 Screenshot 2025-07-15 114228

🔄 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/1738 **Author:** [@rodsnts](https://github.com/rodsnts) **Created:** 7/15/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/item-search-counter-1418` --- ### 📝 Commits (2) - [`096cb44`](https://github.com/karakeep-app/karakeep/commit/096cb4428f6ec62aa7afa7cc9633a7b5e0a11861) feat: Add bookmarks/tags counter to sidebar and search results - [`17c9283`](https://github.com/karakeep-app/karakeep/commit/17c928300fa58666e500da1ece4c5fd10c823b31) feat: Add bookmarks/tags counter to sidebar and search results ### 📊 Changes **11 files changed** (+178 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/app/dashboard/layout.tsx` (+7 -0) 📝 `apps/web/app/dashboard/search/page.tsx` (+17 -6) 📝 `apps/web/components/shared/sidebar/Sidebar.tsx` (+1 -0) ➕ `apps/web/components/shared/sidebar/SidebarItemCount.tsx` (+87 -0) 📝 `apps/web/components/shared/sidebar/TSidebarItem.ts` (+1 -0) 📝 `apps/web/package.json` (+1 -0) 📝 `package.json` (+1 -0) 📝 `packages/shared-react/hooks/bookmarks.ts` (+5 -0) 📝 `packages/shared/types/bookmarks.ts` (+6 -0) 📝 `packages/trpc/routers/bookmarks.ts` (+4 -8) 📝 `pnpm-lock.yaml` (+48 -7) </details> ### 📄 Description This PR implements the requested feature to display: - Total item counts in the sidebar next to each navigation item (Home, Tags, Highlights, Archive) - Search result counts on the search page showing "X results found" - Added Framer motion package for number increase/decrease animations in the badges Fixes #1418 <img width="351" height="463" alt="Screenshot 2025-07-15 113719" src="https://github.com/user-attachments/assets/dd6f084d-129e-4f5e-8e7f-4243e0155b90" /> <img width="1513" height="853" alt="Screenshot 2025-07-15 114228" src="https://github.com/user-attachments/assets/5b57fc0e-5506-427c-91d0-62c6b33c81d7" /> --- <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:38 +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#1892
No description provided.