[Bug] useLabelKeyboard wired but labels array is empty — hotkeys do not trigger labels #2
Labels
No labels
backlog
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/avocet#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
useLabelKeyboardis called inLabelView.vuebut receives an emptylabels: []array:The composable maps number keys 1-9 to label names by index. With an empty array, pressing 1-9 does nothing.
Fix
Pass
labels.value(the fetched labels list) instead of a hardcoded empty array:Note:
labelsis aref<string[]>fetched fromGET /api/config/labelson mount. The composable call needs to either watch the ref or be called after fetch completes.Acceptance Criteria
1-9maps to the corresponding label in the fetched listhskips,S→ skip,D→ discard,U→ undo all work as documented