refactor(hig): hero icons, link buttons, spacing sweep#993
Merged
Conversation
…f .plain + manual tint
…4, 6, 12); add cancelAction to ConnectionForm Cancel button
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
Phase 5 polish. Three categories of mechanical fixes plus one minor keyboard shortcut addition.
Commits
refactor(hero-icons)— 9 hardcoded.font(.system(size: 40-64))hero icons (empty/success/error/feature-gate states) move to.font(.largeTitle).imageScale(.large).symbolRenderingMode(.hierarchical). Sites:OnboardingContentView.swift:152— get-started checkmarkFeedbackView.swift:279— submission successProFeatureGate.swift:42— feature-gate iconExportSuccessView.swift:26— export successMainEditorContentView.swift:746— empty-tabs stateImportSuccessView.swift:23,27— success / partial-success statesImportErrorView.swift:17— import failureQuerySuccessView.swift:21— query successThis adds Dynamic Type compliance (icons scale with the user's text-size setting) and gives them the canonical SF Symbols depth treatment.
refactor(buttons)— five.plain+ manual tint/foreground callsites become.buttonStyle(.link)(or.borderlessfor cancel-style):MainStatusBarView.swift:120— "Fetch All" in the row-cap warningColumnVisibilityPopover.swift:66,73— "Show All" / "Hide All" in popover header (already done in phase 4 cleanup)OnboardingContentView.swift:175— "Skip" in onboardingFeedbackView.swift:308— "Close" after feedback submissionrefactor(spacing)— 8 files:spacing: 5→spacing: 4,spacing: 14→spacing: 12,padding(.horizontal, 5)→padding(.horizontal, 6). Brings 5pt-grid drift onto Apple's 8pt grid. Files: AIChatMessageView, TypeBadge, WelcomeLeftPanel, ImportDialog, EditableFieldView, FavoriteRowView, RedisKeyTreeView, ExecutionIndicatorView. Also:ConnectionFormView+Footer.swiftCancel button gains.keyboardShortcut(.cancelAction)so Esc closes the form.Net change
Out of scope (intentional)
.font(.system(size: 8/10/11/12))forCanvas-drawn ER node text. Canvas drawing doesn't compose with Dynamic Type the way SwiftUI views do — node row heights are fixed inERDiagramLayout, so Dynamic Type would overflow. Needs a layout-grid rework to fix properly. Filed separately.ERDiagramToolbarfloating glass card: moving to nativeNSToolbaror canvas safe-area inset is an architectural change, not a polish. Filed separately.ConnectionFormViewfooter →.toolbar { confirmationAction / cancellationAction }: would require wrapping in NavigationStack and routing actions through SwiftUI toolbar placements. Real architectural change with visible UX impact. Minimal-improvement applied (cancelAction keyboard shortcut); full refactor deferred.DashboardToolbarViewandAIChatPanelViewheaders — match macOS Tahoe toolbar height: visual polish, no HIG violation.spacing: 10andpadding(10)cluster: kept as-is. Apple itself uses 10pt in many places (it's between the 8pt cluster and 12pt group), and switching mechanically to 8 or 12 would change the visual feel of toolbars and rows that are tuned right.Test plan
swiftlint lint --strictpasses (verified locally)