Skip to content

make dashboard documents use JSON layout and pull model definitions from top-level state#161

Merged
vkarpov15 merged 2 commits intomainfrom
vkarpov15/dashboard-document-cleanup
Feb 1, 2026
Merged

make dashboard documents use JSON layout and pull model definitions from top-level state#161
vkarpov15 merged 2 commits intomainfrom
vkarpov15/dashboard-document-cleanup

Conversation

@vkarpov15
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 1, 2026 21:09
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@vercel
Copy link

vercel bot commented Feb 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio Ready Ready Preview, Comment Feb 1, 2026 9:37pm

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 pull request refactors dashboard documents to use a JSON layout component instead of the specialized document-details component, and centralizes model schema definitions by pulling them from top-level application state rather than computing them per document.

Changes:

  • Added modelSchemaPaths to the application state by fetching all model definitions during app initialization via api.Model.listModels()
  • Replaced the document-details component with list-json component for rendering dashboard documents
  • Modified the backend listModels action to return detailed schema paths for all models including reference information

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
frontend/src/index.js Fetches modelSchemaPaths during initialization and adds it to the reactive state for use throughout the application
frontend/src/dashboard-result/dashboard-document/dashboard-document.js Replaces per-document schema computation with a references map derived from centralized modelSchemaPaths state
frontend/src/dashboard-result/dashboard-document/dashboard-document.html Switches from document-details to list-json component for rendering documents
backend/actions/Model/listModels.js Extends the listModels action to return comprehensive schema path information for all models including nested schemas

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

@vkarpov15 vkarpov15 merged commit c8dcf21 into main Feb 1, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants