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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: escape newline in column name (#1548)
Myles Scolnick636e090f48fb
diff --git a/frontend/src/components/editor/boundary/ErrorBoundary.tsx b/frontend/src/components/editor/boundary/ErrorBoundary.tsxindex 92054e3280..4a6eccbd6a 100644--- a/frontend/src/components/editor/boundary/ErrorBoundary.tsx+++ b/frontend/src/components/editor/boundary/ErrorBoundary.tsx@@ -17,7 +17,7 @@ export const ErrorBoundary: React.FC<PropsWithChildren> = (props) => {const FallbackComponent: React.FC<FallbackProps> = (props) => {return (- <div className="flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto">+ <div className="flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto px-6"><h1 className="text-2xl font-bold">Something went wrong</h1><pre className="text-xs bg-muted/40 border rounded-md p-4 max-w-[80%] whitespace-normal">{props.error?.message}diff --git a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsxindex 30c1032023..98773eaa7d 100644--- a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx+++ b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx@@ -80,33 +80,35 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {);const helpPaneBody = (- <Suspense>- <div className="flex flex-col h-full flex-1 overflow-hidden mr-[-4px]">- <div className="p-3 border-b flex justify-between items-center">- <div className="text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1">- {selectedPanel}+ <ErrorBoundary>+ <Suspense>+ <div className="flex flex-col h-full flex-1 overflow-hidden mr-[-4px]">+ <div className="p-3 border-b flex justify-between items-center">+ <div className="text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1">+ {selectedPanel}+ </div>+ <Button+ data-testid="close-helper-pane"+ className="m-0"+ size="xs"+ variant="text"+ onClick={() => setIsOpen(false)}+ >+ <XIcon className="w-4 h-4" />+ </Button></div>- <Button- data-testid="close-helper-pane"- className="m-0"- size="xs"- variant="text"- onClick={() => setIsOpen(false)}- >- <XIcon className="w-4 h-4" />- </Button>+ {selectedPanel === "files" && <FileExplorerPanel />}+ {selectedPanel === "errors" && <ErrorsPanel />}+ {selectedPanel === "variables" && <VariablePanel />}+ {selectedPanel === "dependencies" && <DependencyGraphPanel />}+ {selectedPanel === "outline" && <OutlinePanel />}+ {selectedPanel === "datasources" && <DataSourcesPanel />}+ {selectedPanel === "documentation" && <DocumentationPanel />}+ {selectedPanel === "snippets" && <SnippetsPanel />}+ {selectedPanel === "logs" && <LogsPanel />}</div>- {selectedPanel === "files" && <FileExplorerPanel />}- {selectedPanel === "errors" && <ErrorsPanel />}- {selectedPanel === "variables" && <VariablePanel />}- {selectedPanel === "dependencies" && <DependencyGraphPanel />}- {selectedPanel === "outline" && <OutlinePanel />}- {selectedPanel === "datasources" && <DataSourcesPanel />}- {selectedPanel === "documentation" && <DocumentationPanel />}- {selectedPanel === "snippets" && <SnippetsPanel />}- {selectedPanel === "logs" && <LogsPanel />}- </div>- </Suspense>+ </Suspense>+ </ErrorBoundary>);const helperPane = (diff --git a/frontend/src/utils/strings.ts b/frontend/src/utils/strings.tsindex 5e8cfed8a8..a15a4fcdfc 100644--- a/frontend/src/utils/strings.ts+++ b/frontend/src/utils/strings.ts@@ -33,6 +33,7 @@ export const Strings = {.replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """)- .replaceAll("'", "'");+ .replaceAll("'", "'")+ .replaceAll("\n", " ");},};