Files
twenty/packages/twenty-front
Raphaël Bosi 8ce6f6daea Refactored all single record actions (#9045)
## Context

Refactored all single record actions so they can be defined by a config
file.
This refactoring is made with the idea that later the actions will be
stored in the database, so we needed a way to serialize them.
For each object we can define a config file, if an object has no config
file, it falls back to the default config.
I introduced action hooks, which return:
- `shouldBeRegistered`: `boolean` Whether the action should be
registered.
- `onClick`: `() => void` The code that will be executed when we click
on an action
- `ConfirmationModal`?: `React.ReactNode` (optional) The confirmation
modal which will be displayed on click

This PR also closes #8973 

## Next steps

- Refactor multiple records actions
- Refactor no selection actions
- Add tests
2024-12-16 16:30:18 +01:00
..
2024-03-31 10:53:37 +02:00
2024-10-24 15:38:52 +02:00
2024-12-09 14:21:10 +01:00
2023-12-10 18:10:54 +01:00
2024-07-29 13:03:09 +02:00
2024-10-24 16:59:59 +02:00
2024-10-30 15:50:56 +01: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