Conversation
…stem text-size preference
…OS Maps/Preview Markup pattern)
…ar (.confirmationAction/.cancellationAction/.destructiveAction)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…ationAction so primary actions never collapse
e039350 to
4c806f7
Compare
…rm empty side gutters
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.
Summary
Three deferred items from earlier phases. Each in its own commit.
Commits
refactor(er-diagram)— ER diagram nodes scale with system text-size preference.ERDiagramLayout.typeScale: CGFloatreadsNSFont.preferredFont(forTextStyle: .body).pointSize / 13.0and clamps to a 1.0 floor.headerHeight,columnRowHeight,nodeWidthbecome computed properties multiplied bytypeScale.ERDiagramNodeRendererCanvas font sizes (8, 10, 11, 12pt) and layout offsets (headerTextXOffset,iconXOffset,badgeXOffset,columnNameXOffset,typeRightMargin) all multiply byscale = ERDiagramLayout.typeScale.estimateHeight(columnCount:)already uses the computed properties so it auto-scales.horizontalGapandverticalGapstay fixed (gaps are layout grid, not text).At default text size: zero visible change. At "Larger Accessibility Sizes": nodes grow proportionally so column text stays readable inside the rows instead of overflowing.
refactor(er-diagram)toolbar —ERDiagramToolbar(the floating bottom-trailing canvas toolbar with zoom %, fit, compact mode, reset, export) drops theRoundedRectangle(cornerRadius: 8)+.regularMaterial+ manual.shadowchrome and adopts Apple's canvas overlay pattern:Capsule()shape +.thinMaterial+ half-pixel.quaternarystroke. The system handles depth automatically (and dims correctly when the window loses focus). Visual change: rounded-rectangle becomes a true pill, looks lighter.refactor(connection-form)— Connection Form footer actions move into the native window toolbar.Test Connection/Delete/Cancel/Save/Save & Connectlived in a customHStackfooter at the bottom of the window.ToolbarItemwith semantic placement:.navigation— Test Connection (with status indicator transitions: progress / checkmark / antenna).destructiveAction— Delete (only shown when editing).cancellationAction— Cancel (Esckeyboard shortcut).secondaryAction— Save Only (only shown when creating a new connection).confirmationAction— primary Save / Save & Connect (Returnkeyboard shortcut)NavigationStackso.toolbar { ... }attaches to the window titlebar.onChangeobservers that resettestSucceeded(when host/port/username/password/database/SSH/SSL fields change) move from the deleted footer view to the body.Matches
AIProviderDetailSheet(already on this pattern) and Apple Mail's compose window.Net change
Visible UX changes
Test plan
swiftlint lint --strictpasses (verified locally)