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.

UX hint for live docs (#1114)

Akshay Agrawal71a0bd3b9995
diff --git a/frontend/src/components/editor/chrome/panels/documentation-panel.tsx b/frontend/src/components/editor/chrome/panels/documentation-panel.tsx
index 0f13620a8f..5b18815fc9 100644
--- a/frontend/src/components/editor/chrome/panels/documentation-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/documentation-panel.tsx
@@ -4,7 +4,7 @@ import { renderHTML } from "@/plugins/core/RenderHTML";
import { useAtomValue } from "jotai";
import React from "react";
import "../../documentation.css";
-import { BookMarkedIcon } from "lucide-react";
+import { TextSearchIcon } from "lucide-react";
import { PanelEmptyState } from "./empty-state";
export const DocumentationPanel: React.FC = () => {
@@ -13,9 +13,9 @@ export const DocumentationPanel: React.FC = () => {
if (!documentation) {
return (
<PanelEmptyState
- title="No documentation"
- description="Move your cursor over a symbol to see its documentation."
- icon={<BookMarkedIcon />}
+ title="View docs as you type"
+ description="Move your text cursor over a symbol to see its documentation."
+ icon={<TextSearchIcon />}
/>
);
}
diff --git a/frontend/src/components/editor/chrome/types.ts b/frontend/src/components/editor/chrome/types.ts
index b49c8e7e31..2f63f40438 100644
--- a/frontend/src/components/editor/chrome/types.ts
+++ b/frontend/src/components/editor/chrome/types.ts
@@ -6,7 +6,7 @@ import {
FunctionSquareIcon,
NetworkIcon,
ScrollTextIcon,
- BookMarkedIcon,
+ TextSearchIcon,
FileTextIcon,
LucideIcon,
SquareDashedBottomCodeIcon,
@@ -28,7 +28,7 @@ export const PANEL_ICONS: Record<PanelType, LucideIcon> = {
variables: FunctionSquareIcon,
dependencies: NetworkIcon,
outline: ScrollTextIcon,
- documentation: BookMarkedIcon,
+ documentation: TextSearchIcon,
logs: FileTextIcon,
snippets: SquareDashedBottomCodeIcon,
};
diff --git a/frontend/src/components/editor/chrome/wrapper/footer.tsx b/frontend/src/components/editor/chrome/wrapper/footer.tsx
index 9a0245a09e..f8c54c8768 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer.tsx
@@ -58,7 +58,7 @@ export const Footer: React.FC = () => {
{renderIcon("outline")}
</FooterItem>
<FooterItem
- tooltip="View documentation"
+ tooltip="View live docs"
selected={selectedPanel === "documentation"}
onClick={() => openApplication("documentation")}
>