- Updated the getLogsForTask function to accept optional parameters for owner and status, allowing for more granular log retrieval based on task state. - Modified the TeamMemberLogsFinder to include owner's session logs when the task is in progress, improving visibility into ongoing activities. - Introduced new UI components for better task tracking, including ActiveTasksBlock and ProvisioningProgressBlock, enhancing user experience during team provisioning. - Refactored related components to support the new functionality, ensuring seamless integration across the application.
27 lines
1,006 B
TypeScript
27 lines
1,006 B
TypeScript
import { MarkdownViewer } from '@renderer/components/chat/viewers/MarkdownViewer';
|
|
|
|
import type { ParsedMessageReply } from '@renderer/utils/agentMessageFormatting';
|
|
|
|
interface ReplyQuoteBlockProps {
|
|
reply: ParsedMessageReply;
|
|
/** When set, limits height of the reply body (e.g. "max-h-56"). Omit to show full content. */
|
|
bodyMaxHeight?: string;
|
|
}
|
|
|
|
export const ReplyQuoteBlock = ({
|
|
reply,
|
|
bodyMaxHeight = 'max-h-56',
|
|
}: ReplyQuoteBlockProps): React.JSX.Element => (
|
|
<div className="space-y-2">
|
|
<div
|
|
className="rounded-md border-l-2 border-[var(--color-border-emphasis)] bg-[var(--color-surface)] px-3 py-2"
|
|
style={{ opacity: 0.7 }}
|
|
>
|
|
<span className="mb-0.5 block text-[10px] font-medium text-[var(--color-text-muted)]">
|
|
@{reply.agentName}
|
|
</span>
|
|
<p className="line-clamp-3 text-xs text-[var(--color-text-muted)]">{reply.originalText}</p>
|
|
</div>
|
|
<MarkdownViewer content={reply.replyText} maxHeight={bodyMaxHeight} copyable />
|
|
</div>
|
|
);
|