|
|
@@ -1,6 +1,6 @@
|
|
|
/** Read-only Markdown viewer for logged plans and temporary review documents. */
|
|
|
import { useMemo } from 'react'
|
|
|
-import { IconCopyOutline16, MarkdownText, writeClipboard } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
|
+import { IconCopyOutline16, IconPlanOutline14, MarkdownText, writeClipboard } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
|
import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
|
|
|
import type {} from '@deepseek-ai/dsh-client-ui-sidebar-right/client'
|
|
|
import type {} from './plan-resource.ts'
|
|
|
@@ -42,9 +42,9 @@ export function PlanPreview({ useTabInfo, useResource, t }: PlanPreviewProps) {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Display the plan heading in its tab after resource recovery.
|
|
|
+ * Display a plan icon and the heading in its tab after resource recovery.
|
|
|
* @param props - Framework-bound tab identity and resource reader.
|
|
|
- * @returns the recovered plan title or the tab's initial localized label.
|
|
|
+ * @returns a decorative plan icon followed by the recovered title or initial localized label.
|
|
|
*/
|
|
|
export function PlanTitle({ useTabInfo, useResource }: PropsRuntime<'sidebar.right.pane.tab.title'>) {
|
|
|
const tab = useTabInfo()
|
|
|
@@ -52,5 +52,5 @@ export function PlanTitle({ useTabInfo, useResource }: PropsRuntime<'sidebar.rig
|
|
|
const params = tab.tab.navigation.params
|
|
|
const plan = isReviewPreviewAddress(tab.tab.navigation.address)
|
|
|
? (params !== undefined && 'planReview' in params ? params.planReview : undefined) : resource.value
|
|
|
- return <span>{plan?.title ?? tab.tab.title}</span>
|
|
|
+ return <><span className={css.titleIcon} aria-hidden="true"><IconPlanOutline14 size={16} /></span>{plan?.title ?? tab.tab.title}</>
|
|
|
}
|