Skip to content

feat: make keyboard shortcuts help page #2116

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

Merged
merged 19 commits into from
Apr 9, 2025
Merged

feat: make keyboard shortcuts help page #2116

merged 19 commits into from
Apr 9, 2025

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Apr 7, 2025

Closes #1344

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
318 317 0 1 0
Test Changes Summary ✨4 🗑️1

✨ New Tests (4)

  1. Information button is visible and clickable (sidebar/sidebar.test.ts)
  2. Information popup contains documentation and keyboard shortcuts (sidebar/sidebar.test.ts)
  3. Clicking hotkeys button in information popup opens hotkeys panel with title (sidebar/sidebar.test.ts)
  4. Pressing Ctrl+K in editor page opens hotkeys panel (sidebar/sidebar.test.ts)

🗑️ Deleted Tests (1)

  1. Documentation button is visible and clickable (sidebar/sidebar.test.ts)

Bundle Size: 🔺

Current: 83.36 MB | Main: 83.29 MB
Diff: +0.07 MB (0.08%)

⚠️ Bundle size increased. Please review.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@astandrik astandrik marked this pull request as ready for review April 8, 2025 13:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 14 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • package.json: Language not supported
  • src/containers/AsideNavigation/AsideNavigation.scss: Language not supported
  • src/containers/AsideNavigation/InformationPopup/InformationPopup.scss: Language not supported
  • src/containers/AsideNavigation/i18n/en.json: Language not supported
  • src/containers/Tenant/Query/i18n/en.json: Language not supported

@@ -19,4 +19,9 @@
width: 300px;
padding: 10px;
}

&__hotkeys-panel-title {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add animation when open Shortcuts pane (like for Settings pane).

const [compact, setIsCompact] = useSetting<boolean>(ASIDE_HEADER_COMPACT_KEY);

const toggleInformationPopup = React.useCallback(
() => setInformationPopupVisible(!informationPopupVisible),
Copy link
Contributor

Choose a reason for hiding this comment

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

setInformationPopupVisible(prev => !prev)?

@@ -103,6 +102,17 @@ export function YqlEditor({
}
});

editor.addAction({
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you want to add it to editor's menu? If yes, you should add contextMenuGroupId, contextMenuOrder.


return 'https://ydb.tech/docs/en/';
Information = 'Information',
Hotkeys = 'Hotkeys',
}

export function AsideNavigation(props: AsideNavigationProps) {
Copy link
Member

Choose a reason for hiding this comment

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

Please, don't forget to make similar changes in internal version, there is a different navigation component there

@astandrik astandrik added this pull request to the merge queue Apr 9, 2025
Merged via the queue into main with commit b401559 Apr 9, 2025
7 checks passed
@astandrik astandrik deleted the astandrik.1344 branch April 9, 2025 12:55
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.

make keyboard shortcuts help page
3 participants