Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@

/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/naming-convention */
import { AnnotationPanel } from '@cozeloop/tag-components';
import {
TraceDetailPanel as TraceDetailPanelInner,
type TraceDetailPanelProps,
type TraceDetailContext,
tabs,
TraceDetail as TraceDetailInner,
type TraceDetailProps,
} from '@cozeloop/observation-component';
import { type span } from '@cozeloop/api-schema/observation';

interface TraceDetailOpenPanelProps {
forceOverwrite?: boolean;
Expand Down Expand Up @@ -44,20 +41,12 @@ export const TraceDetailWrapper = <

const traceDetailOpenPanelProps = forceOverwrite
? {
extraSpanDetailTabs: tabs,
spanDetailHeaderSlot: (
span: span.OutputSpan,
platform: string | number,
) => <AnnotationPanel span={span} platformType={platform} />,
extraSpanDetailTabs: [],
...props,
}
: {
...props,
extraSpanDetailTabs: tabs,
spanDetailHeaderSlot: (
span: span.OutputSpan,
platform: string | number,
) => <AnnotationPanel span={span} platformType={platform} />,
extraSpanDetailTabs: [],
};

return <Component {...(traceDetailOpenPanelProps as any)} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { type ConvertSpan } from '@/typings/span';
import { type SizedColumn } from '@/typings/index';
import { useTraceStore } from '@/stores/trace';
import { useCustomView } from '@/hooks/use-custom-view';
import { calcPresetTime, MAX_DAY_COUNT, PresetRange } from '@/consts/time';
import { calcPresetTime, PresetRange } from '@/consts/time';
import {
PreselectedDatePicker,
type PreselectedDatePickerRef,
Expand Down Expand Up @@ -168,7 +168,6 @@ export const QueryFilterBar = forwardRef<
endTime,
}}
datePickerOptions={datePickerOptions}
maxPastDateRange={MAX_DAY_COUNT}
onPresetChange={(preset, timeStamp) => {
if (timeStamp) {
handleTimeStampChange({
Expand Down
Loading