Open
Conversation
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.
📋 Add Additional Information Panel with Markdown Support
Summary
Implements a draggable, minimizable panel on the inference map screen that displays markdown-formatted content from an
additional_informationfield in API payloads. Supports both inference-level and layer-level information with tab-based navigation.Features Added
1. Additional Information Panel Component
New web component
additional-info-panel.jswith:2. Markdown Support
marked.jsfor markdown parsing3. Dual Content Sources
4. Persistent State
additional_informationexists in API responseTechnical Implementation
New Files:
app/js/components/inference/additional-info-panel.js- Main component (703 lines)app/js/components/inference/additional-info-panel.test.js- Unit testscypress/e2e/inference-page/additional-info-panel.cy.js- E2E testsdocs/ADDITIONAL_INFO_PANEL_README.md- User documentationdocs/ADDITIONAL_INFO_API_EXAMPLES.md- API examplesADDITIONAL_INFO_PANEL_PLAN.md- Implementation planModified Files:
package.json- Addedmarked(^11.2.0) anddompurify(^3.0.9) dependenciesapp/js/pages/inference-page.js- Integrated panel componentAPI Requirements
Backend APIs should include
additional_informationfield in responses:Inference-level:
{ "inference_id": "inf_001", "additional_information": { "title": "Dataset Overview", "content": "# Welcome\n\nThis is **markdown** content..." } }Layer-level:
{ "layers": [ { "layer_id": "layer_001", "display_name": "Temperature", "additional_information": { "title": "Temperature Data", "content": "## About\n\nTemperature measurements..." } } ] }See
docs/ADDITIONAL_INFO_API_EXAMPLES.mdfor complete examples.User Experience
additional_informationexistsSecurity
Testing
Unit Tests:
app/test/components/inference/additional-info-panel.test.jsE2E Tests:
cypress/e2e/inference-page/additional-info-panel.cy.jsDependencies Added
marked(^11.2.0) - Markdown parsingdompurify(^3.0.9) - HTML sanitizationDocumentation
docs/ADDITIONAL_INFO_PANEL_README.md- User guidedocs/ADDITIONAL_INFO_API_EXAMPLES.md- API integration guideADDITIONAL_INFO_PANEL_PLAN.md- Technical specificationsFuture Enhancements