imeepos
|
7c50d396e9
|
fix: bug
|
2026-01-28 18:46:44 +08:00 |
imeepos
|
d6cc74ab00
|
fix: bug
|
2026-01-28 17:30:01 +08:00 |
imeepos
|
efd4aba8c1
|
fix: bug
|
2026-01-28 15:57:40 +08:00 |
imeepos
|
1080fb131c
|
fix: bug
|
2026-01-28 13:55:22 +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
|
3fd445bb6e
|
feat: implement user balance management with hooks and store
|
2026-01-26 12:57:21 +08:00 |
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 |
imeepos
|
e4b249f502
|
fix: 个人中心显示当前登录用户的真实用户名和ID
- 使用 useSession hook 获取当前登录用户信息
- 用户名从 session.user.name 或 session.user.username 获取
- 用户ID显示真实用户ID的前8位
- 添加 useEffect 监听 session 变化自动更新
修复前:显示硬编码的 "乔乔乔乔" 和 "ID 12345678"
修复后:显示当前登录用户的真实信息
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-01-23 19:28:41 +08:00 |
imeepos
|
4c01d8e9e7
|
fix: bug
|
2026-01-21 16:25:26 +08:00 |
imeepos
|
4270973652
|
refactor: 优化代码和添加类型检查脚本
- 统一 OWNER_ID 导入,从 lib/auth 导入而非环境变量
- 添加 type-checks 脚本用于 TypeScript 类型检查
- 对接 my 页面后端接口,使用 useTemplateGenerations
- 添加 MySkeleton 骨架屏组件
- 添加下拉刷新功能
- 添加空状态提示文案
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-01-16 12:34:27 +08:00 |
imeepos
|
fb719c6ea2
|
fix: 对接退出登录
|
2026-01-13 17:03:14 +08:00 |
imeepos
|
02d0c807cd
|
Initial commit: expo-popcore-app
|
2025-12-25 16:25:55 +08:00 |