ui(assets): move AI assistant to the bottom feedback position
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shishengliang
2026-09-23 16:02:50 +08:00
parent 7e9760f5db
commit d20bc71efe
3 changed files with 15 additions and 13 deletions
+1 -10
View File
@@ -1,5 +1,5 @@
import React from 'react';
import { ChevronDown, Filter, Loader2, Search, Sparkles } from 'lucide-react';
import { ChevronDown, Filter, Loader2, Search } from 'lucide-react';
import { motion } from 'motion/react';
import type { SubjectOption } from '../api';
@@ -7,8 +7,6 @@ export type AssetsTab = 'overview' | 'department' | 'region' | 'customer';
export type AssetsTheme = 'soft' | 'minimal' | 'vibrant';
interface AssetsHeaderProps {
onOpenAssistant: () => void;
assistantTrigger: React.RefObject<HTMLButtonElement | null>;
activeTab: AssetsTab;
setActiveTab: React.Dispatch<React.SetStateAction<AssetsTab>>;
theme: AssetsTheme;
@@ -33,8 +31,6 @@ const TABS = [
];
export function AssetsHeader({
onOpenAssistant,
assistantTrigger,
activeTab,
setActiveTab,
theme,
@@ -81,11 +77,6 @@ export function AssetsHeader({
</div>
</div>
</div>
<div className="flex justify-end px-4 pb-1">
<button ref={assistantTrigger} type="button" onClick={onOpenAssistant} className="inline-flex min-h-8 items-center gap-1.5 rounded-lg border border-blue-100 bg-blue-50 px-3 text-xs font-semibold text-blue-600 hover:bg-blue-100">
<Sparkles size={14} aria-hidden="true" />AI 问数
</button>
</div>
{/* 归属公司作用域筛选 (Scope Chip) */}
<div className="flex items-center justify-center px-4 pt-1">
<div className="relative" ref={subjectDropdownRef}>