mirror of
https://github.com/wahyd4/hey-search.git
synced 2026-08-09 05:06:23 +10:00
Backend:
- Add backend/app/history.py reading from stats.search_events table
- Add GET /api/history (paginated), DELETE /api/history (clear all),
DELETE /api/history/{id} (single entry) routes
Frontend:
- Add HistoryEntry/HistoryResponse types + getHistory/deleteHistoryEntry/
clearHistory functions to api.ts
- Add History.tsx page component: entries grouped by day (Today/Yesterday/
weekday/date), each row clickable to re-run search, category icon,
per-entry delete button, clear-all, load-more pagination
- Add Clock icon nav item in AppHeader; wire /history route in App.tsx
- Thread onShowHistory through BackgroundGallery and Bookmarks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>