expo-popcore-app/app/(tabs)
imeepos bf11241d68 feat: 实现用户名和头像编辑功能
使用 Better Auth 的 updateUser API 更新用户信息,使用 SDK 的 FileController 上传头像。

## 新增功能
- 创建 useUpdateProfile hook 处理用户信息更新
- 支持选择图片上传头像(使用 expo-image-picker)
- 先上传头像到 S3,再更新用户信息

## 更新文件
- lib/auth.ts: 导出 updateUser 方法
- hooks/use-update-profile.ts: 新建更新资料 hook
- hooks/index.ts: 导出 useUpdateProfile
- components/drawer/EditProfileDrawer.tsx:
  - 添加头像选择功能(点击相机按钮)
  - 调用 updateProfile API 保存更改
  - 添加加载状态和禁用状态
  - 更新 onSave 回调参数类型
- app/(tabs)/my.tsx:
  - 传递 initialAvatar 给编辑抽屉
  - 显示用户真实头像(如有)
  - 更新 onSave 回调处理

## 功能流程
1. 点击相机按钮选择图片
2. 调用 uploadFile 上传到 S3
3. 调用 updateUser 更新用户信息
4. 保存成功后刷新 session

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-23 19:42:13 +08:00
..
__tests__ test: add unit tests for HomeScreen to ensure proper rendering 2026-01-21 15:28:18 +08:00
_layout.tsx Initial commit: expo-popcore-app 2025-12-25 16:25:55 +08:00
index.tsx fix: bug 2026-01-21 16:25:26 +08:00
message.tsx fix: bug 2026-01-21 16:25:26 +08:00
my.tsx feat: 实现用户名和头像编辑功能 2026-01-23 19:42:13 +08:00
video.test.tsx feat: integrate UI components into Video tab 2026-01-21 12:06:46 +08:00
video.tsx fix: bug 2026-01-21 16:25:26 +08:00