Skip to content

500 modal with available keyboard shortcuts#1416

Merged
mzur merged 15 commits intomasterfrom
500-modal-with-available-keyboard-shortcuts
Apr 15, 2026
Merged

500 modal with available keyboard shortcuts#1416
mzur merged 15 commits intomasterfrom
500-modal-with-available-keyboard-shortcuts

Conversation

@yannik131
Copy link
Copy Markdown
Contributor

closes #500

@yannik131 yannik131 marked this pull request as ready for review April 7, 2026 11:12
@yannik131 yannik131 requested a review from mzur April 7, 2026 11:20
@mzur mzur requested review from Copilot and removed request for mzur April 7, 2026 11:34
Copy link
Copy Markdown
Contributor

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.

Pull request overview

Adds an in-app “Keyboard shortcuts” modal to the image and video annotators (accessible from the settings tab) and de-duplicates the shortcuts documentation by extracting it into shared Blade partials used by both the manual and the modal.

Changes:

  • Introduce a reusable shortcutsButton Vue component that opens a modal and renders provided shortcuts content via slot.
  • Extract image/video shortcuts tables into resources/views/partials/*-annotation-shortcuts.blade.php and reuse them in the manual pages.
  • Add styling to keep settings top actions sticky and make the shortcuts modal scrollable.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
resources/views/videos/show/sidebar-settings.blade.php Adds shortcuts button (modal trigger) to video settings tab and tweaks screenshot button label/layout.
resources/views/partials/video-annotation-shortcuts.blade.php New shared partial containing the video shortcuts content (used in manual + modal).
resources/views/partials/image-annotation-shortcuts.blade.php New shared partial containing the image shortcuts content (used in manual + modal).
resources/views/manual/tutorials/videos/shortcuts.blade.php Replaces duplicated manual content with an include of the new video shortcuts partial.
resources/views/manual/tutorials/annotations/shortcuts.blade.php Replaces duplicated manual content with an include of the new image shortcuts partial.
resources/views/annotations/show/tabs/settings.blade.php Adds shortcuts button (modal trigger) to image annotator settings tab and tweaks screenshot button label/layout.
resources/assets/sass/videos/main.scss Imports shared settings tab styles for the video annotator UI.
resources/assets/sass/components/_settingsTab.scss New styles for sticky top actions area and shortcuts modal scrolling.
resources/assets/sass/annotations/sidebar/_main.scss Imports shared settings tab styles for the image annotator sidebar.
resources/assets/js/videos/components/settingsTab.vue Registers the new shortcutsButton component for the video settings tab template.
resources/assets/js/core/components/shortcutsButton.vue New modal-trigger component that teleports modal markup to <body> and renders slot content.
resources/assets/js/annotations/components/settingsTab.vue Registers the new shortcutsButton component for the image settings tab template.
resources/assets/js/annotations/components/screenshotButton.vue Renames button label to “Screenshot”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread resources/assets/js/core/components/shortcutsButton.vue Outdated
Comment thread resources/views/partials/video-annotation-shortcuts.blade.php Outdated
Comment thread resources/views/partials/video-annotation-shortcuts.blade.php Outdated
Comment thread resources/views/partials/image-annotation-shortcuts.blade.php Outdated
Comment thread resources/views/partials/image-annotation-shortcuts.blade.php Outdated
yannik131 and others added 6 commits April 7, 2026 18:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…com:biigle/core into 500-modal-with-available-keyboard-shortcuts
@mzur
Copy link
Copy Markdown
Member

mzur commented Apr 9, 2026

Is this ready for review again?

@yannik131 yannik131 requested a review from mzur April 9, 2026 09:04
Comment thread resources/assets/js/annotations/components/screenshotButton.vue Outdated
Comment thread resources/assets/js/annotations/components/shortcutsButton.vue
Comment thread resources/assets/js/core/keyboard.js
Comment thread resources/assets/sass/annotations/sidebar/_settingsTab.scss
Comment thread resources/assets/sass/components/_settingsTab.scss Outdated
@yannik131 yannik131 requested a review from mzur April 13, 2026 09:45
Copy link
Copy Markdown
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Looks good. Only one unnecessary import in the CSS which I'll remove myself.

Comment thread resources/assets/js/core/keyboard.js
Comment thread resources/assets/sass/videos/main.scss Outdated
@mzur mzur merged commit 7364829 into master Apr 15, 2026
7 of 8 checks passed
@mzur mzur deleted the 500-modal-with-available-keyboard-shortcuts branch April 15, 2026 14:18
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.

Modal with available keyboard shortcuts

3 participants