Repository navigation
Conversation
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.
Motivation
On non-notched Macs (such as the M1 MacBook Air) and external displays, the top menu bar has no physical notch cutout, so top-centered island pills/bars can occupy limited menu bar space or overlap third-party menu bar items and menus.
This adds an optional Side-Edge Dock Mode (
Left Edge/Right Edge) alongside the existingTop (Notch)mode. The default remainsTop (Notch)so existing users experience zero behavioral change unless they opt in.Summary of Changes
Sources/CodeIsland/SideDockLayout.swift):verticalEdgeMargin = 12pt).240–560ptwidth, default300pt;180–860ptheight, default420pt), drag-to-reposition math, and inward/bottom resize clamping.Sources/CodeIsland/PanelWindowController.swift):NSPanelflush on the active edge spanning usable vertical height so the drawer can grow/shrink smoothly without window-edge clipping or drifting off the screen edge.sideVerticalPosition) and constrains auto-collapse checks in side mode topointerOverIsland.Sources/CodeIsland/NotchPanelView.swift):SidePanelShape,SideCollapsedPill,SideIdlePill,SidePanelResizeHandles(inner edge, bottom edge, and bottom corner with live width × height HUD), and\.isSideDocked/\.sideDrawerHeightenvironments.SessionCard(two-row header, multi-line reply preview, wrapped approval actions) and passedeffectiveMaxVisiblecleanly toSessionListMetricsinSessionListView.dockEdgefallback remains.top.Sources/CodeIsland/Settings.swift,Sources/CodeIsland/SettingsView.swift,Sources/CodeIsland/L10n.swift):DockEdge(topdefault,right,left),dockEdge,sideVerticalPosition,sidePanelWidth,sidePanelHeight.en,zh,zh-Hant,de,ja,ko,tr).Tests/CodeIslandTests/SideDockLayoutTests.swift):Verification
XCTest), so the fullswift testsuite could not be executed locally. Please runswift testin Xcode on CI / maintainer machine.swift build -c release --build-system native --sdk /Library/Developer/CommandLineTools/SDKs/MacOSX26.5.sdk.swiftcchecks coveringSideDockLayoutgeometry/clamping invariants andL10nkey parity across all 7 languages (en,zh,zh-Hant,de,ja,ko,tr).