Skip to content

Conversation

@vkarpov15
Copy link
Member

Summary

  • add reference mapping for JSON output and pass it into the JSON renderer
  • show a hover View Document link for referenced ObjectId values in the JSON view
  • preserve document structure when filtering fields for the JSON renderer

Testing

  • not run (not requested)

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot finished reviewing on behalf of vkarpov15 November 28, 2025 21:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the ability to show clickable reference links for ObjectId fields in the JSON document view. When hovering over a referenced ObjectId value, a "View Document" link appears that navigates to the referenced document.

Key changes:

  • Updated mongoose devDependency from 8.x to 9.x
  • Added reference mapping that tracks which fields reference other models
  • Enhanced filterDocument to preserve nested document structure using mpath
  • Implemented hover-based reference link UI in the JSON viewer

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updated mongoose devDependency to version 9.x
frontend/src/models/models.js Added referenceMap computed property and improved filterDocument to preserve document structure
frontend/src/models/models.html Passed referenceMap to list-json component
frontend/src/list-json/list-json.js Added references prop and implemented reference detection/navigation logic
frontend/src/list-json/list-json.html Passed references prop to json-node component
frontend/src/list-json/json-node.html Extracted template to separate file with reference link UI

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vkarpov15 vkarpov15 merged commit 3d71748 into main Dec 1, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants