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.

fix: add toast when cell link is copied

Myles Scolnick342bd0d2657a
diff --git a/frontend/src/components/editor/actions/useCellActionButton.tsx b/frontend/src/components/editor/actions/useCellActionButton.tsx
index 1a08fd571a..446d52ef9a 100644
--- a/frontend/src/components/editor/actions/useCellActionButton.tsx
+++ b/frontend/src/components/editor/actions/useCellActionButton.tsx
@@ -59,6 +59,7 @@ import { switchLanguage } from "@/core/codemirror/language/extension";
import { useSplitCellCallback } from "../cell/useSplitCell";
import { canLinkToCell, createCellLink } from "@/utils/cell-urls";
import { copyToClipboard } from "@/utils/copy";
+import { toast } from "@/components/ui/use-toast";
export interface CellActionButtonProps
extends Pick<CellData, "name" | "config"> {
@@ -383,6 +384,7 @@ export function useCellActionButtons({ cell }: Props) {
: "Only named cells can be linked to",
handle: async () => {
await copyToClipboard(createCellLink(name));
+ toast({ description: "Link copied to clipboard" });
},
},
],