Skip to content

feat: add note search to sidebar#13

Merged
j4rviscmd merged 2 commits intomainfrom
feat/sidebar-search
Mar 22, 2026
Merged

feat: add note search to sidebar#13
j4rviscmd merged 2 commits intomainfrom
feat/sidebar-search

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Replace the "Scripta" title with a full-width search input in the sidebar header
  • Filter notes by title in real-time with a 300 ms debounce
  • Preserve the timeline group layout (Today / Yesterday / Previous 7 Days / Older) while filtering
  • Display an empty state with search term when no notes match

Changes

File Description
src/features/sidebar/hooks/useDebounce.ts New generic debounce hook
src/features/sidebar/ui/NoteSidebar.tsx Search input, title filtering, empty state, extracted renderSidebarBody
src/features/sidebar/index.ts Re-export useDebounce via public API

Test plan

  • Verify search input appears in sidebar header with Search icon and Plus button
  • Type a query and confirm notes are filtered by title instantly
  • Verify timeline groups are preserved during filtering
  • Clear search with X button and confirm all notes reappear
  • Verify empty state shows when no notes match the query
  • Verify delete and context menu still work correctly

🤖 Generated with Claude Code

j4rviscmd and others added 2 commits March 22, 2026 21:22
Replace the "Scripta" title with a full-width search input in the
sidebar header. Notes are filtered by title in real-time with a
300 ms debounce while preserving the timeline group layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 22, 2026
@j4rviscmd j4rviscmd merged commit 7de64fe into main Mar 22, 2026
@j4rviscmd j4rviscmd deleted the feat/sidebar-search branch March 22, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant