Files
twenty/packages/twenty-front
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
..
2024-10-24 15:38:52 +02:00
2024-12-09 14:21:10 +01:00
2024-12-30 15:22:49 +01:00
2024-10-24 16:59:59 +02:00
2024-08-09 08:38:01 +02:00
2024-12-11 15:42:53 +01:00

Run yarn dev while server running on port 3000