expo-popcore-app/hooks
imeepos a344410374 fix: change type parameter from array to single value for API compatibility
SDK API only accepts single MessageType value, not array. Updated to use client-side filtering for Tab-based message type filtering (all/notice/other) instead of server-side filtering.

Changes:
- hooks/use-messages.ts: Changed type parameter from array to single value
- app/(tabs)/message.tsx: Replaced getMessageTypeByTab with filterMessagesByTab for client-side filtering
- Removed useEffect dependency on activeTab to prevent unnecessary refetches

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 15:15:47 +08:00
..
CLAUDE.md Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
REVIEW.md docs: add hooks review and finalize task plan 2026-01-21 12:22:02 +08:00
index.ts feat: integrate UI components into Search pages with pagination and loading 2026-01-21 12:20:11 +08:00
use-activates.ts refactor: 优化代码和添加类型检查脚本 2026-01-16 12:34:27 +08:00
use-announcement-actions.test.ts feat: add announcement action hooks with TDD 2026-01-21 14:53:03 +08:00
use-announcement-actions.ts feat: add announcement action hooks with TDD 2026-01-21 14:53:03 +08:00
use-announcement-unread-count.test.ts feat: add announcement action hooks with TDD 2026-01-21 14:53:03 +08:00
use-announcement-unread-count.ts feat: add announcement action hooks with TDD 2026-01-21 14:53:03 +08:00
use-announcements.test.ts feat: add use-announcements hook with TDD 2026-01-21 14:44:16 +08:00
use-announcements.ts feat: add use-announcements hook with TDD 2026-01-21 14:44:16 +08:00
use-categories.test.ts fix: 修复 use-categories 测试中的 TypeScript 类型错误 2026-01-19 11:45:25 +08:00
use-categories.ts fix: 修复 Jest 测试配置和 useCategories hook 实现 2026-01-19 11:46:51 +08:00
use-color-scheme.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-color-scheme.web.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-debounce.ts feat: integrate UI components into Search pages with pagination and loading 2026-01-21 12:20:11 +08:00
use-error.ts feat: 对接 templateDetail 页面后端接口 2026-01-16 11:56:38 +08:00
use-message-actions.test.ts feat: add message action hooks with TDD 2026-01-21 14:48:27 +08:00
use-message-actions.ts feat: add message action hooks with TDD 2026-01-21 14:48:27 +08:00
use-message-unread-count.test.ts feat: add message action hooks with TDD 2026-01-21 14:48:27 +08:00
use-message-unread-count.ts feat: add message action hooks with TDD 2026-01-21 14:48:27 +08:00
use-messages.test.ts refactor: migrate use-messages hook to MessageController with TDD 2026-01-21 14:41:47 +08:00
use-messages.ts fix: change type parameter from array to single value for API compatibility 2026-01-21 15:15:47 +08:00
use-resource.tsx Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
use-search-history.ts fix: bug 2026-01-16 15:16:49 +08:00
use-tags.ts fix: 修复所有 TypeScript 类型错误 2026-01-16 14:14:05 +08:00
use-template-actions.test.ts feat: add retry functionality to use-template-actions hook 2026-01-21 12:00:07 +08:00
use-template-actions.ts feat: add retry functionality to use-template-actions hook 2026-01-21 12:00:07 +08:00
use-template-detail.test.ts test: add comprehensive tests for use-template-detail hook 2026-01-21 11:57:17 +08:00
use-template-detail.ts feat: 对接 templateDetail 页面后端接口 2026-01-16 11:56:38 +08:00
use-template-generations.ts refactor: 优化代码和添加类型检查脚本 2026-01-16 12:34:27 +08:00
use-templates.test.ts test: verify use-templates hook has complete functionality 2026-01-21 11:54:34 +08:00
use-templates.ts fix: bug 2026-01-16 15:16:49 +08:00
use-theme-color.ts Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
useWorksList.test.ts feat: integrate UI components into Works List with pagination and refresh 2026-01-21 12:15:53 +08:00
useWorksList.ts feat: integrate UI components into Works List with pagination and refresh 2026-01-21 12:15:53 +08:00