[PR #337] [MERGED] feat: add command menu and keyboard shortcuts #890

Closed
opened 2026-02-26 19:30:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/337
Author: @G3root
Created: 8/31/2023
Status: Merged
Merged: 11/8/2023
Merged by: @Mythie

Base: feat/refreshHead: feat-cmdk


📝 Commits (5)

📊 Changes

7 files changed (+158 additions, -3 deletions)

View changed files

📝 apps/web/package.json (+1 -0)
📝 apps/web/src/app/(dashboard)/layout.tsx (+2 -0)
apps/web/src/components/(dashboard)/common/command-menu.tsx (+133 -0)
📝 package-lock.json (+11 -0)
📝 package.json (+1 -0)
packages/lib/constants/keyboard-shortcuts.ts (+2 -0)
📝 packages/ui/primitives/command.tsx (+8 -3)

📄 Description

fixes #317

Screencast 2023-08-31 22:55:18.webm

how to test

  1. press ⌘+k to open the command menu
  2. press N+S simultaneously to to navigate to the settings page
  3. press N+D simultaneously to to navigate to the documents page

Summary by CodeRabbit

New Features:

  • Added a new CommandMenu component to the dashboard, providing users with a quick and easy way to navigate to different pages and change the theme.
  • Enhanced the CommandDialog component with a new commandProps prop, allowing for more customization options.

Refactor:

  • Updated the dashboard layout to include the CommandMenu component, improving the user interface and overall user experience.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/337 **Author:** [@G3root](https://github.com/G3root) **Created:** 8/31/2023 **Status:** ✅ Merged **Merged:** 11/8/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat-cmdk` --- ### 📝 Commits (5) - [`97b801b`](https://github.com/documenso/documenso/commit/97b801b5f4fc2dbac9f9ecacc5cfbba6a81ae51d) chore: add react hot keys hook - [`aadb703`](https://github.com/documenso/documenso/commit/aadb703a560f8741e511f1627ee0f6e118cac3d4) fix: props - [`8f8cddc`](https://github.com/documenso/documenso/commit/8f8cddca3ea6601f58392f8cbae5b68fd5511ca9) feat: add command menu - [`c53d6fd`](https://github.com/documenso/documenso/commit/c53d6fdc256e8d7c70ee6e0486ae1d2138151922) chore: merge feat/refresh - [`35c319a`](https://github.com/documenso/documenso/commit/35c319a31f2855103852da78073b44e1c95ae8a5) chore: clean command-menu ### 📊 Changes **7 files changed** (+158 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/package.json` (+1 -0) 📝 `apps/web/src/app/(dashboard)/layout.tsx` (+2 -0) ➕ `apps/web/src/components/(dashboard)/common/command-menu.tsx` (+133 -0) 📝 `package-lock.json` (+11 -0) 📝 `package.json` (+1 -0) ➕ `packages/lib/constants/keyboard-shortcuts.ts` (+2 -0) 📝 `packages/ui/primitives/command.tsx` (+8 -3) </details> ### 📄 Description fixes #317 [Screencast 2023-08-31 22:55:18.webm](https://github.com/documenso/documenso/assets/84864519/9b3799b0-fa8e-4cb0-9cf4-0e43ae2f8401) ## how to test 1. press `⌘+k` to open the command menu 2. press `N+S` simultaneously to to navigate to the settings page 3. press `N+D` simultaneously to to navigate to the documents page <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit New Features: - Added a new `CommandMenu` component to the dashboard, providing users with a quick and easy way to navigate to different pages and change the theme. - Enhanced the `CommandDialog` component with a new `commandProps` prop, allowing for more customization options. Refactor: - Updated the dashboard layout to include the `CommandMenu` component, improving the user interface and overall user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:30:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#890
No description provided.