feat(web): unify track and history identity

This commit is contained in:
lingniu
2026-07-20 02:15:08 +08:00
parent 537f8d9b45
commit 319728f976
5 changed files with 147 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import { useQuery } from '@tanstack/react-query';
import {
IconChevronLeft, IconChevronRight, IconClose, IconDownload, IconEyeClosed,
IconEyeOpened, IconList, IconMapPin, IconPause, IconPlay, IconRefresh, IconSearch
IconEyeOpened, IconList, IconMapPin, IconPause, IconPlay, IconRefresh, IconRoute, IconSearch
} from '@douyinfe/semi-icons';
import { Button, Card, Descriptions, Empty, Input, List, Select, Slider, Tag } from '@douyinfe/semi-ui';
import { FormEvent, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
@@ -264,6 +264,8 @@ const TrackRail = memo(function TrackRail({ draft, track, summaryItems, loading,
{showCommandBar ? <WorkspaceCommandBar
className="v2-track-query-header"
ariaLabel="轨迹查询任务栏"
eyebrow="轨迹回放"
icon={<IconRoute />}
title={contextTitle}
description={queryCollapsed ? `${appliedWindow} · ${appliedSource}` : '最长支持连续 7 天'}
status={loading ? '读取中' : track ? `${track.points.length.toLocaleString('zh-CN')}` : '等待查询'}