Repository navigation
feat(query-editor): add code mirror search and replace in query editor - #9042
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. WalkthroughQueryEditor now renders a controlled CodeMirror search bar with shared key bindings and a dedicated editor container. Search highlight styles move to global styles, while duplicate component styles are removed. ChangesCodeMirror search integration
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change adds standard search and replace behavior to the query editor while preserving editor lifecycle and current-match highlighting; no actionable merge-blocking risk remains beyond normal checks. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant QueryEditor
participant CodeMirrorSearch
participant CodeMirror
QueryEditor->>CodeMirrorSearch: render search bar
QueryEditor->>CodeMirror: configure search bindings
CodeMirrorSearch->>CodeMirror: execute search
QueryEditor->>CodeMirror: mount editor in dedicated container
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
…rch-api-spec-graphql-query
|
Missing coverage
|
Description
Adds the search/replace bar to the GraphQL query editor, which was still using CodeMirror's legacy
findPersistentdialog.BRU-4215
Problem
Current Query editor didn't integrated code mirror search at all so cmd/ctrl+f showing the code mirror search.
Fix
Query editor
Highlight styles
Screenshots
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
New Features
Bug Fixes