Repository navigation
Require explicit Dock config - #3366
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRemoves the Dock's built‑in default Feed and associated UI‑test helpers; requires an explicit Changes
Sequence Diagram(s)sequenceDiagram
participant Test as FeedSidebar\nUITests
participant FS as File System
participant Env as Environment
participant App as DockPanelView
Test->>FS: create temp dock.json (with Feed control)
Test->>Env: set CMUX_UI_TEST_DOCK_CONFIG_PATH
Test->>Env: set CMUX_UI_TEST_MODE="1"
Test->>App: launch app
App->>Env: read CMUX_UI_TEST_DOCK_CONFIG_PATH
App->>FS: load dock.json config
App->>App: initialize Dock (no built-in feed fallback)
Test->>FS: cleanup temp dock.json
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly Related PRs
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 docstrings
🧪 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. Review rate limit: 4/8 reviews remaining, refill in 27 minutes and 58 seconds.Comment |
Greptile SummaryThis PR removes the built-in Feed fallback from Dock: the Confidence Score: 4/5Safe to merge; the only finding is a leftover dead launch-environment assignment in the UI test. All production code changes are straightforward removals with a clean empty-fallback replacement. One P2 finding in the test file — CMUX_UI_TEST_FEED_TUI_BUN_PATH is set but never read by the app after this PR — has no runtime impact on production behavior. cmuxUITests/FeedSidebarUITests.swift — dead CMUX_UI_TEST_FEED_TUI_BUN_PATH launch environment entry. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[DockControlsStore.resolve] --> B{Project .cmux/dock.json found?}
B -- Yes --> C[loadConfig from project URL]
B -- No --> D{globalConfigURL exists?}
D -- "UI test mode + CMUX_UI_TEST_DOCK_CONFIG_PATH set" --> E[Redirect to temp test dock.json]
D -- Normal --> F[~/.config/cmux/dock.json]
E --> G{File exists?}
F --> G
G -- Yes --> H[loadConfig from global URL]
G -- No --> I[Return empty controls array - Dock shows empty state]
C --> J[Dock populated with controls]
H --> J
Reviews (1): Last reviewed commit: "fix: require custom dock config" | Re-trigger Greptile |
Merged from manaflow-ai/cmux#3366.
Follow-up to #3217.
Changes:
.cmux/dock.jsonor~/.config/cmux/dock.jsonexists.Verification:
git diff --checkjq empty Resources/Localizable.xcstringspython3 scripts/swift_file_length_budget.py --budget .github/swift-file-length-budget.tsvCMUX_SKIP_ZIG_BUILD=1 ./scripts/reload.sh --tag fix-dock-jsonSummary by CodeRabbit
New Behavior
Documentation