Skip to content

Conversation

@grolu
Copy link
Contributor

@grolu grolu commented Jan 12, 2026

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #2701

Special notes for your reviewer:

Release note:

Fixed performance issues with project selection drop down menu

grolu added 3 commits January 12, 2026 17:13
Removed custom dynamic rendering & scrolling logic
Use slide-y-transition to keep project list size stable during transition. This avoids issues with scrolling
@gardener-robot gardener-robot added needs/review Needs review size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs/second-opinion Needs second review by someone else labels Jan 12, 2026
@gardener-robot
Copy link

@holgerkoser, @klocke-io You have pull request review open invite, please check

}
watch(selectedProject, project => {
const namespace = project?.spec?.namespace
if (!namespace) return
Copy link
Member

Choose a reason for hiding this comment

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

add brackets

const next = router.resolve(target)
let currentHighlightedIndex = findProjectIndexCaseInsensitive(projectName)
if (current.fullPath === next.fullPath) return
Copy link
Member

Choose a reason for hiding this comment

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

add brackets

:close-on-content-click="false"
:offset="[0]"
content-class="project-menu"
transition="slide-y-transition"
Copy link
Member

Choose a reason for hiding this comment

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

do we need this?

}
const newHighlightedProject = sortedAndFilteredProjectList.value[currentHighlightedIndex] // eslint-disable-line security/detect-object-injection
highlightedProjectName.value = newHighlightedProject.metadata.name
Copy link
Member

Choose a reason for hiding this comment

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

bug: type in filter value so that no projects will appear in list, like "foo", then use up / down key. This will result in the error

Uncaught TypeError: Cannot read properties of undefined (reading 'metadata') GMainProjectSelection.vue:371:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs/review Needs review needs/second-opinion Needs second review by someone else size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slow Gardener dashboard

3 participants