Skip to content

Conversation

@Lasserich
Copy link
Contributor

Before:
image

After:
image

@Lasserich Lasserich requested review from Hubert-Szczepanski-SAP and andreaskienle and removed request for andreaskienle October 31, 2025 09:19
@andreaskienle andreaskienle requested a review from Copilot October 31, 2025 10:44
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 refactors the graph visualization UI to use a popover-based filter menu instead of radio buttons, updates edge styling, and introduces semi-transparent node backgrounds based on border colors. The default color grouping is also changed from 'provider' to 'source'.

  • Replaced the radio button panel with a popover filter button for color grouping selection
  • Changed edge styling from arrow markers to solid strokes
  • Introduced semi-transparent node backgrounds derived from border colors

Reviewed Changes

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

File Description
src/components/Graphs/useGraph.ts Removed MarkerType import, added semi-transparent node backgrounds, and replaced arrow markers with styled edges
src/components/Graphs/Graph.tsx Replaced radio button panel with popover-based filter menu, changed default colorBy to 'source'
src/components/Graphs/Graph.module.css Added styles for the new top-right legend container, filter icon, and popover button layout

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

@Lasserich
Copy link
Contributor Author

@andreaskienle I have fixed the dark mode now. Maybe you can have another look. :D

Copy link
Contributor

@andreaskienle andreaskienle left a comment

Choose a reason for hiding this comment

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

Heyo ✌️

A few remarks down below.

One other thought: Instead of having <Legend> and the filter button side by side in <Graph>, could also think about integrating the filter button directly with the legend. .legendContainer already comes with some styling, like border, shadow and so on. Maybe it makes sense to put them directly side-by-side there (in a single component) and re-use those styles. Or refactor a container component which can be used to render either the legend or the filter button. Just a thought.

@Lasserich
Copy link
Contributor Author

@andreaskienle thanks for the review, I have addressed your concerns. Please have a look. 👍

Copy link
Contributor

@andreaskienle andreaskienle left a comment

Choose a reason for hiding this comment

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

Much better now 👍🏻

I think we can remove the marked lines in the coding and then merge it

"colorsProvider": "Provider",
"colorsProviderConfig": "Provider Config",
"colorizedTitle": "Group by: ",
"colorizedTitle": "Group by",
Copy link
Contributor

Choose a reason for hiding this comment

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

Needed?

Suggested change
"colorizedTitle": "Group by",

overflow: hidden;
padding: 2px;
font-family: var(--sapFontFamily);
position: relative;
Copy link
Contributor

Choose a reason for hiding this comment

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

Needed?

Suggested change
position: relative;

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.

3 participants