Commit Graph

33 Commits

Author SHA1 Message Date
803b14139f feat: 新增搜索历史与AI智能体搜索功能
- 新增搜索历史记录功能,使用 SharedPreferences + JSON 进行本地存储。
- 搜索页在无搜索结果时展示历史记录,支持点击搜索、长按删除单个记录和清空全部历史。
- 新增 "AI" 搜索标签页,用于根据关键字搜索智能体(Agent)。
- 搜索页离开时自动重置搜索状态和文本,返回后显示历史记录。
- 优化了搜索逻辑,在输入文本为空时自动隐藏搜索结果并显示历史记录。
2025-11-11 00:24:09 +08:00
dba0ffd826 新增房间成员管理功能
- 新增了批量添加/移除用户和智能体(Agent)到房间的API接口。
- 定义了相关的数据传输对象(DTOs),包括请求体、响应体以及成功/失败/跳过的项目。
- 在服务层(`RoomService`)实现了对这些新API的调用逻辑。
- 添加了API数据模型到领域实体模型(Entity)的转换扩展函数。
2025-11-10 21:45:40 +08:00
4ee048199b Merge pull request #60 from Kevinlinpr/atm2
feat: 新增推荐信息流功能
2025-11-10 21:07:10 +08:00
6b5f831271 feat: 新增推荐信息流功能
- 新增推荐(Recommend)信息流,支持多种内容类型,并替换原有的新闻(News)页面入口。
- 实现推荐服务(`RecommendationService`)及相关数据模型,用于从后端获取和解析推荐数据。
- 实现了三种推荐内容卡片:
    - `PromptRecommendationItem`: AI Agent 推荐卡片。
    - `PostRecommendationItem`: 普通图文动态推荐卡片。
    - `VideoRecommendationItem`: 短视频动态推荐卡片。
- 在 `RecommendViewModel` 中实现了统一的数据加载、状态管理和用户交互逻辑(如点赞、收藏)。
- 扩展了 `MomentEntity` 和 `MomentImageEntity` 等数据模型,以支持更丰富的图片URL和处理空值情况。
2025-11-10 20:31:13 +08:00
391f841f45 Merge pull request #59 from Kevinlinpr/atm2
feat: 新增短视频功能
2025-11-10 19:47:34 +08:00
2ed5639cbc feat: 新增短视频功能
- 新增短视频信息流页面,支持上下滑动切换视频。
- 实现视频播放、暂停、加载、空状态及错误处理等基础功能。
- 在视频页面中集成点赞、评论、收藏等互动操作。
- 后端接口新增 `videoFilter` 参数,用于仅获取包含视频的动态。
- 扩展了 `MomentEntity` 和相关数据模型,以支持视频数据。
- 将短视频页面集成到动态(Moment)Tab中。
2025-11-10 17:55:33 +08:00
9c9eb66b71 新增智能体和房间规则管理功能
- 新增智能体(Agent)规则的增删改查(CRUD)和服务实现。
- 新增房间(Room)规则的增删改查(CRUD)和服务实现。
- 将 `PromptRule` 相关命名重构为 `AgentRule`,以提高代码清晰度。
- 将相关数据实体中表示总数的字段类型从 `Int` 修改为 `Long`。
2025-11-05 22:24:03 +08:00
90156745ad 添加新闻接口,UI调整 2025-10-28 18:42:05 +08:00
57e4614ce8 修复一些未处理异常,切换到测试服务器 2025-09-10 18:34:36 +08:00
0aa3069efe 调整im 登陆 2025-09-08 16:02:46 +08:00
1a41cb7aef 初步替换IM接口 2025-09-08 15:13:17 +08:00
b4ed311978 增加加载异常处理 2025-09-05 16:42:34 +08:00
83cff9d56c Enhance AI Agent Profile Interaction
This commit introduces several enhancements to how AI agent profiles are displayed and interacted with:

**Profile Display:**
- **AI Account Distinction:** Profile pages now differentiate between regular user accounts and AI agent accounts.
    - AI agent profiles will not display the "Agents" tab in their profile.
    - The profile header height is adjusted for AI accounts.
- **Navigation Parameter:** An `isAiAccount` boolean parameter is added to the `AccountProfile` navigation route to indicate if the profile being viewed belongs to an AI.

**Interaction & Navigation:**
- **Avatar Click Navigation:**
    - Clicking an AI agent's avatar in various lists (Hot Agents, My Agents, User Agents Row, User Agents List) now navigates to the agent's dedicated profile page.
    - When navigating to an agent's profile from an agent list, `isAiAccount` is set to `true`.
