Skip to content

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.

A/B Test weaver buttons + fix bring in view for component 86eur8xeh 86euqv02u

ali-inkco948a68083683
diff --git a/packages/app/src/builder-ui/workspace/Workspace.class.ts b/packages/app/src/builder-ui/workspace/Workspace.class.ts
index 2add2407..ac7d6a39 100644
--- a/packages/app/src/builder-ui/workspace/Workspace.class.ts
+++ b/packages/app/src/builder-ui/workspace/Workspace.class.ts
@@ -1971,15 +1971,21 @@ export class Workspace extends EventEmitter {
const viewport = document.querySelector('#workspace-container'); // Adjust if the ID is different
const viewportRect = viewport.getBoundingClientRect();
- // Check if component is not in the viewport
+ // Check if component is not in the viewport or behind left sidebar
+ const isLeftSidebarOpen =
+ window?.localStorage?.getItem('currentSidebarTab') === 'agentBuilderTab';
+ const isBehindSidebar = isLeftSidebarOpen && componentRect.left < viewportRect.left + 400;
+
if (
componentRect.top < viewportRect.top ||
componentRect.left < viewportRect.left ||
componentRect.bottom > viewportRect.bottom ||
- componentRect.right > viewportRect.right
+ componentRect.right > viewportRect.right ||
+ isBehindSidebar
) {
// Calculate the difference in position and adjust by the scale
- const deltaX = (viewportRect.left - componentRect.left + 100) / scale;
+ const sidebarOffset = isLeftSidebarOpen ? 400 : 0;
+ const deltaX = (viewportRect.left - componentRect.left + 100 + sidebarOffset) / scale;
const deltaY = (viewportRect.top - componentRect.top + 100) / scale;
// Get the current Panzoom translation values
diff --git a/packages/app/src/shared/constants/featureflags.ts b/packages/app/src/shared/constants/featureflags.ts
index ce704b8e..6368c0b0 100644
--- a/packages/app/src/shared/constants/featureflags.ts
+++ b/packages/app/src/shared/constants/featureflags.ts
@@ -15,6 +15,7 @@ export enum FEATURE_FLAGS {
ONBOARDING_CALLS_FOR_BUILDER_PLAN = 'onboarding-calls-for-builder-plan',
GO_TO_DASHBOARD_FROM_ONBOARDING = 'go-to-dashboard-from-onboarding',
TEST_FORM_TRY_DEBUG_BUTTON_EXPERIMENT = 'test-form-try-debug-button-experiment',
+ WEAVER_NEXT_STEPS_WITH_DEBUG_DEPLOY = 'weaver-next-steps-with-debug-deploy',
}
export const FEATURE_FLAG_PAYLOAD_RELEASE_TYPE = {
diff --git a/packages/app/static/css/smyth-global.css b/packages/app/static/css/smyth-global.css
index e5d7d5d4..2648e813 100644
--- a/packages/app/static/css/smyth-global.css
+++ b/packages/app/static/css/smyth-global.css
@@ -1014,7 +1014,7 @@ html {
.weaver-action-button {
background-color: #4ce09d;
border-radius: 8px;
- padding: 0.5rem 1rem;
+ padding: 0.5rem 0.75rem;
width: 100%;
font-size: 16px;
display: flex;
@@ -1191,7 +1191,9 @@ html {
border-radius: 6px;
font-size: 14px;
font-weight: 600;
- box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.18);
+ box-shadow:
+ 0 12px 28px rgba(0, 0, 0, 0.22),
+ 0 2px 6px rgba(0, 0, 0, 0.18);
}
.tooltip-pill.tooltip-trigger::after {
@@ -1432,7 +1434,7 @@ html {
/* AG Grid Theme Overrides - Fix green color inconsistency */
/* Override the default green alternating row colors with blue to match app theme */
.ag-theme-quartz .ag-row-even {
- background-color: #EBF3FE !important;
+ background-color: #ebf3fe !important;
/* smythos-blue-50 */
}
@@ -1443,18 +1445,18 @@ html {
/* Hover states using blue colors */
.ag-theme-quartz .ag-row-hover {
- background-color: #C2D8FC !important;
+ background-color: #c2d8fc !important;
/* smythos-blue-100 */
}
/* Selected row states using blue colors */
.ag-theme-quartz .ag-row-selected {
- background-color: #A5C6FB !important;
+ background-color: #a5c6fb !important;
/* smythos-blue-200 */
}
/* Ensure consistent styling for focus states */
.ag-theme-quartz .ag-row-focus {
- background-color: #C2D8FC !important;
+ background-color: #c2d8fc !important;
/* smythos-blue-100 */
-}
\ No newline at end of file
+}