Skip to content

Conversation

andreaskienle
Copy link
Contributor

@andreaskienle andreaskienle commented Oct 1, 2025

This PR adds the YAML splitter (implementing openmcp-project/backlog#294)

2025-10-01_14-36-28.mp4

@andreaskienle andreaskienle marked this pull request as ready for review October 1, 2025 11:25
@Copilot Copilot AI review requested due to automatic review settings October 1, 2025 11:25
@andreaskienle andreaskienle marked this pull request as draft October 1, 2025 11:25
Copy link
Contributor

@Copilot 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 refactors the YAML viewing functionality from a modal dialog approach to a side panel splitter layout. The main change is migrating from YamlViewDialog to a new splitter-based system that displays YAML content in a resizable side panel.

  • Introduces a new splitter context and layout system for managing side panels
  • Refactors YAML viewing components to work with the new splitter approach
  • Updates all YAML button implementations to use the unified YamlViewButton component

Reviewed Changes

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

Show a summary per file
File Description
src/AppRouter.tsx Wraps the application in the new SplitterProvider and SplitterLayout
src/components/Splitter/*.tsx Implements the new splitter context and layout system
src/components/Yaml/YamlViewButton.tsx Refactored to support both resource and loader variants with splitter integration
src/components/Yaml/YamlSidePanel*.tsx New side panel components for displaying YAML content
src/components/Yaml/YamlViewer.tsx Simplified by removing UI controls, now just displays syntax-highlighted YAML
src/components/Yaml/YamlViewDialog.tsx Removed - replaced by splitter approach
src/components/Yaml/YamlViewButtonWithLoader.tsx Removed - functionality merged into unified YamlViewButton
Various component files Updated to use the new YamlViewButton API with variant specification

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

andreaskienle and others added 2 commits October 1, 2025 13:27
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andreaskienle andreaskienle marked this pull request as ready for review October 1, 2025 12:39
Copy link
Contributor

@lucasgoral lucasgoral left a comment

Choose a reason for hiding this comment

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

Good job!

@andreaskienle andreaskienle merged commit 7b6969c into main Oct 1, 2025
5 checks passed
@andreaskienle andreaskienle deleted the ft/yaml-splitter branch October 1, 2025 17:46
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