From 94b4a29e58ba774559a4ccf0528ccd5ee3637e9d Mon Sep 17 00:00:00 2001 From: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:52:35 +0000 Subject: [PATCH 01/19] fix: Remove unnecessary exception that caused failure when using binding --- src/writer/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer/core.py b/src/writer/core.py index 72c03c3c7..cd2de92eb 100644 --- a/src/writer/core.py +++ b/src/writer/core.py @@ -1610,7 +1610,7 @@ def _get_handler_callable(self, target_component: Component, event_type: str) -> return None handler = target_component.handlers.get(event_type) if not handler: - raise ValueError(f"""Invalid handler. Couldn't find the handler for event type "{ event_type }" on component "{ target_component.id }".""") + return None if handler.startswith("$runWorkflow_"): workflow_key = handler[13:] From 9718048dba25c4af25bf04d141c9095acc95a39e Mon Sep 17 00:00:00 2001 From: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:31:59 +0000 Subject: [PATCH 02/19] chore: Settings panels refactor and new design --- src/ui/src/builder/BuilderApp.vue | 85 ++--- src/ui/src/builder/BuilderCodePanel.vue | 19 +- .../src/builder/BuilderEmbeddedCodeEditor.vue | 9 +- src/ui/src/builder/BuilderHeader.vue | 33 -- src/ui/src/builder/BuilderLogIndicator.vue | 2 + src/ui/src/builder/BuilderLogPanel.vue | 12 +- src/ui/src/builder/BuilderPanel.vue | 104 +++++- ...rSettings.vue => BuilderSettings copy.vue} | 8 +- .../src/builder/BuilderSettingsProperties.vue | 204 ----------- src/ui/src/builder/BuilderSidebar.vue | 4 +- src/ui/src/builder/BuilderStateExplorer.vue | 1 + src/ui/src/builder/BuilderSwitcher.vue | 3 - src/ui/src/builder/builderManager.ts | 8 +- .../{ => settings}/BuilderFieldsAlign.vue | 8 +- .../{ => settings}/BuilderFieldsColor.vue | 6 +- .../{ => settings}/BuilderFieldsKeyValue.vue | 6 +- .../{ => settings}/BuilderFieldsObject.vue | 6 +- .../{ => settings}/BuilderFieldsPadding.vue | 10 +- .../{ => settings}/BuilderFieldsShadow.vue | 6 +- .../{ => settings}/BuilderFieldsText.vue | 6 +- .../{ => settings}/BuilderFieldsTools.vue | 16 +- .../{ => settings}/BuilderFieldsWidth.vue | 8 +- .../src/builder/settings/BuilderSettings.vue | 245 ++++++++++++++ .../settings/BuilderSettingsActions.vue | 319 ++++++++++++++++++ .../{ => settings}/BuilderSettingsBinding.vue | 6 +- .../BuilderSettingsHandlers.vue | 11 +- .../builder/settings/BuilderSettingsMain.vue | 110 ++++++ .../settings/BuilderSettingsMiniDocs.vue | 43 +++ .../settings/BuilderSettingsProperties.vue | 195 +++++++++++ .../BuilderSettingsVisibility.vue | 10 +- .../{ => settings}/BuilderTemplateInput.vue | 4 +- src/ui/src/builder/sharedStyles.css | 55 --- src/ui/src/wds/WdsButton.vue | 18 +- 33 files changed, 1106 insertions(+), 474 deletions(-) rename src/ui/src/builder/{BuilderSettings.vue => BuilderSettings copy.vue} (93%) delete mode 100644 src/ui/src/builder/BuilderSettingsProperties.vue rename src/ui/src/builder/{ => settings}/BuilderFieldsAlign.vue (96%) rename src/ui/src/builder/{ => settings}/BuilderFieldsColor.vue (95%) rename src/ui/src/builder/{ => settings}/BuilderFieldsKeyValue.vue (97%) rename src/ui/src/builder/{ => settings}/BuilderFieldsObject.vue (90%) rename src/ui/src/builder/{ => settings}/BuilderFieldsPadding.vue (97%) rename src/ui/src/builder/{ => settings}/BuilderFieldsShadow.vue (97%) rename src/ui/src/builder/{ => settings}/BuilderFieldsText.vue (93%) rename src/ui/src/builder/{ => settings}/BuilderFieldsTools.vue (95%) rename src/ui/src/builder/{ => settings}/BuilderFieldsWidth.vue (96%) create mode 100644 src/ui/src/builder/settings/BuilderSettings.vue create mode 100644 src/ui/src/builder/settings/BuilderSettingsActions.vue rename src/ui/src/builder/{ => settings}/BuilderSettingsBinding.vue (90%) rename src/ui/src/builder/{ => settings}/BuilderSettingsHandlers.vue (97%) create mode 100644 src/ui/src/builder/settings/BuilderSettingsMain.vue create mode 100644 src/ui/src/builder/settings/BuilderSettingsMiniDocs.vue create mode 100644 src/ui/src/builder/settings/BuilderSettingsProperties.vue rename src/ui/src/builder/{ => settings}/BuilderSettingsVisibility.vue (93%) rename src/ui/src/builder/{ => settings}/BuilderTemplateInput.vue (98%) diff --git a/src/ui/src/builder/BuilderApp.vue b/src/ui/src/builder/BuilderApp.vue index 5f4162a71..72180b19b 100644 --- a/src/ui/src/builder/BuilderApp.vue +++ b/src/ui/src/builder/BuilderApp.vue @@ -1,6 +1,9 @@