Feat: Add log-detail page,Improve the style of chat boxes (#9119)

### What problem does this PR solve?

Feat: Add log-detail page,Improve the style of chat boxes #3221

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2025-07-30 17:38:31 +08:00
committed by GitHub
parent 840abd5239
commit db6d4307f2
9 changed files with 210 additions and 78 deletions

View File

@ -170,13 +170,15 @@ function MessageItem({
></ReferenceDocumentList>
)}
{isAssistant && currentEventListWithoutMessageById && (
<WorkFlowTimeline
currentEventListWithoutMessage={currentEventListWithoutMessageById(
item.id,
)}
currentMessageId={item.id}
canvasId={conversationId}
/>
<div className="mt-4">
<WorkFlowTimeline
currentEventListWithoutMessage={currentEventListWithoutMessageById(
item.id,
)}
currentMessageId={item.id}
canvasId={conversationId}
/>
</div>
)}
{isUser && (
<UploadedMessageFiles files={item.files}></UploadedMessageFiles>

View File

@ -143,6 +143,9 @@ const TimeRangePicker = ({
const [date, setDate] = useState<DateRange | undefined>(
selectDateRange || { from: today, to: today },
);
useEffect(() => {
setDate(selectDateRange);
}, [selectDateRange]);
const onChange = (e: DateRange | undefined) => {
if (!e) return;
setDate(e);