fix(workspace): audit fixes — dedupe failure chip, width-guard mentor overlay, a11y, NSColor bridge (#87)
Reviewer fan-out (ponytail/security/general) synthesis: - one failure surface in focus (chip carries it; toolbar stays recessed) - draft '⌘S saves' cue in focus (drafts have no autosave) - mentor reveal honors the #17 width verdict - hidden overlay panels leave the accessibility tree - NSColor(DesignTokens.background) bridge replaces the twin constant - HoverZone width plumbing deleted, zoneWidth hoisted as the knob - single >=1100 threshold read in WorkspaceView
This commit is contained in:
1 parent
9c2926f027
commit
d07d41859a
6 files changed
+51
-48
No files matched your search
@@ -43,11 +43,13 @@ struct WorkspaceView: View {
|
||||
// a collapsed pane is not summoned by focus).
|
||||
.overlay {
|
||||
if gate.isFocused {
|
||||
FocusOverlayPanel(edge: .leading, panelWidth: leftRevealWidth(geo)) {
|
||||
// #17 verdict: the library reveal honors the width collapse.
|
||||
let showsLibrary = geo.size.width >= 1100
|
||||
FocusOverlayPanel(edge: .leading, panelWidth: leftRevealWidth(showsLibrary)) {
|
||||
HStack(spacing: 0) {
|
||||
navRail
|
||||
paneBorder
|
||||
if geo.size.width >= 1100 {
|
||||
if showsLibrary {
|
||||
PostsLibraryColumn(home: gate.museionHome, model: gate.posts)
|
||||
}
|
||||
}
|
||||
@@ -84,10 +86,10 @@ struct WorkspaceView: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// The left reveal panel's width: rail + border (+ library when the window
|
||||
/// width still grants it — the unfocused verdict, not the focused budget).
|
||||
private func leftRevealWidth(_ geo: GeometryProxy) -> CGFloat {
|
||||
DesignTokens.railWidth + 1 + (geo.size.width >= 1100 ? DesignTokens.libraryWidth : 0)
|
||||
/// The left reveal panel's width: rail + border (+ library when the
|
||||
/// unfocused width verdict grants it).
|
||||
private func leftRevealWidth(_ showsLibrary: Bool) -> CGFloat {
|
||||
DesignTokens.railWidth + 1 + (showsLibrary ? DesignTokens.libraryWidth : 0)
|
||||
}
|
||||
|
||||
/// 1px contract border between rail and pane (`.rail { border-right }`).
|
||||
|
||||
Reference in new issue
Block a user