twenty/packages
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
..
twenty-chrome-extension Settings Option Card component (#8456) 2024-11-18 09:22:33 +00:00
twenty-docker Fast follows on 0.34 (#9034) 2024-12-12 15:46:48 +00:00
twenty-e2e-testing Playwright tests - stage 1 - login with email and password test (#8988) 2024-12-12 11:05:25 +01:00
twenty-emails start 0.40.0 canary (#9029) 2024-12-11 19:23:51 +01:00
twenty-front Refactored all single record actions (#9045) 2024-12-16 16:30:18 +01:00
twenty-server fix demo seed conflicting with dev seed (#9087) 2024-12-16 15:47:09 +01:00
twenty-tinybird refactor webhookAnalytics call and enrich analytics module (#8253) 2024-11-08 10:00:51 +01:00
twenty-ui 8726 workflow add a test button in workflow code step (#9016) 2024-12-13 10:16:29 +00:00
twenty-utils Fix docs build in CI (#5826) 2024-06-11 19:06:37 +02:00
twenty-website fix(): sleep before redirect (#9079) 2024-12-16 15:15:55 +01:00
twenty-zapier Default address country 🗺️ & Phone prefix ☎️ (#8614) 2024-12-02 12:34:05 +00:00