frontend: components: redux: Add feature to keep resource maps expanded by default#4524
frontend: components: redux: Add feature to keep resource maps expanded by default#4524mudit06mah wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
ea68857 to
64a75d8
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a configurable setting to keep resource map groups expanded by default, addressing user feedback that manually re-expanding groups after each map reload was cumbersome. The feature allows users to disable the auto-collapse behavior for graphs with more than 50 nodes.
Changes:
- Added a new
resourceMapAlwaysExpandboolean setting to the Redux config store - Modified GraphView component to respect the new setting and conditionally show the "Expand All" button
- Added UI toggle in Settings panel for users to enable/disable the feature
- Updated translation files across all supported locales
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/redux/configSlice.ts | Adds resourceMapAlwaysExpand setting initialization with default value of false |
| frontend/src/components/resourceMap/GraphView.tsx | Implements expansion logic using the new setting, auto-expands on setting change, and conditionally shows "Expand All" button |
| frontend/src/components/App/Settings/Settings.tsx | Adds switch control for the new setting with proper state management |
| frontend/src/i18n/locales/*/translation.json | Adds translation key for the setting label (English only, others left empty) |
| frontend/src/components/App/Settings/snapshots/Settings.General.stories.storyshot | Updates snapshot to include the new setting UI element |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
64a75d8 to
79512d4
Compare
|
@illume I have made the changes suggested by copilot, Please Review this PR again :) |
79512d4 to
3ef32aa
Compare
|
@illume will merging be paused untill the release of v0.40.0? |
Yeah, we usually slow down for some days before the release to be a bit more careful about what to merge in. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 17 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
illume
left a comment
There was a problem hiding this comment.
Can you please address the open review comments?
I would make the context a bit more specific than components and redux.
frontend: Settings: resourceMap: configSlice: Add feature to keep resource maps expanded by default
Perhaps add the changes section from the PR description to the git message body?
3ef32aa to
7c3d775
Compare
|
There’s some typescript issues in the failing GitHub checks. |
b4c946f to
b3aba26
Compare
Hi, Sorry! These occurred because I added two new props to the |
Cool, all checks are passing now. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b3aba26 to
0ba64ac
Compare
|
@illume I have made changes instructed by copilot, PTAL :) |
0ba64ac to
5353cfd
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ource maps expanded by default
5353cfd to
abe1736
Compare
|
@illume Made the suggested changes, PTAL |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: illume, mudit06mah The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
This PR adds switch in Settings to keep resource map groups expanded by default.
Related Issue
Fixes #4486
Changes
configSlice.tsto add settingGraphView.tsxandgraphGrouping.tsxScreenshots
collapse_graph.mp4