Skip to content

feat(memory-facts): 将 Load Facts 的 User ID 文本输入替换为用户名下拉选择器 - #490

Merged
ThreeFish-AI merged 4 commits into
feature/1.x.xfrom
ThreeFish-AI/facts-user-name-filter
May 10, 2026
Merged

feat(memory-facts): 将 Load Facts 的 User ID 文本输入替换为用户名下拉选择器#490
ThreeFish-AI merged 4 commits into
feature/1.x.xfrom
ThreeFish-AI/facts-user-name-filter

Conversation

@ThreeFish-AI

Copy link
Copy Markdown
Owner

Summary

  • 将 Memory/Facts 页面的 User ID 文本输入框替换为用户名下拉选择器
  • 复用 fetchMemories API 获取系统中已存在的用户列表,下拉框展示用户名称(label)而非原始 User ID
  • 选择用户后自动触发 Facts 加载,移除手动 Load Facts 按钮
  • 空状态提示文案中文化

Test plan

  • 打开 Memory > Facts 页面,验证下拉框正确加载并展示用户列表
  • 选择用户后 Facts 自动加载,无需手动点击按钮
  • Search / Clear 功能正常
  • Dark Mode 下样式正确
  • 无用户数据时空状态展示正确

🤖 Generated with Claude Code

- 复用 fetchMemories API 获取系统中已存在的用户列表
- 下拉框展示用户名称(label)而非原始 User ID,提升直观性
- 选择用户后自动触发 Facts 加载,移除手动 Load 按钮
- 空状态提示文案中文化

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
- 新增 mockMemoryUsers 辅助函数,模拟 /api/memory 返回用户列表
- 将 getByPlaceholder("Enter User ID") + Load Facts 按钮替换为 select 下拉选择
- 更新初始展示测试断言为新文案
- 所有 5 个测试用例适配新的 select 交互模式

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
- 将 mockMemoryUsers 的 glob 模式 `**/api/memory` 替换为 URL pathname 精确匹配谓词
- glob 模式不匹配带 query string 的请求 (`/api/memory?app_name=...`),导致 select 选项始终为空
- 首个测试新增 option 可见性断言,确保 mock 确实生效

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
…wright 视为 visible;

<option> 在 <select> 内渲染时 Playwright 报告 hidden,改由其他测试用例通过
selectOption 隐式验证 options 存在。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
@ThreeFish-AI
ThreeFish-AI merged commit a816b03 into feature/1.x.x May 10, 2026
11 checks passed
@ThreeFish-AI
ThreeFish-AI deleted the ThreeFish-AI/facts-user-name-filter branch May 10, 2026 13:51
ThreeFish-AI added a commit that referenced this pull request Jul 5, 2026
…-2026-4372 处置) (#1057)

* fix(deps): ts-deepmerge 补丁地板至 8.0.0 修复 GHSA-87mf-gv2c-c62c (#481);

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

* fix(negentropy): pydantic-settings 升 2.14.2 + joserfc>=1.6.7 补丁地板修复 #482/#488;

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

* fix(cognizes): joserfc/msgpack/python-socketio/python-engineio 补丁地板修复 #483/#486/#487/#490/#491;

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

* docs(perceives): ISSUE-092 增补 CVE-2026-4372 威胁模型;transformers 钉 4.x + dismiss #492(marker 5.x 不兼容实测);

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant