Skip to content

[#3114] 记忆目录与搜索:面板内按主题目录与关键词筛选已载入条目 #3169

Closed

Description

@Birfy

第五刀的收口单(umbrella #3114 保持 open;切片 PR 写 Fixes #<本单> + Part of #3114,不写 Fixes #3114)。

范围

在记忆弹层(core/src/client/memory-panel.js)左侧加一个目录:搜索框 + Overview / All entries + own/team 主题行;只过滤 host 已返回的 view.entries,不新增 host 读、不持久化、不建 shared 模块。

依据

完整规格见 #3114 的第五刀更正评论 issuecomment-6981874670(修订版,取代 14:16Z 那条)。基准 main 8b9e249bcfa4255acc834881f27849c1ded67bb5。

  • 现状:groupEntries(L123–129)已按 scope:topic 分组、Entries(L156–175)已画 own/team 与 topic 标题;缺目录与搜索(Search memory / Memory directory 在 core/src/client 0 命中)。
  • 文件切片:11 个(手写 6:panel +84/−19、styles +14/−0、i18n +6、test +77、docs +1/−1、changelog +1;生成 5:core/client.js +152/−34、0001/0003/0008、files 镜像),手写 203 行。
  • 不碰:.github/**、policy/**、core/src/shared/**、core/src/host/**、plugins/**。

明确不做

目录折叠(navHidden/Hide directory)、680→880 加宽、640px 断点、摘要行「n 条 · m 个主题」、搜索高亮/模糊/分页、中文以外 locale;已落地的 5 条不重做。

验收

红先:core/test/memory-panel-readonly.test.js 追加 3 例 → 先 # pass 3 / # fail 3(红在 the directory is named、reading 'props'、'' !== 'travel1'),补实现后 6/6,回归 6 文件 147/147;node core/scripts/build-client.mjs --check exit 0(在已提交 core/client.js 的树上);ds-bot-patches check 10 patches 干净、canonical 在有 git 的机器上绿;TZ=UTC TMPDIR=/data/flybot-tmp npm run verify exit 0。

Written-by: Chief

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions