-
Notifications
You must be signed in to change notification settings - Fork 258
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
Tweaks to new cluster switch feature #10707
Tweaks to new cluster switch feature #10707
Conversation
…ge key shortcut to ALT key only + remove lodash usage
contentText = 'Switch clusters and keeps location'; | ||
} else if (this.routeCombo && | ||
typeof item === 'object' && | ||
!Array.isArray(item) && |
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.
why wouldn't array be a valid type here? it looks like lodash recognized them as objects https://lodash.com/docs/4.17.15#isObject
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.
It can be either a string
or an object
and logic changes based on that (different applications of the same function). Just making sure we aren't running code for a different var type if someone misuses this function.
Ah 😅 , I was missusing the isObject
lodash function here! I though it ruled out array's... I understand why they allow it, but it it's kinda misleading in the sense that they are usually helper functions for stuff just like this 😛
I've tried switching between clusters and it works as expected. I did notice the "stuck" problem but I am also unsure how we can work around it. |
Me neither... It's "system" stuff. You'll eventually find something system related that will leave you in a weird state. |
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.
lgtm
Summary
Fixes #10706
ALT
key onlyOccurred changes and/or fixed issues
Note: Pressing
COMMAND + F5
opens a system-like panel in mac OS, which might lead to the "icon" getting stuck and visible. PressingALT
multiple times seems to get it unstuck. We cannot prevent system key combinations from possible overrides and it's side-effects, imo. If there's additional info that might change this, let me know.video.mov
Technical notes summary
Areas or cases that should be tested
project/namespaces
alt
local
clusterproject/namespaces
but in thelocal
clusterAreas which could experience regressions
Screenshot/Video
Checklist