Files
MooTool/next-compose/docs/diff/329-json-path-picker-preview-format.md
RememBerBerandCursor c834db2a83 feat(next-compose): 对照 Electron 落地 F00–F25 与 A01–A03 主体能力
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 06:51:45 +08:00

683 B
Raw Permalink Blame History

DIFF-329:JSONPath 弹层/内联树预览对齐 Electron formatPreview

问题

Electron JsonPathPicker 右侧预览对标量返回 JSON 字符串、对对象/数组 JSON.stringify(value, null, 2)。Compose listPaths 的 preview 对对象/数组仅 {n} / [n] 缩写,弹层与内联树单击预览信息不足。

行为

  • 新增 jsonPathNodePreview:经 JsonEngine.queryPath(与 formatPathResult 一致)生成预览,失败时回退树行 preview。
  • PathPickerDialog 预览列、检查器内联路径树单击/双击前的预览均使用该 helper。

验证

  • JsonPathNodePreviewTest
  • ./gradlew :composeApp:desktopTest --offline