diff --git a/src/features/workbench/workspace/analysis-document-view.tsx b/src/features/workbench/workspace/analysis-document-view.tsx index a3a197e..c8d0ea8 100644 --- a/src/features/workbench/workspace/analysis-document-view.tsx +++ b/src/features/workbench/workspace/analysis-document-view.tsx @@ -7,37 +7,29 @@ import { Clock3, Database, FileSearch, - Focus, Minimize2, ShieldCheck, Sparkles, Trash2, X } from "lucide-react"; -import { motion, useReducedMotion } from "motion/react"; import { useEffect, useState } from "react"; import { showMapNotice } from "@/features/map/core"; import { cn } from "@/shared/ui/cn"; import { ARTIFACT_DANGER_ICON_BUTTON_CLASS_NAME, ARTIFACT_ICON_BUTTON_CLASS_NAME, - ARTIFACT_PRIMARY_ACTION_BUTTON_CLASS_NAME, - ARTIFACT_VIEW_CONTROL_BUTTON_CLASS_NAME, - ARTIFACT_VIEW_CONTROL_SHELL_CLASS_NAME + ARTIFACT_PRIMARY_ACTION_BUTTON_CLASS_NAME } from "./artifact-view-control-styles"; import type { AnalysisArtifact, AnalysisArtifactAction, AnalysisBlock, - AnalysisMetric, - ArtifactRequestedView, - WorkbenchSurfaceMode + AnalysisMetric } from "./workspace-model"; type AnalysisArtifactWorkspaceProps = { artifact: AnalysisArtifact; - surfaceMode: WorkbenchSurfaceMode; - onSetView: (view: ArtifactRequestedView) => void; onCollapse: () => void; onDestroy: () => void; }; @@ -46,8 +38,6 @@ type EvidenceBlock = Exclude; export function AnalysisArtifactWorkspace({ artifact, - surfaceMode, - onSetView, onCollapse, onDestroy }: AnalysisArtifactWorkspaceProps) { @@ -77,10 +67,7 @@ export function AnalysisArtifactWorkspace({ className="acrylic-panel relative m-3 grid h-[calc(100%-1.5rem)] min-h-0 grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-2xl border text-slate-900" lang="zh-CN" > - +
@@ -123,8 +110,6 @@ export function AnalysisArtifactWorkspace({ @@ -140,20 +125,9 @@ export function AnalysisArtifactWorkspace({ ); } -function ArtifactHeader({ - artifact, - reserveViewControlSpace -}: { - artifact: AnalysisArtifact; - reserveViewControlSpace: boolean; -}) { +function ArtifactHeader({ artifact }: { artifact: AnalysisArtifact }) { return ( -
+
@@ -448,36 +422,16 @@ function formatAnalyticalTimeRange(range: AnalysisArtifact["analyticalTimeRange" function ArtifactActionBar({ artifact, - surfaceMode, - onSetView, onCollapse, onDestroy }: { artifact: AnalysisArtifact; - surfaceMode: WorkbenchSurfaceMode; - onSetView: (view: ArtifactRequestedView) => void; onCollapse: () => void; onDestroy: () => void; }) { - const prefersReducedMotion = useReducedMotion(); - return (