From 32194bc0cce89924577a266c703ce6d5f8e9f3bc Mon Sep 17 00:00:00 2001 From: Henri Courdent <122811744+hcourdent@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:22:43 +0200 Subject: [PATCH] Clarifying app section & quickstart (#333) --- docs/apps/0_app_editor/index.mdx | 75 +++-- docs/apps/0_toolbar.md | 2 +- docs/apps/1_canvas.mdx | 46 +-- docs/apps/2_connecting_components/index.mdx | 117 ++++++++ docs/apps/{2_outputs.md => 2_outputs.mdx} | 30 +- docs/apps/3_app-runnable-panel.mdx | 280 +++++++++++------- .../1_app_component_library.mdx | 6 +- .../2_app_runnable_triggers.md | 71 ----- .../3_app_component_configuration.mdx | 72 ++--- .../5_components_groups.md | 2 +- .../4_app_configuration_settings/list.mdx | 2 +- .../apps/0_app_editor/app-choose-language.png | Bin 30811 -> 110968 bytes .../0_app_editor/app-choose-language.png.avif | Bin 5621 -> 0 bytes .../0_app_editor/app-choose-language.png.webp | Bin 9504 -> 0 bytes .../0_app_editor/runnable_configuration.png | Bin 0 -> 489674 bytes .../apps/2_app_outputs/app-demo-outputs.png | Bin 45635 -> 710370 bytes .../2_app_outputs/app-demo-outputs.png.avif | Bin 8493 -> 0 bytes .../2_app_outputs/app-demo-outputs.png.webp | Bin 14330 -> 0 bytes .../2_app_outputs/app-output-collapsed.png | Bin 12818 -> 916851 bytes .../app-output-collapsed.png.avif | Bin 2139 -> 0 bytes .../app-output-collapsed.png.webp | Bin 3512 -> 0 bytes .../2_app_outputs/app-output-container.png | Bin 15855 -> 462755 bytes .../app-output-container.png.avif | Bin 2853 -> 0 bytes .../app-output-container.png.webp | Bin 4800 -> 0 bytes .../assets/apps/2_app_outputs/app_outputs.png | Bin 27318 -> 733753 bytes .../apps/2_app_outputs/app_outputs.png.avif | Bin 5532 -> 0 bytes .../apps/2_app_outputs/app_outputs.png.webp | Bin 7958 -> 0 bytes .../apps/2_app_outputs/search_output.png | Bin 0 -> 541029 bytes docs/assets/apps/inputs/data_sources.png | Bin 0 -> 510410 bytes .../23_instant_preview/index.mdx | 2 +- .../7_apps_quickstart/app_previewed.png | Bin 0 -> 474099 bytes .../7_apps_quickstart/apps_ouputs.png | Bin 1168437 -> 0 bytes .../7_apps_quickstart/apps_ouputs.png.avif | Bin 137317 -> 0 bytes .../7_apps_quickstart/apps_ouputs.png.webp | Bin 463754 -> 0 bytes .../7_apps_quickstart/apps_runnables.png | Bin 1167102 -> 0 bytes .../7_apps_quickstart/apps_runnables.png.avif | Bin 136226 -> 0 bytes .../7_apps_quickstart/apps_runnables.png.webp | Bin 461476 -> 0 bytes .../7_apps_quickstart/github_app.png | Bin 0 -> 635293 bytes .../7_apps_quickstart/index.mdx | 54 ++-- docs/misc/9_guides/aggrid_table/index.md | 2 +- docs/misc/9_guides/table/index.md | 2 +- sidebars.js | 23 +- static/videos/connecting_components.mp4 | Bin 0 -> 1465667 bytes 43 files changed, 470 insertions(+), 316 deletions(-) create mode 100644 docs/apps/2_connecting_components/index.mdx rename docs/apps/{2_outputs.md => 2_outputs.mdx} (81%) delete mode 100644 docs/apps/4_app_configuration_settings/2_app_runnable_triggers.md delete mode 100644 docs/assets/apps/0_app_editor/app-choose-language.png.avif delete mode 100644 docs/assets/apps/0_app_editor/app-choose-language.png.webp create mode 100644 docs/assets/apps/0_app_editor/runnable_configuration.png delete mode 100644 docs/assets/apps/2_app_outputs/app-demo-outputs.png.avif delete mode 100644 docs/assets/apps/2_app_outputs/app-demo-outputs.png.webp delete mode 100644 docs/assets/apps/2_app_outputs/app-output-collapsed.png.avif delete mode 100644 docs/assets/apps/2_app_outputs/app-output-collapsed.png.webp delete mode 100644 docs/assets/apps/2_app_outputs/app-output-container.png.avif delete mode 100644 docs/assets/apps/2_app_outputs/app-output-container.png.webp delete mode 100644 docs/assets/apps/2_app_outputs/app_outputs.png.avif delete mode 100644 docs/assets/apps/2_app_outputs/app_outputs.png.webp create mode 100644 docs/assets/apps/2_app_outputs/search_output.png create mode 100644 docs/assets/apps/inputs/data_sources.png create mode 100644 docs/getting_started/7_apps_quickstart/app_previewed.png delete mode 100644 docs/getting_started/7_apps_quickstart/apps_ouputs.png delete mode 100644 docs/getting_started/7_apps_quickstart/apps_ouputs.png.avif delete mode 100644 docs/getting_started/7_apps_quickstart/apps_ouputs.png.webp delete mode 100644 docs/getting_started/7_apps_quickstart/apps_runnables.png delete mode 100644 docs/getting_started/7_apps_quickstart/apps_runnables.png.avif delete mode 100644 docs/getting_started/7_apps_quickstart/apps_runnables.png.webp create mode 100644 docs/getting_started/7_apps_quickstart/github_app.png create mode 100644 static/videos/connecting_components.mp4 diff --git a/docs/apps/0_app_editor/index.mdx b/docs/apps/0_app_editor/index.mdx index fab5bb6e6..4c1a96f30 100644 --- a/docs/apps/0_app_editor/index.mdx +++ b/docs/apps/0_app_editor/index.mdx @@ -27,8 +27,11 @@ The app editor is composed of 6 main sections: 1. [Toolbar](/docs/apps/app_editor#toolbar) 2. [Canvas](#canvas) -3. [Outputs](#outputs) + +_Connecting components_:
+3. [Outputs](#outputs)
4. [Runnables panel](#runnables-panel) + 5. [Component Library and Settings](#component-library-and-settings) 6. [App Styling](#styling) @@ -45,7 +48,7 @@ The topbar helps you in your app editing.
@@ -68,7 +71,7 @@ The canvas at the center of the editor is where you design and see the overall U
@@ -80,7 +83,46 @@ The canvas at the center of the editor is where you design and see the overall U />
-## Outputs +## Connecting Components + +The strength of Windmill's app editor is the ability to connect everything together: +- components can be linked to each other +- components can be directly linked to scripts and trigger them +- background runnables can be that are run in the background on app refresh on when an input changes +- frontend scripts can be used to manipulate the client app state + +
+ +
+ +In Windmill's app editor: + +- the [runnable editor](#runnables-panel) catalogs and configures all the scripts present in the application +- the [output panel](#outputs) lists the outputs of all the components and scripts in your application + +### Runnables panel + +On the bottom panel of the editor, you can see the list of runnables of the app. The runnables are the scripts or flows that are linked to components, or ran in the background. They are used to perform actions when a component is clicked, to fetch data, etc. They make all the interactions of the app. + +![App Runnables panel](../../assets/apps/0_app_editor/app-runnable-panel.png) + +#### Learn more + +
+ +
+ +### Outputs On the left panel of the editor, you can see the list of outputs of the app. These outputs represent the states & results of the app and are categorized into four types: @@ -96,7 +138,7 @@ You can perform the following actions with the outputs: - Search for an output. - Edit the output's ID. - Select a component to view its outputs. -- [Connect an input to an output](../2_outputs.md#connecting-inputs). +- [Connect an input to an output](../2_connecting_components/index.mdx). #### Learn more @@ -115,23 +157,6 @@ You can perform the following actions with the outputs: />
-## Runnables panel - -On the bottom panel of the editor, you can see the list of runnables of the app. The runnables are the scripts or flows that are linked to components, or ran in the background. They are used to perform actions when a component is clicked, to fetch data, etc. They make all the interactions of the app. - -![App Runnables panel](../../assets/apps/0_app_editor/app-runnable-panel.png) - -#### Learn more - -
- -
- ## Component Library and Settings Finally, on the right panel of the editor, you can insert a new component, configure a component or edit the component styles. @@ -151,9 +176,9 @@ Finally, on the right panel of the editor, you can insert a new component, confi /> diff --git a/docs/apps/0_toolbar.md b/docs/apps/0_toolbar.md index d5fd397c3..10feba0f5 100644 --- a/docs/apps/0_toolbar.md +++ b/docs/apps/0_toolbar.md @@ -1,4 +1,4 @@ -# Toolbar Guide +# Toolbar The app toolbar is located at the top of the app editor. It enables you to adjust app settings. diff --git a/docs/apps/1_canvas.mdx b/docs/apps/1_canvas.mdx index b4953cd57..84867299d 100644 --- a/docs/apps/1_canvas.mdx +++ b/docs/apps/1_canvas.mdx @@ -1,10 +1,21 @@ import DocCard from '@site/src/components/DocCard'; -# Canvas Guide +# Canvas The app canvas is the main area of the app editor. It displays the app components and allows you to configure them. You can move and resize components and lock them to prevent them from being moved or resized by another component. +