-
Notifications
You must be signed in to change notification settings - Fork 117
fix(frontend) performance issues in main menu project selection #2715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Removed custom dynamic rendering & scrolling logic Use slide-y-transition to keep project list size stable during transition. This avoids issues with scrolling
|
@holgerkoser, @klocke-io You have pull request review open invite, please check |
| } | ||
| watch(selectedProject, project => { | ||
| const namespace = project?.spec?.namespace | ||
| if (!namespace) return |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #2701
Special notes for your reviewer:
Release note: