191 Commits

Author SHA1 Message Date
peanut 04b184a3c1 fix:编辑资料页无昵称时显示未设置昵称 2026-06-23 22:17:45 +08:00
peanut 0eaf44ed93 fix:编辑资料页昵称未填时增加 Toast 提示 2026-06-23 21:47:32 +08:00
peanut 2c69da46e5 fix:修复个人档案性别字段保存后在我的页面不显示的问题(中英文格式兼容) 2026-06-15 12:13:49 +08:00
peanut 42543ff8a6 feat:结果页聊天发送消息时显示与心愿生成一致的动态加载效果 2026-06-15 12:01:12 +08:00
peanut c744d92f38 feat:MineView 个人档案调整为两行四列,移除个人中心和 MBTI 2026-06-15 11:42:10 +08:00
peanut 04cdd5585e feat:RecordView 移除 profile-card 相关样式 2026-06-15 10:53:57 +08:00
peanut a62257b21a feat:RecordView 移除无用的 computed 和方法 2026-06-15 10:52:22 +08:00
peanut 816e166e08 feat:RecordView 移除 profile-card 模板 2026-06-15 10:51:30 +08:00
peanut b9bacb36e7 feat:MineView 新增个人档案区块样式 2026-06-15 10:50:48 +08:00
peanut ffa77400c9 feat:MineView 新增个人档案区块模板 2026-06-15 10:50:04 +08:00
peanut d1e223ad23 feat:MineView 新增个人档案字段 computed 属性 2026-06-15 10:49:11 +08:00
peanut 74a2c15b6b feat: 完善人生轨迹详情页功能及微信小程序登录优化 2026-06-15 10:17:30 +08:00
peanut cb3c5e6724 feat: 优化人生轨迹详情页布局与顶部安全区
- 合并事件标题卡与描述卡为统一的 event-content-card
- 移除顶部悬浮导航,避免与小程序原生胶囊按钮重叠
- 添加顶部安全区占位(参考 profile/index.vue 等页面)
- 调整按钮布局:收藏、分析、分享、编辑、收起放入内容区域
- 底部只保留居中的'聊聊'主按钮
- 使用 Markdown 组件渲染事件描述
- 添加 scrollToAnalysis 滚动定位功能
- 更新 AGENTS.md 添加操作系统命令执行规则
- 更新 CLAUDE.md 添加操作系统命令执行规则
2026-06-10 20:45:01 +08:00
peanut 00a93b66d8 fix: remove hardcoded defaults from profile edit page 2026-06-04 08:11:40 +08:00
peanut e2a02e0d5f fix: remove hardcoded defaults and sampleEvents from RecordView 2026-06-04 08:10:34 +08:00
peanut 675311a1be feat: extend registrationData with city/industry/company/personalityTags/birthday 2026-06-04 08:09:09 +08:00
peanut d4088069dd feat: add city/industry/company/personalityTags/birthday to userProfile transforms 2026-06-04 08:07:24 +08:00
peanut 10653edc52 fix(mine): replace hardcoded user info and stats with dynamic store data 2026-06-04 00:40:11 +08:00
peanut 1eb9ef67a4 fix(mine): replace static avatar with dynamic dicebear image 2026-06-04 00:39:42 +08:00
peanut 8fce9ff87a fix(splash): remove profile check on session restore, always go to script page 2026-06-04 00:22:48 +08:00
peanut 0669af0203 fix(login): remove profile check, always redirect to script page after login 2026-06-04 00:22:44 +08:00
peanut 094953f1c3 feat: 小程序页面优化和新增剧本库功能 2026-05-30 20:53:18 +08:00
peanut d09f600751 feat: 小程序剧本、个人信息页、AI 运行时及 TTS 服务优化 2026-05-26 20:50:20 +08:00
peanut 812e126b2b refactor: 移除爽文页面我的剧本按钮和人生素材画像容器
移除我的剧本按钮(模板、样式、方法),用户可通过底部我的Tab查看剧本
移除人生素材画像容器组件(模板、样式、JS逻辑)
保留导入社交数据按钮及完整流程
useSocialInsights 改为默认 true,后端自动判断是否有可用画像
清理未使用的 socialImport 导入、confirmedInsights、loadConfirmedInsights 等

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 21:28:29 +08:00
peanut fc14051073 feat: 小程序菜单按钮安全区域适配工具
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:39:28 +08:00
peanut 6e5a379bef docs: 补充 AI 打字机输出、小程序灵感卡片、脚本主页布局等设计文档和计划
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:39:26 +08:00
peanut 64476eee6d feat: AI 打字机流式输出、小程序脚本主页布局及灵感卡片优化
- life-script: 新增 aiRuntime 打字机流式服务,PathView/ScriptView/TimelineView 接入打字机效果
- mini-program: ScriptView 重构为打字机输出 + 卡片式灵感列表,主页布局优化
- web: aiRuntime 服务新增流式输出支持
- chat store: 消息状态管理和打字机流式渲染支持

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:35:33 +08:00
peanut 9838e7626b feat: 分析模块、接口管理及其他功能优化
- 后端: WebMvcConfig/拦截器/AnalyticsService/Mapper/测试优化,新增 Knife4jConfig、AnalyticsDictionary、数据库迁移脚本
- 前端: 分析仪表盘 UI 优化、接口管理列表及详情测试面板
- 小程序: analytics 服务优化、request 增强
- 文档: 分析模块中文标签设计文档、品牌重命名设计文档
- 部署: conf 配置优化、deploy.py 脚本更新

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:52:39 +08:00
peanut 89fc42819d feat: AI 场景路由、ASR 服务及前后端全链路同步
- 新增 AI 场景路由控制器和管理接口
- 新增 ASR 语音识别服务及前后端集成
- 同步 AI Runtime 客户端到 Web/小程序/Life-Script
- 完善 AI 配置测试修复和管理后台路由配置
- 新增数据库迁移脚本

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 13:25:21 +08:00
peanut 8f8434ec14 fix: 小程序 DEV 环境回退地址从 localhost 改为生产域名
env.js 中 DEV 配置的 fallback 地址为 localhost:19089,当 Vite 环境变量
未正确注入时(UniApp 小程序编译常见问题),会回退到 localhost 导致
微信开发者工具请求失败。改为指向生产域名 lifescript.happylifeos.com。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 20:07:19 +08:00
peanut ee5a6aba5d feat: 小程序脚本首页重构 + 社交数据导入 + TTS 播放优化
- 后端:新增社交数据导入/审批/洞察生成 API(SocialContent/SocialInsight)
- 后端:优化脚本上下文服务,TTS 服务增强
- 小程序:重构脚本首页布局,新增社交导入页面
- 小程序:新增 useTtsPlayer composable,移除旧 ScriptAudioPlayer 组件
- 小程序:新增社交导入服务,优化请求服务
- SQL:新增社交数据导入建表脚本
- 文档:补充设计文档和实施计划

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 07:18:02 +08:00
peanut 6b426c2b68 feat: add script tts backend 2026-05-17 16:36:06 +08:00
peanut 1016111d19 feat: add frontend analytics tracking 2026-05-17 10:18:56 +08:00
peanut 6542912d93 feat: add script tts player UI 2026-05-17 10:10:01 +08:00
peanut eb83384623 feat: 优化小程序人生事件详情、表单页及人生剧本页面样式
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 22:52:26 +08:00
peanut f62ae880be feat: 优化小程序人生事件详情页、表单页和记录视图页样式
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 00:30:37 +08:00
peanut 755059807a feat: 优化管理后台页面UI、修复TS编译错误、新增人生事件模块
- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示
- 修复 3 处 TypeScript TS6133 编译错误,恢复构建
- 新增管理员修改密码和重置密码功能
- 优化小程序多个页面样式和交互
- 人生事件模块完善

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 23:23:09 +08:00
peanut 60c63850ee feat: 修复 Redis 超时问题、固定小程序端口、新增人生事件模块及优化多个页面
- 修复 Redis 超时:添加 commons-pool2 依赖,启用 Lettuce 连接池,超时提升至 15s
- 固定 mini-program H5 端口为 5175,避免与 web 项目端口冲突
- 新增人生事件(life-event)模块:表单和详情页面
- 新增 EpicScript 灵感接口(Controller/Service/DTO)
- 优化登录、引导、主页、记录、剧本详情等多个页面
- 优化服务管理脚本和 Nginx 配置

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 11:38:35 +08:00
peanut 0b795cc340 feat(mini-program): 优化登录页视觉设计,提升用户体验 2026-05-01 22:58:58 +08:00
peanut 2ed66d8500 fix(mini-program): 修复 WebSocket URL 配置,通过 Nginx 代理访问
将开发环境 WebSocket URL 从直接连接后端端口 19089 改为通过
Nginx 代理的 wss://lifescript.happylifeos.com/ws 路径。

