SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance Component Documentation Handling: Introduced integration component documentation retrieval and updated sidebar description handling in settings editor. Adjusted right sidebar layout for improved UI consistency.
Muhammad Hamza Khanc66ea344c5d3
diff --git a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts b/packages/app/src/builder-ui/components/Component.class/settings-editor.tsindex 68442f2e..f7507dee 100644--- a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts+++ b/packages/app/src/builder-ui/components/Component.class/settings-editor.ts@@ -21,8 +21,12 @@ async function onComponentLoad(sidebar) {const titleRightActions = sidebar.querySelector('.title-right-buttons');const titleLeftActions = sidebar.querySelector('.title-left-buttons');- // Add component description below title if available- const componentDoc = getComponentDocumentation(component.constructor.name);+ const isIntegrationComponent = !!component.properties?.template;++ // Add component/integration description below title if available+ const componentDoc = isIntegrationComponent+ ? getIntegrationDocumentation(component)+ : getComponentDocumentation(component.constructor.name);if (componentDoc) {const contentElement = sidebar.querySelector('.dialog-content');if (contentElement) {@@ -177,6 +181,17 @@ async function onComponentLoad(sidebar) {component.emit('settingsOpened', sidebar, this);}+function getIntegrationDocumentation(component: Component) {+ const description = component.properties?.template?.templateInfo?.sidebarDescription || '';+ const docsLink = component.properties?.template?.templateInfo?.docPath || '';+ return description+ ? {+ description: description,+ docsLink: docsLink,+ }+ : null;+}+function onTemplateCreateLoad(sidebar) {const component = this;let creatingTemplate = true;@@ -658,6 +673,11 @@ export async function editSettings(component: Component) {value:component.properties?.template?.templateInfo?.description || component.description || '',},+ sidebarDescription: {+ type: 'textarea',+ label: 'Sidebar Description',+ value: component.properties?.template?.templateInfo?.sidebarDescription || '',+ },icon: {type: 'textarea',label: 'Font Awesome Class or SVG',diff --git a/packages/app/views/pages/partials/studio/right-sidebar.ejs b/packages/app/views/pages/partials/studio/right-sidebar.ejsindex f4b6cdaa..30bef53a 100644--- a/packages/app/views/pages/partials/studio/right-sidebar.ejs+++ b/packages/app/views/pages/partials/studio/right-sidebar.ejs@@ -41,7 +41,7 @@<divclass="action-buttons w-full h-12 inline-flex justify-end px-0 border-t border-gray-100 border-solid bg-gray-50 m-0 align-middle">- <div class="action-content w-full"></div>+ <div class="action-content w-full flex items-center"></div><buttontype="button"class="del-btn tooltip-trigger tooltip-pill relative items-center h-12 p-3 text-sm font-medium bg-transparent focus:z-10 focus:ring-2"