fix: keep browser overlays and knowledge controls usable
Native browser pages could cover application dialogs and overlapping menus or notifications. Suspend only the viewport while covered and restore the same active page afterward, including nested dialogs and terminal prompts. Keep knowledge source controls at their full height, constrain long library cards and titles, and update automatic names when switching remote targets without overwriting edited or saved names. Restore packaged release-note loading now that the history exceeds its previous size limit. Add focused regressions and real Electron UI evidence. Clean up temporary Harness fixture directories at test completion instead of accumulating them. Release note: 修复内嵌浏览器遮挡弹窗和浮层、知识库来源选项被压缩及长名称显示异常;切换远端知识库时自动名称正确更新,并恢复更新说明显示。
This commit is contained in:
@@ -26,6 +26,37 @@
|
||||
**历史**:`e9679fe`、`ca4a58c` 各修了一部分被人工点到的弹窗,同一批改动又新增了两个未覆盖
|
||||
的遮罩;后续复查改为共享规则加自动发现测试。
|
||||
|
||||
## 网页浮层遗漏原生浏览器视图
|
||||
|
||||
**症状**:知识库实例、项目设置等 Modal 的右侧被浏览器网页覆盖,通知或菜单也可能
|
||||
被压在原生视图下面。
|
||||
|
||||
**原因**:`WebContentsView` 不参与 Renderer 的 CSS 层叠。先前只在关闭终端确认时
|
||||
显式隐藏 viewport,没有覆盖其他页面的 Portal 和浮层。
|
||||
|
||||
**规则**:`BrowserViewport` 共用 `browser-viewport-occlusion.ts`,按 Modal 语义和
|
||||
浮层相交状态释放显示租约,不销毁网页会话。不得再增加逐个弹窗的特殊隐藏条件。
|
||||
|
||||
**防复发**:组件回归覆盖 body Modal、嵌套 Modal、已打开 Modal、隐藏或非相交浮层、
|
||||
通知、终端确认和非活动页签;实际 Electron 验证同时检查原生视图可见性,不能只看 DOM
|
||||
的遮罩或截图。
|
||||
|
||||
**历史**:先前浏览器多实例修正只覆盖了终端关闭确认;2026-09-13 用户在知识库实例
|
||||
Modal 再次复现,同一检查确认其他应用级 Modal 均缺少处理。
|
||||
|
||||
## Flex 滚动内容压缩页签和分段控件
|
||||
|
||||
**症状**:知识库来源选择被长参数表单压成窄缝,标签和按钮文字被裁掉。
|
||||
|
||||
**规则**:`PageTabs` 与 `SegmentedControl` 在共享样式上固定 `flex: 0 0 auto`;
|
||||
直接包装层也必须保留高度。不要按页面复制高度常量。
|
||||
|
||||
**防复发**:`WorkspacePrimitives.test.tsx` 检查共享分段控件不收缩,已有平台功能、
|
||||
能力和 MCP 页签回归继续保留;Electron 复验必须包含长表单与短窗口。
|
||||
|
||||
**历史**:设置页签曾补过包装层不收缩规则;2026-09-13 知识库创建类型的共享
|
||||
`SegmentedControl` 又出现同类问题。
|
||||
|
||||
## 逐行查询代替主键查询
|
||||
|
||||
**症状**:列表渲染或校验函数随数据量线性变慢,且慢在单次操作内重复发生。
|
||||
|
||||
Reference in New Issue
Block a user