mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
1ec4945eaf
Summary: Add a library to open custom context menus, rendered in HTML. This allows us to customize options when right clicking on diffs or commits, which lets us expose new options The API is to call one hook, and pass that to `onContextMenu`. I think it's pretty easy to use and should be powerful enough to provide onClick callbacks with recoil and to generate the list of menu items using recoil. I have a few small nice features, like a divider option, and a little animation + fade out when selecting an item. It also dismisses the context menu if you click outside, or press escape. I don't yet support accessibility use cases unfortunately. Ideally when you right click, it lets you press tab or up/down arrow to select different options and press enter to confirm. We should add support for this soon. Adding context menus will let us add a lot of smaller misc features, which can be an easy way for new folks to add features to ISL. Some examples include copying commit hash, hiding a commit, etc. Reviewed By: bolinfest Differential Revision: D42492674 fbshipit-source-id: 7c0bae5411c0bbc474109857c2e3d80d5ee1ce9d |
||
---|---|---|
.. | ||
.vscode | ||
eslint-rules | ||
isl | ||
isl-server | ||
reviewstack | ||
reviewstack.dev | ||
shared | ||
textmate | ||
vscode | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
LICENSE | ||
package.json | ||
verify-addons-folder.py | ||
yarn.lock |