Repository navigation
fix: select overview tab when closing all tabs - #8026
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR updates Redux tab-selection logic and a workspace focus helper to prefer the workspace Overview tab when the active tab is removed. It adds an E2E test verifying the behavior and updates multiple Playwright tests to scope collection locators via ChangesWorkspace Overview Tab Preference
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/workspace/close-all-tabs-lands-on-overview.spec.ts`:
- Around line 35-37: Add a stabilizing hover before each forced close click:
call await locators.tabs.closeTab('ReqTwo').hover(); immediately before the
existing await locators.tabs.closeTab('ReqTwo').click({ force: true }); and
similarly call await locators.tabs.closeTab('ReqOne').hover(); immediately
before await locators.tabs.closeTab('ReqOne').click({ force: true }); so the
pattern used by locators.tabs.closeTab and other helpers (e.g.,
closeEnvironmentPanel) is followed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8928a41e-4c43-49f0-8d38-6168d0c2a359
📒 Files selected for processing (3)
packages/bruno-app/src/providers/ReduxStore/slices/tabs.jspackages/bruno-app/src/providers/ReduxStore/slices/workspaces/getTabToFocusForCurrentWorkspace.jstests/workspace/close-all-tabs-lands-on-overview.spec.ts
Description
JIRA
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit
Bug Fixes
Tests