Raphaël Bosi
0084946b76
608 fix hotkey scope and dropdown issues in the command menu ( #11121 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/608
- Introduces a new hotkey scope `CommandMenuFocused`
- Fixes hotkey scopes issues in the side panel
2025-03-24 14:34:09 +00:00
Raphaël Bosi
2680f1d6be
583 refactor useCommandMenu hook ( #10984 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/583
- Split hook into smaller hooks
- Create tests
2025-03-18 15:37:28 +01:00
Raphaël Bosi
daa501549e
271 remove is command menu v2 enabled ( #10809 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/271
This PR
- Removes the feature flag IS_COMMAND_MENU_V2_ENABLED
- Removes all old Right drawer components
- Removes the Action menu bar
- Removes unused Copilot page
2025-03-12 16:26:29 +01:00
Raphaël Bosi
dddf67ed01
Prevent command menu backspace shortcut on V1 ( #10555 )
...
Before:
https://github.com/user-attachments/assets/87be65fa-4b24-4e15-b0a4-ca1aa06f5ca6
After:
https://github.com/user-attachments/assets/ef9076a0-214f-4680-a455-157a206e8197
2025-02-27 18:14:45 +01:00
Raphaël Bosi
dd12bc31ca
Fix record page context store instance id ( #10508 )
...
Fixes bug introduced by https://github.com/twentyhq/twenty/pull/10272
- Replace show page context store instance id by 'main-context-store'
2025-02-26 15:05:22 +00:00
Raphaël Bosi
9838bec004
259 add navigation hotkeys for command menu level 2 ( #10043 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/259
https://github.com/user-attachments/assets/abdcb44d-fc13-4597-befc-da99c94c1ef0
2025-02-06 10:07:20 +01:00
Raphaël Bosi
ce296fae4f
Add search records actions to the command menu ( #9892 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/253 and
https://github.com/twentyhq/core-team-issues/issues/256 .
- Created `CommandMenuList`, a component used at the root level of the
command menu and inside the search page of the command menu
- Refactored record agnostic actions
- Added shortcuts to the action menu entries (`/` key for the search)
and updated the design of the shortcuts
- Reordered actions at the root level of the command menu
https://github.com/user-attachments/assets/e1339cc4-ef5d-45c5-a159-6817a54b92e9
2025-01-29 17:23:40 +00:00
Raphaël Bosi
ff41768e8f
250 implement restore context button on command menu ( #9836 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/250
https://github.com/user-attachments/assets/9c120188-497d-4273-9137-f8d0de3bd884
2025-01-24 16:10:02 +01:00
Raphaël Bosi
530a18558b
9426 migrate workflow pages to command menu ( #9515 )
...
Closes twentyhq/core-team-issues#53
- Removes command menu top bar text input when the user is not on root
page
- Fixes bug when resetting command menu context
- Added animations on command menu open and close
- Refactored workflow visualizer code to remove unnecessary rerenders
and props drilling
https://github.com/user-attachments/assets/1da3adb8-220b-407b-9279-30354d3100d3
2025-01-13 16:53:57 +01:00
Raphaël Bosi
a2f2f4148a
Migrate right drawer record page to the command menu ( #9459 )
...
Closes #9423
https://github.com/user-attachments/assets/0d93f170-8c4f-43ff-a0ca-3d2874d44820
2025-01-09 09:58:14 +01:00
Raphaël Bosi
1091bc657d
Command menu refactoring ( #9257 )
...
Refactored the `CommandMenu` component to make it more readable and
easier to refactor.
The file was way too big so I introduced a few hooks and eliminated code
duplication.
Introduced:
- `useMatchCommands` hook to match commands with the search
- `useCommandMenuCommands` which returns all command menu commands
- `useMatchingCommandMenuCommands` to return the commands matched with
the search
- `CommandMenuContainer` to simplify the `DefaultLayout`
- Unmounted the `CommandMenu` when it wasn't opened to improve
performances
I also introduced a new behavior: Automatically select the first item
when opening the command menu:
https://github.com/user-attachments/assets/4b683d49-570e-47c9-8939-99f42ed8691c
2024-12-30 15:22:49 +01:00