Commit Graph

5 Commits

Author SHA1 Message Date
imeepos 8f00d4644a feat: implement pull-to-refresh and load more functionality in "My" page, add WebP image support 2026-01-27 17:08:11 +08:00
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
imeepos 6e85460b2e test: 为 app/auth.tsx 添加完整的测试覆盖
- 新增 app/auth.test.tsx,包含 10 个测试用例
- 测试覆盖加载状态、认证状态、未认证状态、导航行为和副作用
- 优化 Jest 配置,添加 skipLibCheck 和 useLocalSearchParams mock
- 添加必要的组件 mock(FlashList、icon、HomeSkeleton 等)
- 添加 coverage 目录到 .gitignore
- 修复 index.tsx 中多余的 key 属性
- 更新 tsconfig.json 添加 esModuleInterop 和 skipLibCheck

测试覆盖率: app/auth.tsx 达到 100%

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-19 12:41:10 +08:00
imeepos 37a4a2f807 fix: 成功对接登录接口 2026-01-13 16:25:49 +08:00
imeepos 02d0c807cd Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00