Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
be02e80
[feat] Implement shortcuts management panel with categorized commands
Myestery Aug 1, 2025
dda25af
feat: Add shortcuts tab and categorize commands in command store
Myestery Aug 1, 2025
1968333
feat: Add category to sidebar tab and extend bottom panel interface
Myestery Aug 1, 2025
10300f8
feat: Add shortcuts toggle button to sidebar and re order mindmap
Myestery Aug 1, 2025
b37d8d4
feat: Enhance bottom panel store with multi-panel support and shortcu…
Myestery Aug 1, 2025
e2efdd0
npm run locale
Myestery Aug 1, 2025
96ecb88
Merge branch 'main' into bottom-keybindings
Myestery Aug 1, 2025
06a7e66
cleanup commands and style
Myestery Aug 1, 2025
0f6b4ca
Merge branch 'main' into bottom-keybindings
Myestery Aug 1, 2025
d737a84
Reset src/locales to main branch state
Myestery Aug 2, 2025
197c8dd
[bugfix] Fix pre-commit hook cross-platform compatibility (#4643)
huchenlei Aug 1, 2025
912c64f
Ignore Claude local config (#4649)
benceruleanlu Aug 1, 2025
6cf4d69
[fix] Add type guard for SubgraphDefinition to improve TypeScript inf…
christian-byrne Aug 2, 2025
9c85776
[fix] Fix viewport sync in minimap and subgraphs navigation (#4644)
christian-byrne Aug 2, 2025
84123c5
[feat] Add keyboard shortcuts localization to main.json
Myestery Aug 2, 2025
f26d967
Merge branch 'main' into bottom-keybindings
Myestery Aug 2, 2025
d73d627
unit and browser tests
Myestery Aug 2, 2025
dce73e5
use correct type in EssentialsPanel
Myestery Aug 4, 2025
471ddf4
[refactor] Simplify command subcategory grouping in EssentialsPanel a…
Myestery Aug 4, 2025
34351f5
fix unused css
Myestery Aug 4, 2025
7c5ab4e
feat: add aria-label for keybinding display accessibility
Myestery Aug 4, 2025
732bcc4
fix: use filtered subcategories for rendering shortcuts
Myestery Aug 4, 2025
af90f5d
adjust keyboard shortcuts margins and responsiveness
Myestery Aug 7, 2025
256997e
fix playwright tests
Myestery Aug 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use filtered subcategories for rendering shortcuts
  • Loading branch information
Myestery committed Aug 4, 2025
commit 732bcc46be3d8240b0e71c178e4256215ee58e29
17 changes: 13 additions & 4 deletions src/components/bottomPanel/tabs/shortcuts/ShortcutsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="shortcuts-list">
<div class="grid gap-8 h-full grid-cols-3">
<div
v-for="(subcategoryCommands, subcategory) in subcategories"
v-for="(subcategoryCommands, subcategory) in filteredSubcategories"
:key="subcategory"
class="flex flex-col"
>
Expand All @@ -14,9 +14,7 @@

<div class="flex flex-col gap-1">
<div
v-for="command in subcategoryCommands.filter(
(cmd) => !!cmd.keybinding
)"
v-for="command in subcategoryCommands"
:key="command.id"
class="shortcut-item flex justify-between items-center py-2 rounded hover:bg-surface-100 dark-theme:hover:bg-surface-700 transition-colors duration-200"
>
Expand Down Expand Up @@ -48,6 +46,7 @@
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'

import type { ComfyCommandImpl } from '@/stores/commandStore'
Expand All @@ -59,6 +58,16 @@ const { subcategories } = defineProps<{
subcategories: Record<string, ComfyCommandImpl[]>
}>()

const filteredSubcategories = computed(() => {
const result: Record<string, ComfyCommandImpl[]> = {}

for (const [subcategory, commands] of Object.entries(subcategories)) {
result[subcategory] = commands.filter((cmd) => !!cmd.keybinding)
}

return result
})

const getSubcategoryTitle = (subcategory: string): string => {
const titleMap: Record<string, string> = {
workflow: t('shortcuts.subcategories.workflow'),
Expand Down