- **Chat Initiation:** Clicking the chat button on AI agent cards in the "Agent" tab (both Hot and My Agents) now correctly initiates a chat with the respective AI.
- **ViewModel Updates:**
    - `AgentViewModel`, `MineAgentViewModel`, and `HotAgentViewModel` now include a `goToProfile` function to handle navigation to agent profiles, correctly passing the `isAiAccount` flag.

**Code Refinements:**
- Click handlers for agent avatars and chat buttons are now wrapped with `DebounceUtils.simpleDebounceClick` to prevent multiple rapid clicks.
- The `UserContentPageIndicator` now conditionally hides the "Agent" tab based on the `isAiAccount` status.
- `UserAgentsRow` and `UserAgentsList` now accept an `onAvatarClick` callback for navigating to agent profiles.
- `AgentItem` (used in `UserAgentsRow`) and `UserAgentCard` (used in `UserAgentsList`) now handle avatar clicks.
- The general `Agent` composable (used in `AiPostComposable`) now also supports an `onAvatarClick` callback.
2025-09-01 14:17:44 +08:00
00824ff7b4 Refactor: 优化个人主页和账户主页帖子加载逻辑
- 统一MyProfileViewModel和AccountProfileViewModel中的帖子加载逻辑,使用一致的pageSize。
- 在ProfileWrap和AccountProfileV2中传递正确的postCount。
- 在ProfileV3中改进了加载更多帖子的触发条件,确保在有更多数据时才触发加载。
- 修复了注册页面勾选协议和促销选项后,错误状态未清除的问题。
- 为DataLoader和ProfileV3中的滚动加载逻辑添加了详细日志,方便调试。
2025-08-31 23:04:52 +08:00
21200910c1 Refactor: 个人主页UI及智能体列表功能调整
- **个人主页UI调整:**
    - "编辑个人资料"按钮样式调整为与"私信"按钮一致。
    - "关注"按钮样式调整为渐变色,"已关注"状态下显示灰色边框。
    - "私信"按钮样式调整为灰色背景。
    - "帖子"、"粉丝"、"关注"文案调整。
    - 个人主页背景色适配深色模式。
    - 个人主页内容切换Tab图标化,并添加下划线指示器。
- **智能体列表功能:**
    - 新增`UserAgentsList.kt`用于展示用户的智能体列表。
    - 在个人主页中集成智能体列表展示(新的Tab页)。
    - 调整`UserAgentsRow`组件,使其能够加载并展示当前用户或其他用户的智能体,并添加"更多"按钮。
    - `MyProfileViewModel`中增加对智能体数据的加载和管理。
    - `UserAgentsViewModel`调整为可以加载指定用户或当前用户的智能体数据。
- **其他:**
    - `Colors.kt`中新增`profileBackground`颜色定义。
    - `Agent.kt`中调整了`getAgent`方法返回类型。
2025-08-31 20:23:28 +08:00
weber
52e571da01 用户信息调整 2025-08-27 11:39:50 +08:00
weber
df75c710e5 UI调整 2025-08-25 18:35:06 +08:00
weber
77033854f0 UI调整 2025-08-25 10:49:00 +08:00
weber
9fb79b3881 聊天室和群聊信息调整 2025-08-21 19:04:59 +08:00
weber
5ee1897739 消息列表和聊天时调整 2025-08-21 17:08:18 +08:00
weber
d8c091b19b 页面样式调整 2025-08-14 15:39:21 +08:00
weber
bc7a897cec 预留首页-探索,完善群组功能 2025-08-13 18:57:03 +08:00
weber
f6a796e2bc 智能体会话开发 2025-08-07 19:03:05 +08:00
weber
a944bd0fa3 智能体列表,全部 2025-08-06 15:58:17 +08:00
weber
daea7824af create agent 2025-08-05 16:25:06 +08:00
weber
3e544844bb 添加新的表单文本输入组件 FormTextInput2,包含错误提示和动态显示功能;新增图标和图片资源。 2025-08-05 14:24:15 +08:00
weber
29d2bb753f 实现了 Agent 和 Profile 数据类,添加了 AddAgent 界面 2025-07-31 15:37:17 +08:00
50fb1874e7 增加动态举报 2024-12-06 22:08:57 +08:00
c54d5c914a 更新关注逻辑 2024-12-01 15:13:47 +08:00
79fccda1aa 更新动态加载逻辑 2024-12-01 09:40:13 +08:00
6c19f83cfb 更新个人资料同时更新聊天个人信息 2024-11-30 22:24:28 +08:00
3a68a51f3c 更新聊天头像逻辑 2024-11-30 08:50:50 +08:00
074244c0f8 改包名com.aiosman.ravenow 2024-11-17 20:07:42 +08:00