Skip to content

feat(CommandPalette): handle subcommands #4226

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

Open
wants to merge 26 commits into
base: v3
Choose a base branch
from

Conversation

HugoRCD
Copy link
Member

@HugoRCD HugoRCD commented May 26, 2025

πŸ”— Linked issue

Resolves #2003

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@HugoRCD HugoRCD self-assigned this May 26, 2025
Copy link

pkg-pr-new bot commented May 26, 2025

npm i https://pkg.pr.new/@nuxt/ui@4226

commit: 2c1ca3c

Copy link
Contributor

nuxthub-admin bot commented May 26, 2025

βœ… Deployed ui3

Deployed ui3 2c1ca3c to preview

πŸ”— feat-command-palette-submenu.ui-6q2.pages.dev
πŸ“Œ cdd39a22.ui-6q2.pages.dev
πŸ“±
View QR Code QR code linking to deployment URL.

πŸ“‹ View deployment logs

@HugoRCD HugoRCD marked this pull request as ready for review May 27, 2025 13:29
@HugoRCD HugoRCD requested a review from benjamincanac May 27, 2025 13:29
acc.splice(group.index, 0, group)
return acc
}, [...fuseGroups])
return Object.entries(groupsById)
Copy link
Member

Choose a reason for hiding this comment

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

Why change this logic? πŸ€”

return activeSubmenu.value.group.items?.map(item => ({ ...(item as T), group: activeSubmenu.value!.group.id })) || []
}

return props.groups?.filter((group) => {
Copy link
Member

Choose a reason for hiding this comment

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

Why remove the ignoreFilter logic?

@@ -173,6 +198,13 @@ const inputProps = useForwardProps(reactivePick(props, 'loading', 'loadingIcon')
// eslint-disable-next-line vue/no-dupe-keys
const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.commandPalette || {}) })())

defineShortcuts({
Copy link
Member

Choose a reason for hiding this comment

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

Is this really necessary since we already handle esc? πŸ€”

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.

CommandPalette: support submenus
2 participants