mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-21 14:12:42 +02:00
add a tiny bit of clarity to index doc counts (#2414)
This commit is contained in:
@@ -19,11 +19,12 @@ import { buildCCPairInfoUrl } from "./lib";
|
|||||||
import { localizeAndPrettify } from "@/lib/time";
|
import { localizeAndPrettify } from "@/lib/time";
|
||||||
import { getDocsProcessedPerMinute } from "@/lib/indexAttempt";
|
import { getDocsProcessedPerMinute } from "@/lib/indexAttempt";
|
||||||
import { ErrorCallout } from "@/components/ErrorCallout";
|
import { ErrorCallout } from "@/components/ErrorCallout";
|
||||||
import { SearchIcon } from "@/components/icons/icons";
|
import { InfoIcon, SearchIcon } from "@/components/icons/icons";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import ExceptionTraceModal from "@/components/modals/ExceptionTraceModal";
|
import ExceptionTraceModal from "@/components/modals/ExceptionTraceModal";
|
||||||
import { PaginatedIndexAttempts } from "./types";
|
import { PaginatedIndexAttempts } from "./types";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import { Tooltip } from "@/components/tooltip/Tooltip";
|
||||||
|
|
||||||
// This is the number of index attempts to display per page
|
// This is the number of index attempts to display per page
|
||||||
const NUM_IN_PAGE = 8;
|
const NUM_IN_PAGE = 8;
|
||||||
@@ -192,7 +193,19 @@ export function IndexingAttemptsTable({ ccPair }: { ccPair: CCPairFullInfo }) {
|
|||||||
<TableHeaderCell>Time Started</TableHeaderCell>
|
<TableHeaderCell>Time Started</TableHeaderCell>
|
||||||
<TableHeaderCell>Status</TableHeaderCell>
|
<TableHeaderCell>Status</TableHeaderCell>
|
||||||
<TableHeaderCell>New Doc Cnt</TableHeaderCell>
|
<TableHeaderCell>New Doc Cnt</TableHeaderCell>
|
||||||
<TableHeaderCell>Total Doc Cnt</TableHeaderCell>
|
<TableHeaderCell>
|
||||||
|
<div className="w-fit">
|
||||||
|
<Tooltip
|
||||||
|
width="max-w-sm"
|
||||||
|
content="Total number of documents replaced in the index during this indexing attempt"
|
||||||
|
>
|
||||||
|
<span className="cursor-help flex items-center">
|
||||||
|
Total Doc Cnt
|
||||||
|
<InfoIcon className="ml-1 w-4 h-4" />
|
||||||
|
</span>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
</TableHeaderCell>
|
||||||
<TableHeaderCell>Error Message</TableHeaderCell>
|
<TableHeaderCell>Error Message</TableHeaderCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
|
@@ -14,12 +14,14 @@ export function Tooltip({
|
|||||||
delayDuration = 200,
|
delayDuration = 200,
|
||||||
side = "top",
|
side = "top",
|
||||||
align = "center",
|
align = "center",
|
||||||
|
width,
|
||||||
}: {
|
}: {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
content: ReactNode;
|
content: ReactNode;
|
||||||
delayDuration?: number;
|
delayDuration?: number;
|
||||||
side?: "top" | "right" | "bottom" | "left";
|
side?: "top" | "right" | "bottom" | "left";
|
||||||
align?: "start" | "center" | "end";
|
align?: "start" | "center" | "end";
|
||||||
|
width?: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<TooltipPrimitive.Provider delayDuration={delayDuration}>
|
<TooltipPrimitive.Provider delayDuration={delayDuration}>
|
||||||
@@ -33,7 +35,11 @@ export function Tooltip({
|
|||||||
text-inverted
|
text-inverted
|
||||||
text-sm
|
text-sm
|
||||||
rounded
|
rounded
|
||||||
|
${width}
|
||||||
py-1
|
py-1
|
||||||
|
whitespace-normal
|
||||||
|
break-words
|
||||||
|
flex
|
||||||
px-2
|
px-2
|
||||||
z-10
|
z-10
|
||||||
shadow-lg
|
shadow-lg
|
||||||
|
Reference in New Issue
Block a user