原因:后端 19089 端口是 HTTP,不支持 WSS 连接。小程序通过
Nginx 的 /ws 代理路径访问,由 Nginx 处理 SSL 终止和 WebSocket
升级,再转发到后端 19089 端口。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 19:55:20 +08:00
peanut f4f8aab22a chore: 批量提交未提交的更改 2026-04-08 22:40:21 +08:00
peanut 59503d05a5 fix(mini-program): 开发环境配置改回 IP 地址访问 2026-04-08 22:14:48 +08:00
peanut a2257611e1 fix(mini-program): 开发环境配置改为域名访问 (HTTPS/WSS) 2026-04-08 21:25:28 +08:00
peanut 817ea987f1 fix(mini-program): 调整剧本详情页容器 padding 位置
修改:
- 移除 .detail-content 的 padding
- .content-container 添加 padding: 24rpx 32rpx 32rpx 和 box-sizing: border-box

原因:
- scroll-view 在小程序中不适合直接承担内容留白
- 由内部容器控制 padding 更稳定

效果:
- 卡片与屏幕边缘有适中间距
- 布局更稳定
2026-04-08 20:58:40 +08:00
peanut e1097cbbee fix(mini-program): 修复 logo.svg 500 错误和编译问题
问题:
- SVG 文件使用 filter 和 style 属性导致小程序编译错误
- 错误信息:ReferenceError: $1 is not defined

