Skip to content
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

[ui] Add tooltip with keyboard shortcut info on top nav items #20977

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Apr 2, 2024

Summary & Motivation

Add a tooltip with info about keyboard shortcuts on Search and Help buttons.

Screenshot 2024-04-02 at 13 40 08

How I Tested These Changes

View top nav in app, hover on these buttons.

Copy link
Member Author

hellendag commented Apr 2, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hellendag and the rest of your teammates on Graphite Graphite

@hellendag hellendag requested review from bengotow and salazarm April 2, 2024 18:49
@hellendag hellendag marked this pull request as ready for review April 2, 2024 18:49
@@ -42,8 +42,7 @@ export const AppTopNav = ({children, allowGlobalReload = false}: Props) => {
}
}}
shortcutLabel={`⌥R - ${reloading ? 'Reloading' : 'Reload all code locations'}`}
// On OSX Alt + R creates ®, not sure about windows, so checking 'r' for windows
shortcutFilter={(e) => e.altKey && (e.key === '®' || e.key === 'r')}
shortcutFilter={(e) => e.altKey && e.code === 'KeyR'}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏾

Copy link

github-actions bot commented Apr 2, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-oqd2rnnsb-elementl.vercel.app
https://dish-search-tooltip.core-storybook.dagster-docs.io

Built with commit b590d3b.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag force-pushed the dish/flagged-top-nav branch from c6356be to b94b764 Compare April 2, 2024 21:07
@hellendag hellendag force-pushed the dish/search-tooltip branch from c835d58 to 7a6bbe4 Compare April 2, 2024 21:07
Copy link
Member Author

hellendag commented Apr 3, 2024

Merge activity

  • Apr 3, 9:50 AM CDT: @hellendag started a stack merge that includes this pull request via Graphite.
  • Apr 3, 9:52 AM CDT: Graphite rebased this pull request as part of a merge.
  • Apr 3, 9:53 AM CDT: @hellendag merged this pull request with Graphite.

Base automatically changed from dish/flagged-top-nav to master April 3, 2024 14:51
@hellendag hellendag force-pushed the dish/search-tooltip branch from 7a6bbe4 to b590d3b Compare April 3, 2024 14:51
@hellendag hellendag merged commit 864414b into master Apr 3, 2024
1 of 2 checks passed
@hellendag hellendag deleted the dish/search-tooltip branch April 3, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants