Răsfoiți Sursa

feat: 故事框架标题旁添加帮助图标链接到剧情推演室使用说明

Mochocyang 2 luni în urmă
părinte
comite
41475908b2
2 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 5 1
      src/components/layout/sidebar-panel.tsx
  2. 2 0
      src/config/help-links.ts

+ 5 - 1
src/components/layout/sidebar-panel.tsx

@@ -463,7 +463,11 @@ function StorySimulationSidebarPanel() {
   return (
     <div className="flex h-full flex-col">
       <div className="flex shrink-0 items-center justify-between border-b px-3 py-2">
-        <div className="text-sm font-semibold text-foreground">故事框架</div>
+        <PanelHeaderWithHelp
+          title="故事框架"
+          helpKey="storySimulation"
+          helpTitle="剧情推演室使用说明"
+        />
         <Button
           type="button"
           size="sm"

+ 2 - 0
src/config/help-links.ts

@@ -14,6 +14,8 @@ export const HELP_LINKS = {
   review: "https://tcnk9ik08e1c.feishu.cn/wiki/J6zCwjcWDiMAdkkOrjgcHtPjngh",
   graph: "https://tcnk9ik08e1c.feishu.cn/wiki/WlOpwrEQYiqczGkSohtcy3U0n7g",
   chapter: "https://tcnk9ik08e1c.feishu.cn/wiki/TUcKwxtqbihdYvk7bivcaaqGnfd",
+  storySimulation:
+    "https://tcnk9ik08e1c.feishu.cn/wiki/Za7hwMcM4iDy78kixapcOUrwnGb",
 } as const
 
 export type HelpLinkKey = keyof typeof HELP_LINKS