mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 13:05:49 +02:00
Add flow to query history CSV (#2492)
This commit is contained in:
@@ -85,7 +85,8 @@ export default function QueryPage({ params }: { params: { id: string } }) {
|
||||
|
||||
<Text className="flex flex-wrap whitespace-normal mt-1 text-xs">
|
||||
{chatSessionSnapshot.user_email || "-"},{" "}
|
||||
{timestampToReadableDate(chatSessionSnapshot.time_created)}
|
||||
{timestampToReadableDate(chatSessionSnapshot.time_created)},{" "}
|
||||
{chatSessionSnapshot.flow_type}
|
||||
</Text>
|
||||
|
||||
<Divider />
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Feedback } from "@/lib/types";
|
||||
import { Feedback, SessionType } from "@/lib/types";
|
||||
|
||||
export interface QueryAnalytics {
|
||||
total_queries: number;
|
||||
@@ -40,6 +40,7 @@ export interface ChatSessionSnapshot {
|
||||
messages: MessageSnapshot[];
|
||||
persona_name: string | null;
|
||||
time_created: string;
|
||||
flow_type: SessionType;
|
||||
}
|
||||
|
||||
export interface ChatSessionMinimal {
|
||||
@@ -51,6 +52,7 @@ export interface ChatSessionMinimal {
|
||||
persona_name: string | null;
|
||||
time_created: string;
|
||||
feedback_type: Feedback | "mixed" | null;
|
||||
flow_type: SessionType;
|
||||
}
|
||||
|
||||
export interface UsageReport {
|
||||
|
@@ -49,6 +49,7 @@ export type ValidStatuses =
|
||||
| "not_started";
|
||||
export type TaskStatus = "PENDING" | "STARTED" | "SUCCESS" | "FAILURE";
|
||||
export type Feedback = "like" | "dislike";
|
||||
export type SessionType = "Chat" | "Search" | "Slack";
|
||||
|
||||
export interface DocumentBoostStatus {
|
||||
document_id: string;
|
||||
|
Reference in New Issue
Block a user