Skip to content

Conversation

@KinduD21
Copy link
Collaborator

@KinduD21 KinduD21 commented Jan 22, 2026

https://ilevel.atlassian.net/jira/software/c/projects/VL/boards/11?selectedIssue=VL-280


Note

Adds a new keyboard key display component.

  • New UKey (ui.text-key/UKey.vue) renders single keys and " + "-joined shortcuts, mapping common names to symbols via KEY_SYMBOLS
  • Configurable via variant (solid|outlined|subtle|soft), size (sm|md|lg), and color (design system colors); exposes keyRef and supports slot override
  • Exports wired in components.ts, components.d.ts, and component map updated in constants.js
  • Storybook examples (ui.text-key/storybook/stories.ts) and unit tests (ui.text-key/tests/UKey.test.ts) added
  • Supporting files: config.ts, constants.ts, types.ts

Written by Cursor Bugbot for commit a4d216c. This will update automatically on new commits. Configure here.

@KinduD21 KinduD21 self-assigned this Jan 22, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on March 1

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

if (keys.value.length === 0) return "";
if (keys.value.length === 1) return getDisplayValue(keys.value[0]);

return keys.value.map(getDisplayValue).join(" + ");
Copy link

Choose a reason for hiding this comment

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

Slot value format differs from default rendered output

Low Severity

The slot binding value differs from what the default slot content renders for keyboard shortcuts. The displayValue computed property joins keys with " + " (with spaces), producing "⌘ + K", while the default template rendering places keys adjacent to <span>+</span> without spaces, producing "⌘+K". Users overriding the slot and rendering {{ value }} will see different output than the default behavior.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Incorrect suggestion.
<span>+</span> is rendered with spaces because of parent's gap.

@KinduD21 KinduD21 merged commit 893282c into beta Jan 22, 2026
11 checks passed
@KinduD21 KinduD21 deleted the keyboard-component branch January 22, 2026 11:08
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