fix: remove duplicate sidebar header trigger#2842
Conversation
|
thanks for this, but i think it's gone stale and the premise no longer holds, so holding off on approving. the branch is ~106 commits behind main and currently conflicting. more importantly, the sidebar header was refactored on main since this was cut (the shell-unification work: #2937, #2974, #3055, etc.). it's no longer two separate static triggers, it's a single adaptive one: {!isMac && !isWindows && (
<SidebarTrigger aria-label={isCollapsed ? "Expand sidebar" : "Collapse sidebar"} ... />
)}so there isn't a duplicate to remove anymore, it's one control that flips label/behavior by state (and it's linux-only in the header now, mac uses the titlebar). the new test also asserts that no "Collapse sidebar" button renders, but on current main that's the legitimate collapse control in the expanded linux sidebar, so the assertion is backwards vs main and removing it would leave linux users with only ⌘B / drag to collapse. could you rebase on latest main and re-check whether any duplicate actually still exists? my read is it's already been consolidated and this is likely obsolete, but if you spot a real dupe after rebasing, happy to look at a fresh diff against the new single-trigger structure. thanks! |
Summary
Tests