Repository navigation
Allow automation deletion without SSH connection - #13261
AmethystLiang merged 2 commits into
Conversation
Remove external source entries from the list and only show jobs. This allows users to delete and manage automations even when the remote host is not connected.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughExternal automation lists now contain job entries only. Empty managers and Hermes unavailable or error source entries are omitted. Search fingerprints use job fields and prompt text for all external entries. The automation page and detail pane no longer manage SSH source availability or connection actions. External selections render the manager view directly. Tests cover job-entry construction and external action availability. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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)
src/renderer/src/components/automations/external-automation-list-entries.test.ts (1)
25-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winTest jobs from an unavailable manager.
The fixture sets
status: 'available'andcanManage: true. This does not test the required job-only flow for a disconnected SSH host. Keep the default unavailable manager and add a job to verify that its job remains listed.Proposed test adjustment
manager({ - status: 'available', - error: null, - canManage: true, jobs: [
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: eb4e043c-fe50-408c-b566-1288d0993648
📒 Files selected for processing (9)
src/renderer/src/components/automations/AutomationListExternalRows.tsxsrc/renderer/src/components/automations/AutomationsDetailPane.tsxsrc/renderer/src/components/automations/AutomationsPage.tsxsrc/renderer/src/components/automations/external-automation-display.tssrc/renderer/src/components/automations/external-automation-list-entries.test.tssrc/renderer/src/components/automations/external-automation-list-entries.tssrc/renderer/src/components/automations/external-automation-source-availability.test.tssrc/renderer/src/components/automations/external-automation-source-availability.tssrc/renderer/src/components/automations/use-automation-list-search.ts
💤 Files with no reviewable changes (2)
- src/renderer/src/components/automations/external-automation-display.ts
- src/renderer/src/components/automations/external-automation-source-availability.ts
|
@coderabbitai Fixing. Will be in the next commit |
|
Tip For best results, initiate chat on the files or code changes.
You are interacting with an AI system. |
Remove availability constraints (status, error, canManage) from test to verify jobs can be listed regardless of manager connection state.
* Allow automation deletion without SSH connection Remove external source entries from the list and only show jobs. This allows users to delete and manage automations even when the remote host is not connected. * Update test: list jobs from unavailable automation manager Remove availability constraints (status, error, canManage) from test to verify jobs can be listed regardless of manager connection state.
Problem
External automations on unavailable SSH hosts displayed as separate "source" entries that required SSH connection before users could manage automation jobs, blocking deletion and other operations when SSH wasn't available.
Solution
Remove the source availability layer and only display automation jobs. Users can now manage automations directly without first establishing an SSH connection. Empty host probes are omitted from the list.
Summary
Simplify external automation list to show only actual jobs, removing the blocking SSH requirement for basic operations like deletion.
Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildAI Review Report
TODO: Add AI review summary here, including cross-platform compatibility checks for macOS, Linux, and Windows.
Security Audit
TODO: Add security audit summary here.
Notes
TODO: Call out any platform-specific behavior, risks, or follow-up work.