Commit Graph

121 Commits

Author SHA1 Message Date
imeepos f6f28a4cb4 fix: bug 2026-02-02 18:57:05 +08:00
imeepos 95dd556ded fix: search bug 2026-02-02 15:21:59 +08:00
imeepos 59ba6a3c56 fix: type error 2026-01-29 18:49:28 +08:00
imeepos 8f33ade8df fix: type error 2026-01-29 18:46:34 +08:00
imeepos 5a4d1ac1bd fix: app 2026-01-29 18:33:03 +08:00
imeepos 5e4a9c82cd fix: bug 2026-01-29 18:16:00 +08:00
imeepos 6ca686f2c9 fix: bug 2026-01-29 16:51:13 +08:00
imeepos a087cafc99 fix: bug 2026-01-29 16:42:42 +08:00
imeepos 1ccdc23355 fix: bug 2026-01-29 16:20:01 +08:00
imeepos 7c3b3c066c fix: bug 2026-01-29 16:00:21 +08:00
imeepos 7e6de68891 fix: bug 2026-01-29 15:51:39 +08:00
imeepos 6279752f23 fix: 添加skills 2026-01-29 15:13:27 +08:00
imeepos b716198d4b fix: use isLiked/isFavorited from API data for initial state
- Get store state separately from API data
- Merge strategy: store takes priority (for optimistic updates), fallback to API data
- Use item.isLiked and item.isFavorited for initial state
- Match the implementation pattern used in home page
2026-01-28 20:19:59 +08:00
imeepos d0b8a29698 fix: bug 2026-01-28 20:18:17 +08:00
imeepos e699e5cada fix: ensure async API calls are awaited in VideoSocialButton
- Make callback handlers async and await the API calls
- Add localLoading state to prevent duplicate clicks
- Add ActivityIndicator during loading
- Fix issue where API might not be called properly
2026-01-28 20:16:57 +08:00
imeepos 0d83020926 fix: pass initial count to hooks for correct optimistic update
- Add initialLikeCount and initialFavoriteCount parameters
- Use item.likeCount/item.favoriteCount as fallback
- Fixes issue where count resets to 0 on first click
2026-01-28 20:14:45 +08:00
imeepos 458027934a fix: add optimistic updates for like/favorite actions
- Immediately update store state on user action (no delay)
- Increment/decrement count optimistically for instant feedback
- Rollback on API error
- Use server-returned count for final accuracy
- Remove local useState, only use store for state
2026-01-28 20:12:40 +08:00
imeepos 46b45872c1 fix: export templateSocialStore as callable object
- Export templateSocialStore with all methods via getState()
- Allows hooks to call store methods directly
- Fix 'setLiked is not a function' error
2026-01-28 20:10:59 +08:00
imeepos 20459ffd1d fix: improve VideoSocialButton styling
- Use vertical layout with icon above count (TikTok style)
- Show correct liked/favorited state with filled icons
- Add count formatting (1.5k, 2.8w)
- Improve button background and positioning
- Update tests for new component structure
2026-01-28 20:09:59 +08:00
imeepos e6416ee604 fix: sync store state when like/favorite actions complete
- Update templateSocialStore when like/unlike succeeds
- Update templateSocialStore when favorite/unfavorite succeeds
- Sync likeCount and favoriteCount from API response
- Ensure state consistency across video page and detail page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:23:11 +08:00
imeepos 30625bc820 feat: add double-tap to like animation
- Implement double-tap detection on video area
- Show heart animation on double-tap (similar to TikTok/Douyin)
- Toggle like/unlike on double-tap
- Add Animated and Ionicons imports
- Add tests for double-tap functionality
- Add videoPressable and heartAnimation styles

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:21:44 +08:00
imeepos d89575e150 feat: integrate social buttons in video page
- Add VideoSocialButton to VideoItem component
- Connect like/favorite actions with existing hooks
- Use Zustand store for state management
- Extend templateSocialStore to support favoriteCount
- Update tests for social button integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:16:06 +08:00
imeepos ab79a9f200 feat: add VideoSocialButton component for video page
- Create vertical social button layout similar to TikTok/Kuaishou
- Support like and favorite actions with proper state management
- Include loading state handling
- Add comprehensive tests covering all props and interactions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:11:57 +08:00
imeepos 6fc87d59de fix: bug 2026-01-28 19:05:25 +08:00
imeepos 7f84a348a7 fix: bug 2026-01-28 18:54:38 +08:00
imeepos 7c50d396e9 fix: bug 2026-01-28 18:46:44 +08:00
imeepos e478b126cd fix: bug 2026-01-28 17:38:49 +08:00
imeepos d6cc74ab00 fix: bug 2026-01-28 17:30:01 +08:00
imeepos 0399bba83f fix: bug 2026-01-28 16:09:21 +08:00
imeepos ef629713eb fix: bug 2026-01-28 16:07:20 +08:00
imeepos ffed84a90c fix: bug 2026-01-28 16:04:14 +08:00
imeepos efd4aba8c1 fix: bug 2026-01-28 15:57:40 +08:00
imeepos 7d73cfbc3e fix: bug 2026-01-28 15:26:00 +08:00
imeepos 4bf364d955 fix: bug 2026-01-28 14:53:13 +08:00
imeepos 17d0cfa54e fix: bug 2026-01-28 14:49:56 +08:00
imeepos ea53d8d70e fix: bug 2026-01-28 14:46:12 +08:00
imeepos ca63868282 fix: bug 2026-01-28 14:39:46 +08:00
imeepos b46ad76161 fix: bug 2026-01-28 14:15:33 +08:00
imeepos 30fa29b0ac fix: bug 2026-01-28 14:08:56 +08:00
imeepos 1080fb131c fix: bug 2026-01-28 13:55:22 +08:00
imeepos c5641c1d3c fix: 修复表单相册上传失败bug,优化FormData构造方式
- 移除uploadFile.ts中不必要的Platform判断逻辑
- 保持原始URI不做修改,让React Native底层处理平台差异
- 添加uploadFile单元测试,覆盖主要上传场景
- 简化代码结构,提高可维护性

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-28 13:46:35 +08:00
imeepos cd1a4f6841 feat: update RefreshControl mocks in tests and improve error handling in useChangePassword hook 2026-01-27 17:18:54 +08:00
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 c78ad352ba feat: update TAB_BAR_HEIGHT to improve tab layout and add channel definitions in eas.json 2026-01-27 15:00:06 +08:00
imeepos f323d2bea7 feat: remove API integration development plan and report files
- Deleted the `api_integration_development_plan.md` and `api_integration_report.md` files as they are no longer needed.
- Removed `findings.md`, `message-adaptation-plan.md`, `progress.md`, `prompt.md`, and `task_plan.md` files to streamline project documentation.
- Ensured all related code and references are updated accordingly.
2026-01-27 14:19:38 +08:00
imeepos a0beb146d7 feat: update runtimeVersion to use APP_VERSION for better version management 2026-01-27 12:04:27 +08:00
imeepos 3bc113bf9c feat: implement app update checks and add app configuration file 2026-01-27 11:52:59 +08:00
imeepos 533b58ccf4 feat: update TabLayout to improve tab bar styling and handle safe area insets 2026-01-26 18:55:07 +08:00
imeepos 65b61ce05e feat: enhance TabLayout and HomeScreen with safe area insets and optimized refresh handling 2026-01-26 18:36:18 +08:00
imeepos 818f6e8591 feat: optimize home screen data loading with pagination and refresh functionality 2026-01-26 17:33:21 +08:00