Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

always show generate with ai in column mode when opened (#6602)

Shahmir Varqha54186223f271
diff --git a/frontend/src/components/editor/renderers/CellArray.tsx b/frontend/src/components/editor/renderers/CellArray.tsx
index a957d2add3..bbdad02c06 100644
--- a/frontend/src/components/editor/renderers/CellArray.tsx
+++ b/frontend/src/components/editor/renderers/CellArray.tsx
@@ -63,7 +63,7 @@ export const CellArray: React.FC<CellArrayProps> = (props) => {
return (
<SortableCellsProvider multiColumn={props.appConfig.width === "columns"}>
<SortableContext
- id="column-container"
+ data-testid="column-container"
items={columnIds}
strategy={horizontalListSortingStrategy}
>
@@ -342,8 +342,10 @@ const AddCellButtons: React.FC<{
"shadow-sm border border-border rounded transition-all duration-200 overflow-hidden divide-x divide-border flex",
!isAiButtonOpen && "w-fit",
isAiButtonOpen &&
- "opacity-100 w-full max-w-4xl shadow-lg shadow-(color:--blue-3)",
+ "w-full max-w-4xl shadow-lg shadow-(color:--blue-3)",
className,
+ // Always show the AI input when it's open
+ isAiButtonOpen && "opacity-100",
)}
>
{renderBody()}