Repository navigation
feat: find/replace in JSON result and document views - #2
Merged
Merged
Conversation
Reading a large result set or a deeply nested document as pretty JSON had no way to locate a value except scrolling and eyeballing it. Backs the JSON result view and the row inspector's "View document JSON" modal with CodeMirror instead of a plain <pre>, adding a find bar with next/previous cycling, a match-case toggle, and replace/ replace-all. Edits stay local to the viewer's buffer only — these are read-only surfaces, so nothing is written back to the collection. CodeMirror only highlights matches while its own search state is "open", so the component opens that panel and hides it with CSS in favour of its own bar, refocusing the visible find field. Pin the project to Node 22.12.0 via Volta so `npm install` resolves the correct native optional-dependency binaries on the first pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<pre>.npm installresolves the correct native optional-dependency binaries on the first pass.Test plan
npm run typecheckpassesnpm run ui-checkpasses end-to-end against a realmongod, including new steps that open the find bar, search, cycle matches, toggle match case, and replace-all in both the JSON result view and the document inspector modal🤖 Generated with Claude Code