Skip to content

Conversation

@mcserep
Copy link
Collaborator

@mcserep mcserep commented Sep 30, 2025

Upgrade package dependencies of the new web GUI. No major version upgrades.

Replacing TreeView from the alpha releases of @mui/lab with the more mature and stable @mui/x-tree-view package.

@mcserep mcserep added this to the Upcoming Release milestone Sep 30, 2025
@mcserep mcserep self-assigned this Sep 30, 2025
@mcserep mcserep added Kind: Refactor 🔃 Target: WebGUI Issues related to the web frontend. labels Sep 30, 2025
@mcserep mcserep requested a review from Copilot September 30, 2025 04:52
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 upgrades package dependencies for the new web GUI, focusing on migrating from the alpha release @mui/lab TreeView components to the more stable @mui/x-tree-view package. The changes ensure compatibility with the updated API while maintaining existing functionality.

  • Migration from @mui/lab TreeView to @mui/x-tree-view package
  • Updates to TreeView event handlers to support the new API signature
  • Package dependency version upgrades across development and runtime dependencies

Reviewed Changes

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

File Description
webgui-new/package.json Removes @mui/lab dependency, adds @mui/x-tree-view, and updates all package versions
webgui-new/src/components/*/styled-components.tsx Updates TreeView imports from @mui/lab to @mui/x-tree-view
webgui-new/src/components/*/component.tsx Updates TreeView event handlers to handle new API signature that accepts string or string array

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

Comment on lines +117 to +120
return (_e: SyntheticEvent<Element, Event>, nodeIds: string | string[]) => {
// Handle both single string and array of strings
const nodeId = Array.isArray(nodeIds) ? nodeIds[0] : nodeIds;
if (!nodeId) return;
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

[nitpick] The logic for extracting the first nodeId is duplicated across multiple event handlers. Consider creating a utility function to handle this conversion pattern.

Copilot uses AI. Check for mistakes.
Comment on lines +138 to +141
return (_e: SyntheticEvent<Element, Event>, nodeIds: string | string[]) => {
// Handle both single string and array of strings
const nodeId = Array.isArray(nodeIds) ? nodeIds[0] : nodeIds;
if (!nodeId || !expandedFileNodes) return;
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

[nitpick] The nodeId extraction pattern is duplicated here as well. This reinforces the need for a shared utility function to handle the nodeIds parameter conversion.

Copilot uses AI. Check for mistakes.
@mcserep mcserep added this to Roadmap Sep 30, 2025
@github-project-automation github-project-automation bot moved this to In progress in Roadmap Sep 30, 2025
@mcserep mcserep merged commit 7e69ea2 into Ericsson:master Sep 30, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Roadmap Sep 30, 2025
@mcserep mcserep deleted the webgui-new-upgrade branch October 12, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind: Refactor 🔃 Target: WebGUI Issues related to the web frontend.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant