Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(dify-ui): render ContextMenu story trigger as a semantic area (#38420)
Copilotf8d47616c15d
diff --git a/packages/dify-ui/src/context-menu/index.stories.tsx b/packages/dify-ui/src/context-menu/index.stories.tsxindex ebdb37d9d4f..dcd58a1da21 100644--- a/packages/dify-ui/src/context-menu/index.stories.tsx+++ b/packages/dify-ui/src/context-menu/index.stories.tsx@@ -22,7 +22,7 @@ import {const TriggerArea = ({ label = 'Right-click inside this area' }: { label?: string }) => (<ContextMenuTriggeraria-label="context menu trigger area"- render={<button type="button" className="flex h-44 w-80 items-center justify-center rounded-xl border border-divider-subtle bg-background-default-subtle px-6 text-center text-sm text-text-tertiary outline-hidden select-none focus-visible:ring-2 focus-visible:ring-state-accent-solid" />}+ className="flex h-44 w-80 items-center justify-center rounded-xl border border-divider-subtle bg-background-default-subtle px-6 text-center text-sm text-text-tertiary select-none">{label}</ContextMenuTrigger>@@ -49,7 +49,7 @@ export const Default: Story = {render: () => (<ContextMenu><TriggerArea />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-36"><ContextMenuItem>Edit</ContextMenuItem><ContextMenuItem>Duplicate</ContextMenuItem><ContextMenuItem>Archive</ContextMenuItem>@@ -62,13 +62,13 @@ export const WithSubmenu: Story = {render: () => (<ContextMenu><TriggerArea />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-36"><ContextMenuItem>Copy</ContextMenuItem><ContextMenuItem>Paste</ContextMenuItem><ContextMenuSeparator /><ContextMenuSub><ContextMenuSubTrigger>Share</ContextMenuSubTrigger>- <ContextMenuSubContent>+ <ContextMenuSubContent popupClassName="w-36"><ContextMenuItem>Email</ContextMenuItem><ContextMenuItem>Slack</ContextMenuItem><ContextMenuItem>Copy link</ContextMenuItem>@@ -83,7 +83,7 @@ export const WithGroupLabel: Story = {render: () => (<ContextMenu><TriggerArea />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-44"><ContextMenuGroup><ContextMenuLabel>Actions</ContextMenuLabel><ContextMenuItem>Rename</ContextMenuItem>@@ -105,7 +105,7 @@ const WithRadioItemsDemo = () => {return (<ContextMenu><TriggerArea label={`Right-click to set density: ${value}`} />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-44"><ContextMenuRadioGroup value={value} onValueChange={setValue}><ContextMenuRadioItem value="compact">Compact@@ -137,7 +137,7 @@ const WithCheckboxItemsDemo = () => {return (<ContextMenu><TriggerArea label="Right-click to configure panel visibility" />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-44"><ContextMenuCheckboxItem checked={showToolbar} onCheckedChange={setShowToolbar}>Toolbar<ContextMenuCheckboxItemIndicator />@@ -163,7 +163,7 @@ export const WithLinkItems: Story = {render: () => (<ContextMenu><TriggerArea label="Right-click to open links" />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-56"><ContextMenuLinkItem href="https://docs.dify.ai" rel="noopener noreferrer" target="_blank">Dify Docs</ContextMenuLinkItem>@@ -183,7 +183,7 @@ export const Complex: Story = {render: () => (<ContextMenu><TriggerArea label="Right-click to inspect all menu capabilities" />- <ContextMenuContent>+ <ContextMenuContent popupClassName="w-44"><ContextMenuItem><span aria-hidden className="i-ri-pencil-line size-4 shrink-0 text-text-tertiary" />Rename@@ -198,7 +198,7 @@ export const Complex: Story = {<span aria-hidden className="i-ri-share-line size-4 shrink-0 text-text-tertiary" />Share</ContextMenuSubTrigger>- <ContextMenuSubContent>+ <ContextMenuSubContent popupClassName="w-36"><ContextMenuItem>Email</ContextMenuItem><ContextMenuItem>Slack</ContextMenuItem><ContextMenuItem>Copy Link</ContextMenuItem>