From 495c01c1a2a22d8f480dbec4cdf99bc15ecfbabc Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Aug 2024 11:19:56 +0100 Subject: [PATCH] Allow generating screens from the data section --- .../buttons/grid/GridGenerateButton.svelte | 42 ++++++++++++++++++- packages/builder/src/constants/index.js | 6 +++ .../NewScreen/CreateScreenModal.svelte | 39 +++++++++++++---- .../NewScreen/DatasourceModal.svelte | 38 ++++------------- .../_components/NewScreen/TypeModal.svelte | 2 + .../design/_components/NewScreen/utils.js | 17 ++++++++ 6 files changed, 103 insertions(+), 41 deletions(-) create mode 100644 packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/utils.js diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridGenerateButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridGenerateButton.svelte index 7a904d2eab..a54b4d51e1 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridGenerateButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridGenerateButton.svelte @@ -1,15 +1,24 @@ @@ -88,10 +108,30 @@ > Automation: when row is updated + { + open = false + startScreenWizard(AutoScreenTypes.TABLE) + }} + > + CRUD app + + { + open = false + startScreenWizard(AutoScreenTypes.FORM) + }} + > + Form + + +