Repository navigation
feat(web): 侧边栏分组悬停浮出子菜单 —— 修折叠态 + 展开态可选(#440) - #441
Merged
Merged
Conversation
折叠成图标栏时 SidebarMenuSub 是 display:none,分组点了只翻 aria-expanded, 12 个一级菜单里 10 个进不去子页面。折叠态下顶层分组改用 Base UI Menu: 悬停 / 点击从右侧浮出,三级往右级联,键盘可用;顶层叶子补 tooltip, 当前页所在分组亮起。补 E2E 与 shell 分册结论。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 键盘用例改用「系统监控」:menu-rename-disable.spec 会临时停用 /log,并行撞上会偶发红 - closeDelay 100 ≤ delay 120:相邻分组间移动时旧浮层先关,不再两个叠在一起 - 三级级联 E2E:临时在「系统管理」下建「目录 → 外链」,点外链后两层浮层都关; 变异去掉 closeOnClick 红在这一句 - app-sidebar.tsx / use-sidebar.ts 挪进 shell/sidebar/,配 sidebar 分册; shell 分册从 522 行降到 484 行,ctx:check 0 警告 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
个人中心 → 布局 新增「子菜单展开方式」:内嵌展开(默认)/ 悬停浮出。 选悬停浮出时展开态的分组也走浮层;折叠态不看偏好、一律浮出;移动端照旧内嵌。 E2E 覆盖展开态浮出、刷新保留、折叠照样弹、切回内嵌恢复;记下悬停浮层开着时 body 是 pointer-events: none 这条 E2E 坑。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base UI 悬停菜单的 safe polygon 把 body 设成 pointer-events:none(写死不能关), 指针还在通往浮层的三角区里时,点侧栏下方的菜单会落到 <html> 上。侧栏菜单列表 加 pointer-events-auto;补回归用例(修前 3/3 复现,去掉修法当场红)。 还原手改过的生成产物 docs/architecture/arch-map.md。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yile2020
enabled auto-merge
November 23, 2026 06:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #440(两步都在这个 PR 里)
第一步:修折叠态
侧栏折叠(⌘B)后,
SidebarMenuSub带group-data-[collapsible=icon]:hidden,分组点了只把aria-expanded翻成 true、什么都不出现。正式环境 v1.1.3 实测:12 个一级菜单里 10 个是这种死按钮。Menu:悬停(120ms)/ 点击从右侧浮出,三级往右级联,键盘可用(Enter / 方向键 / Esc)<Link>,closeOnClick;当前页所在分组亮起;顶层叶子补 tooltip第二步:展开态做成偏好
>);折叠态不看偏好、一律浮出;移动端(Sheet)照旧内嵌评审跟进
menu-rename-disable.spec会临时停用 /log)closeDelay(100) ≤delay(120),相邻分组间移动不再两个浮层叠在一起shell/sidebar/+ 独立分册,shell 分册回到预算内验证
sidebar-collapsed.spec.ts5 条通过;变异各自当场红:关掉折叠分支(浮层 / 键盘两条)、去掉外链closeOnClick(三级那条)、展开态无视偏好(偏好那条)pnpm typecheck --force·lint·arch:check·ctx:check·i18n:checkprofile-phone.spec.ts红,但不含本 PR 改动时同样红(本地测试库落后迁移),与此无关🤖 Generated with Claude Code