-
Notifications
You must be signed in to change notification settings - Fork 29
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
Spike: Webview Row Context Menu #1519
Conversation
Code Climate has analyzed commit 50e1f73 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 96.4% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.4% (-0.1% change). View more on Code Climate. |
50e1f73
to
1a1a882
Compare
That'll be a bit difficult considering they're just native context menus and very different between OSes, like between my system and yours for example: You could say that they at least share light-on-dark, but I'd bet Windows and some Linux configurations would lead to dark-on-light context menus. There's no way we'll get an exact match without actually using native context menus (which seems not to be possible currently), so I think failing that we should focus on consistency with the rest of the webview instead. |
It is almost possible to do something useful with existing commands ( Screen.Recording.2022-04-05.at.12.50.43.pm.movBut looks like we will have to wait: microsoft/vscode#54285. Hopefully, this will be available soon. |
(providedExperiment?: string) => | ||
experiments.getQueuedExpThenRun( | ||
AvailableCommands.EXPERIMENT_REMOVE, | ||
providedExperiment |
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.
I actually think it would be easier/less obfuscated to pass the normal message back to the extension and use the internals/setup specific analytics for these context menu actions.
Messing around just gave me an idea: Screen.Recording.2022-04-05.at.12.57.36.pm.movInstead of using a context menu we could have right-click trigger a quickPick with the id preloaded. It would tell the user which experiment the command would be run against and shows the available commands. Could be a nice/quick interim solution whilst we wait for access to the native context menu. |
Even if a little less traditional or seamless, I'm all for it! Let's bring it up at the meeting. |
45 minutes I'll never get back: Screen.Recording.2022-04-06.at.10.34.10.am.mov🤸🏻 |
Closing (at least for now) in favor of a more native-looking menu provided via quickpick |
#1518 <- this
This PR adds a React/Tippy-based context menu to the experiments table, invoked by right-clicking any experiment or checkpoint row.
context-menu-demo.mp4
Current problems: