fix(macos): replace setup terminal modal with terminal drawer - #16
Conversation
|
WalkthroughRemoved the embedded terminal sheet flow from SetupAssistantView and deleted the ShellView component entirely. Command execution now routes through a global terminal panel invocation instead of displaying an internal sheet-based terminal view. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/SetupAssistantView.swift (1)
217-217: Consider renaming function to reflect its new behavior.The function name
runInEmbeddedTerminalIfAvailablesuggests it runs commands in an embedded terminal, but it now opens a global terminal panel instead. Consider renaming to something likerunInGlobalTerminalPaneloropenCommandInTerminalDrawerfor clarity.♻️ Proposed rename
- private func runInEmbeddedTerminalIfAvailable(_ command: String) { + private func runInGlobalTerminalPanel(_ command: String) { let normalizedCommand = command.trimmingCharacters(in: .whitespacesAndNewlines) guard !normalizedCommand.isEmpty else { return } openGlobalCommandInTerminalPanel(command: normalizedCommand, title: "Setup")Also update all call sites (lines 82, 94, 108, 125, 139, 151):
- onRunInEmbeddedTerminal: supportsEmbeddedTerminal ? runInEmbeddedTerminalIfAvailable : nil, + onRunInEmbeddedTerminal: supportsEmbeddedTerminal ? runInGlobalTerminalPanel : nil,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/SetupAssistantView.swift` at line 217, The helper function runInEmbeddedTerminalIfAvailable was changed to open the global terminal panel so rename it and its call sites to match the new behavior (e.g., runInGlobalTerminalPanel or openCommandInTerminalDrawer): rename the function declaration private func runInEmbeddedTerminalIfAvailable(_ command: String) to the chosen name and update every invocation (currently at call sites referenced in the review: lines 82, 94, 108, 125, 139, 151) to call the new function name; ensure any documentation/comments and visibility remain correct and run a project-wide search/replace for runInEmbeddedTerminalIfAvailable to avoid missing references.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/SetupAssistantView.swift`:
- Line 217: The helper function runInEmbeddedTerminalIfAvailable was changed to
open the global terminal panel so rename it and its call sites to match the new
behavior (e.g., runInGlobalTerminalPanel or openCommandInTerminalDrawer): rename
the function declaration private func runInEmbeddedTerminalIfAvailable(_
command: String) to the chosen name and update every invocation (currently at
call sites referenced in the review: lines 82, 94, 108, 125, 139, 151) to call
the new function name; ensure any documentation/comments and visibility remain
correct and run a project-wide search/replace for
runInEmbeddedTerminalIfAvailable to avoid missing references.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/SetupAssistantView.swiftapps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/ShellView.swift
💤 Files with no reviewable changes (1)
- apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/ShellView.swift
Summary
ShellViewnow that no modal terminal surface remainsTesting
Closes #15
Summary by CodeRabbit
Bug Fixes
Refactor