[FRONT COMPONENTS] Add snackbar to the API (#18136)
## PR description - Adds `enqueueSnackbar` to the front component host communication API, allowing front components to display snack bar notifications (success, error, info, warning) to the user. - Introduces `frontComponentId` to the `FrontComponentExecutionContext` and a `useFrontComponentId` hook, enabling front components to identify themselves (used for dedupe keys). - Wires error/success notifications into the `Action`, `ActionLink`, and `ActionOpenSidePanelPage` SDK components -> actions now catch errors and display them as snack bars, and `Action` supports an optional `notifyOnEnd` prop for success feedback. ## Video QA ### Success example https://github.com/user-attachments/assets/8cc53d31-d9eb-49a8-9220-f7866ec1b415 ### Error example https://github.com/user-attachments/assets/a37d65b8-0b5f-4adb-bcdb-571bb2b997c3 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -23,6 +23,8 @@ jobs:
|
||||
if: needs.changed-files-check.outputs.any_changed == 'true'
|
||||
timeout-minutes: 30
|
||||
runs-on: depot-ubuntu-24.04
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
strategy:
|
||||
matrix:
|
||||
task: [lint, typecheck, test]
|
||||
|
||||
Reference in New Issue
Block a user