修复:
1. 简化 SVG 文件,移除 filter 和 style 属性
   - 移除 filter (feGaussianBlur, feMerge)
   - 移除 style 属性,改用直接属性 (stop-color 替代 style="stop-color:xxx")
   - 移除 filter="url(#glow)" 引用

2. 恢复 vite.config.js 的 publicDir 配置
   - publicDir 指向 mini-program/static 目录
   - SVG 文件编译到输出目录根位置

3. 更新图片引用路径
   - splash/index.vue: /static/logo.svg
   - main/index.vue: /static/logo.svg

效果:
- logo.svg 正确编译到 unpackage/dist/dev/mp-weixin/logo.svg
- 不再出现 $1 is not defined 错误
- 小程序正常加载 logo 图片
2026-04-08 19:12:04 +08:00
peanut 8dab3f4fa6 fix(mini-program): 修复剧本详情页容器边距与创造未来页面一致
问题根源:
- 详情页卡片没有独立的 margin,依赖父容器 padding
- 创造未来页面使用 gap 管理卡片间距,详情页没有

修复方案 (方案 B):
- .detail-content padding 从 24rpx 48rpx 48rpx → 24rpx 24rpx 32rpx
- .content-container gap 从 32rpx → 24rpx

效果:
- 卡片与屏幕边缘有适中间距 (24rpx)
- 卡片之间有统一间距 (24rpx)
- 与创造未来页面的样式保持一致
2026-04-08 07:58:26 +08:00
peanut becbc6b353 fix(mini-program): 调整剧本详情页卡片边距
修改:
- .detail-content 左右 padding 从 40rpx → 48rpx
- .detail-content 底部 padding 从 40rpx → 48rpx

效果:
- 卡片与屏幕边缘有适中间距
- 圆角边框完整可见
- 布局更有呼吸感
2026-04-07 23:53:11 +08:00
peanut fbf76611d1 fix(mini-program): 修复 logo.svg 500 错误
问题:
- 小程序请求 /static/logo.svg 返回 500 错误
- logo.svg 文件在 src/static/ 目录,但编译后未被复制到输出目录

修复:
1. 在 mini-program/ 根目录创建 static/ 目录
2. 将 logo.svg 复制到 mini-program/static/logo.svg
3. 修改 vite.config.js 添加 publicDir 配置,让 Vite 复制 static 目录
4. 更新图片路径:/static/logo.svg → /logo.svg
   - pages/splash/index.vue
   - pages/main/index.vue

效果:
- logo.svg 正确编译到 unpackage/dist/dev/mp-weixin/logo.svg
- 小程序正常加载 logo 图片
- 不再出现 500 错误
2026-04-07 23:39:12 +08:00
peanut b6bf97bc36 fix(mini-program): 修复剧本详情页卡片边距与屏幕重叠问题
问题:
- 信息卡片和正文卡片的圆角边框紧贴屏幕边缘
- 容器圆角被截断,视觉显示不完整
- 底部边距不足,卡片圆角显示不完整

修复:
- .detail-content 左右 padding 从 32rpx 增加到 40rpx
- .detail-content 顶部 padding 从 20rpx 增加到 24rpx
- .detail-content 底部 padding 从 32rpx 增加到 40rpx
- 移除 .content-container 的 padding-bottom,由父容器统一控制

效果:
- 卡片与屏幕边缘有足够间距(40rpx)
- 卡片圆角(40rpx)能完整展示
- 整体布局更加美观协调
2026-04-07 23:04:34 +08:00
peanut 21c07ba450 fix(mini-program): 修复剧本详情页内容超出屏幕和间距问题
修复内容:
1. 信息卡片右侧超出屏幕:
   - .info-value 添加 flex:1 + overflow: hidden + word-break: break-all
   - 长文本自动换行,不会超出屏幕
   - .info-label 添加 flex-shrink: 0 防止被压缩
   - .info-row 添加 min-width: 0 防止 flex 子项溢出

2. 卡片顶部与 header 无间距:
   - .detail-content padding 顶部从 0 改为 20rpx

3. 正文区域右侧超出:
   - .full-content 添加 overflow: hidden + word-break: break-all
   - Markdown 内容自动换行
2026-04-07 22:56:20 +08:00