Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 23, 2025

Plan to Add Missing Shortcuts to Command Palette

  • Analyze the codebase and understand the issue
  • Add "Create event [n]" to DayCmdPalette
  • Add "Edit event [m]" to DayCmdPalette
  • Add tests for the new shortcuts
  • Run tests to validate changes (all 323 Day view tests pass)
  • Run linter and fix issues
  • Run broader test suite to ensure no regressions
  • Run security checks (no issues found)
  • Request code review (1 minor non-blocking comment)
  • Address review feedback - removed onEventTargetVisibility wrapper

Summary

Successfully added the missing "Create event [n]" and "Edit event [m]" shortcuts to the Day view command palette. The shortcuts were already implemented in the keyboard handlers but were not visible in the command palette UI. This ensures users can discover and use these shortcuts through Cmd+K.

Changes

  • Modified DayCmdPalette.tsx to add two new menu items with direct onClick handlers
  • Updated DayCmdPalette.test.tsx with tests for the new items
  • Removed unnecessary onEventTargetVisibility wrapper based on code review feedback
  • All 12 DayCmdPalette tests pass
  • No linting issues
  • No security vulnerabilities detected
Original prompt

This section details on the original issue you should resolve

<issue_title>shortcuts not added to cmd palette: n, m</issue_title>
<issue_description>### Where did this happen?

No response

Expected Behavior

Shortcut actions are supported in the cmd palette

Current Behavior

Image

The new shortcuts from #1352 are missing

Steps to Reproduce

  1. Go to day view
  2. type cmd+k

Possible Solution

Update cmd palette

Context

Ensuring we keep the cmd palette updated with the shortcuts available will encourage users to keep using the cmd palette</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 23, 2025 11:09
Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
Copilot AI changed the title [WIP] Update cmd palette to include shortcuts for n and m Add event shortcuts (n, m) to Day view command palette Dec 23, 2025
Copilot AI requested a review from victor-enogwe December 23, 2025 11:18
id: "create-event",
children: "Create event [n]",
icon: "PlusIcon",
onClick: onEventTargetVisibility(() => openEventFormCreateEvent()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need to use onEventTargetVisibility here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3258a57. Removed the wrapper since these functions dispatch events directly to DOM elements.

id: "edit-event",
children: "Edit event [m]",
icon: "PencilSquareIcon",
onClick: onEventTargetVisibility(() => openEventFormEditEvent()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above, no need to use onEventTargetVisibility here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3258a57. Both event shortcuts now use direct onClick handlers.

Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
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.

shortcuts not added to cmd palette: n, m

2 participants