Skip to content

v1.7.4

Latest

Choose a tag to compare

@Wasabi2575 Wasabi2575 released this 01 Dec 10:02

中文更新说明

本次 v1.7.4 聚焦侧栏画布的宿主语言自动跟随与交互细节打磨:

新特性与体验优化

  • 自动跟随 DSH 宿主语言(三态切换):默认通过 ctx.get('locale') / locale/change 自动跟随 DSH 客户端语言(零新增 dsh.client.inject 依赖,兼容旧版宿主,并回退至 <html lang> / navigator.language);⋯ 菜单支持 跟随 DSH (中文/EN) → 中文 → EN 三态循环,并通过同窗口事件实时同步至所有已挂载会话。
  • 预设菜单升级:
    • 自定义预设达到 4 个及以上时自动显示搜索框,支持按预设名、示例名及内部节点名实时过滤;
    • 内置示例模板支持一键折叠/展开(记住折叠偏好,右侧统一 ▾ 图标,搜索时自动展开);
    • 固定预设菜单宽度为 272px 并移除冗余手动刷新按钮,搜索或折叠不再引起宽度抖动;
    • 统一精简 5 个内置示例模板的中英文命名(主题:三步核心流),在菜单内完整显示不再截断。
  • 全新三标签使用说明 & 放大弹窗:
    • 将原先的长文本使用说明重构为 🚀 快速上手 / 🔗 节点与连线 / ⌨ 快捷键与技巧 三个清晰标签页,补充框选/Shift 多选、复制/删除等操作说明,并支持一键直达快捷键设置;
    • 放大使用说明与快捷键设置弹窗及字号,阅读更轻松。
  • 工具栏与悬浮条视觉微调:
    • 对齐插件顶栏底部分割线与 DSH 主对话 对话 | 轨迹 分割线;
    • 固定 ⋯ 设置菜单宽高及开关胶囊最小宽度(58px),切换中英文或 ON/OFF 时零抖动;
    • 将同步/操作提示移至 ⏹ 终止 按钮右侧作为纯临时悬浮胶囊(3.2 秒后自动消失,pointer-events: none 不挡画布操作),中英文长通知均完整显示不截断;
    • 修复节点卡片顶部彩色色条在放大视图下的圆角贴合瑕疵(改用全高内圆角裁切容器匹配 1px/1.5px/2px 边框内弧)。

English Release Notes

v1.7.4 focuses on DSH host locale auto-follow and sidebar UI/UX polish:

Highlights

  • Automatic DSH Locale Following (3-State Toggle): Follows the DSH client language automatically via optional ctx.get('locale') / locale/change (no new hard dsh.client.inject requirement, with <html lang> and navigator.language fallbacks). The ⋯ menu cycles through Follow DSH (ZH/EN) → 中文 → EN and syncs across all mounted sessions via a same-window event.
  • Presets Menu Polish:
    • Live search bar appears automatically once you have 4+ saved presets, filtering by preset name, starter template name, or inner node labels;
    • Collapsible Starter Templates section (persisted preference, right-aligned ▾ caret, auto-expanded while searching);
    • Fixed 272px menu width and removed redundant manual refresh button so typing or collapsing never jitters the menu width;
    • Unified, concise bilingual names for all 5 starter templates so none truncate in the dropdown.
  • Redesigned 3-Tab Help & Larger Modals:
    • Replaced the long help text wall with 3 visual tabs (🚀 Quick Start, 🔗 Nodes & Links, ⌨ Shortcuts & Tips), documenting box-select / Shift multi-select, duplicate/delete, and linking directly to shortcut settings;
    • Enlarged Help and Shortcuts modals and typography for better readability.
  • Toolbar & Floating Pill Refinement:
    • Aligned the canvas toolbar's bottom divider with DSH's Chat | Trace header divider;
    • Locked ⋯ menu dimensions and toggle pill minWidth (58px) for zero width/height jitter when switching languages or toggling ON/OFF;
    • Moved action/sync feedback out of the top toolbar into a pure temporary floating toast pill beside ⏹ Stop (auto-dismisses after 3.2s, pointer-events: none), displaying long Chinese and English notices in full without truncation;
    • Fixed subpixel corner clipping on node top accent bars when zoomed in by clipping the bar inside an inner border-radius container matched to 1px/1.5px/2px card borders.