memos/web/src/hooks
Steven eb541d04cc fix(web): resolve tag sidebar filtering and reactivity issues
This fixes multiple issues with the tag sidebar and activity calendar:

1. Tag disappearing bug: When filtering by a tag, the sidebar now shows all tags instead of only the selected tag
2. Activity calendar filtering: Calendar now shows full activity history instead of filtered results
3. Auto-update on memo changes: Sidebar tags and calendar now update automatically when creating/editing memos without requiring manual page refresh

Technical changes:
- Modified useFilteredMemoStats to fetch unfiltered UserStats from backend API for Home/Profile pages
- Fixed key mismatch bug in userStore where stats were stored with inconsistent keys
- Added statsStateId update in fetchUserStats to trigger reactivity
- Updated MainLayout to pass appropriate userName based on page context
- Archived/Explore pages continue to compute from cached memos (correct behavior)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 22:17:01 +08:00
..
index.ts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
useAsyncEffect.ts chore: tweak refresh button 2024-06-01 23:27:35 +08:00
useCurrentUser.ts chore: move frontend store 2025-07-07 22:44:08 +08:00
useDialog.ts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
useFilteredMemoStats.ts fix(web): resolve tag sidebar filtering and reactivity issues 2025-11-25 22:17:01 +08:00
useLoading.ts chore: add `i18n` based with `useContext` 2022-08-07 22:48:22 +08:00
useMemoFilters.ts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
useMemoSorting.ts refactor(web): unify memo stats/filters with context-aware MainLayout 2025-11-05 08:46:52 +08:00
useNavigateTo.ts feat: optimize filters sync (#4260) 2025-01-04 23:42:49 +08:00
useResponsiveWidth.ts chore: add use reponsive width 2023-11-10 11:22:32 +08:00