dsh-brief-sidebar 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-brief-sidebar",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "main": "./lib/index.mjs",
5
5
  "description": "会话简报侧栏页(brief):把会话的 todo 列表(`todos` 投影的进展看板)、产物列表(`dshSummaryDeliverables` 投影的实时产出文件)与记忆槽位(`memorySlots` 投影,来自 dsh-prime-memory,开关可关)一起渲染成右侧栏的一个「概要」tab,并遮蔽 DSH 官方那条 composer 上方的 todo 面板。只读展示,不做写回。",
6
6
  "engines": {
package/lib/client.js CHANGED
@@ -2311,10 +2311,19 @@ window.__ModuleLoader__.load({
2311
2311
  };
2312
2312
  if (view.sources.length > 0) for (const cluster of clusterByQuery(view)) {
2313
2313
  const key = cluster.query === "" ? "\0tail" : cluster.query;
2314
+ const shown = expandCount(t("searchRefs.hits"), cluster.items.length);
2315
+ if (cluster.items.length === 0) {
2316
+ body.push((0, react.createElement)(GroupHeader, {
2317
+ key: `h:${key}`,
2318
+ text: `${cluster.query} · ${shown}`,
2319
+ marker: "search-refs-cluster-empty"
2320
+ }));
2321
+ continue;
2322
+ }
2314
2323
  const open = openMap[key] ?? cluster.latest;
2315
2324
  body.push((0, react.createElement)(FoldToggle, {
2316
2325
  key: `h:${key}`,
2317
- label: cluster.query === "" ? expandCount(t("searchRefs.sourceGroup"), cluster.items.length) : `${cluster.query} · ${expandCount(t("searchRefs.hits"), cluster.hits)}`,
2326
+ label: cluster.query === "" ? expandCount(t("searchRefs.sourceGroup"), cluster.items.length) : `${cluster.query} · ${shown}`,
2318
2327
  open,
2319
2328
  marker: "search-refs-cluster",
2320
2329
  onToggle: () => {