From 6696f1007a9cb56dd613eb299743ea642a90be14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 16 Apr 2021 10:07:33 +0200 Subject: [PATCH 1/9] builder data side panel now uses new tabs component --- .../builder/[application]/data/_layout.svelte | 59 ++++++++++--------- .../data/datasource/index.svelte | 2 +- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/packages/builder/src/pages/builder/[application]/data/_layout.svelte b/packages/builder/src/pages/builder/[application]/data/_layout.svelte index 5fe0b03780..a7dd60a93a 100644 --- a/packages/builder/src/pages/builder/[application]/data/_layout.svelte +++ b/packages/builder/src/pages/builder/[application]/data/_layout.svelte @@ -1,6 +1,6 @@ From 2255fdad64386de566eef75b61b539f38b5d6ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 16 Apr 2021 11:18:39 +0200 Subject: [PATCH 2/9] adds tab to left sidebar on design section --- .../FrontendNavigatePane.svelte | 85 ++++++++++--------- .../builder/[application]/data/_layout.svelte | 2 +- .../design/[assetType]/_layout.svelte | 2 +- 3 files changed, 48 insertions(+), 41 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte index 70e2306dcf..6f4872dec4 100644 --- a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte +++ b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte @@ -13,7 +13,7 @@ import Layout from "components/design/NavigationPanel/Layout.svelte" import NewScreenModal from "components/design/NavigationPanel/NewScreenModal.svelte" import NewLayoutModal from "components/design/NavigationPanel/NewLayoutModal.svelte" - import { Modal, Switcher, Select, Input } from "@budibase/bbui" + import { Modal, Switcher, Select, Input, Tabs, Tab } from "@budibase/bbui" const tabs = [ { @@ -28,13 +28,11 @@ let modal let routes = {} - $: tab = $params.assetType + $: selected = tabs.find(t => t.key === $params.assetType).title - const navigate = ({ detail }) => { - if (!detail) { - return - } - $goto(`../${detail.heading.key}`) + const navigate = ({detail}) => { + const { key } = tabs.find(t => t.title === detail) + $goto(`../${key}`) } const updateAccessRole = event => { @@ -68,33 +66,30 @@
- - {#if tab === FrontendTypes.SCREEN} - -
- -
- + +
+
+ +
+ + ($screenSearchString = null)} /> +
From 3ccc0a39ff34ef6aa09c19adee7436d13d23cff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 16 Apr 2021 11:49:08 +0200 Subject: [PATCH 4/9] Automations panel now uses the tabs component --- .../AutomationPanel/AutomationPanel.svelte | 40 ++++++++++++------- .../[application]/automate/_layout.svelte | 3 -- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte index 7d56867d03..2dcb7ab211 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte @@ -1,33 +1,45 @@
-

Automations

+ + +
+ + + + +
+
+
- - - - + \ No newline at end of file diff --git a/packages/builder/src/pages/builder/[application]/_reset.svelte b/packages/builder/src/pages/builder/[application]/_reset.svelte index 6d33137170..7d617dfc11 100644 --- a/packages/builder/src/pages/builder/[application]/_reset.svelte +++ b/packages/builder/src/pages/builder/[application]/_reset.svelte @@ -1,7 +1,7 @@