mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +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 { getDocsProcessedPerMinute } from "@/lib/indexAttempt";
|
||||
import { ErrorCallout } from "@/components/ErrorCallout";
|
||||
import { SearchIcon } from "@/components/icons/icons";
|
||||
import { InfoIcon, SearchIcon } from "@/components/icons/icons";
|
||||
import Link from "next/link";
|
||||
import ExceptionTraceModal from "@/components/modals/ExceptionTraceModal";
|
||||
import { PaginatedIndexAttempts } from "./types";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { Tooltip } from "@/components/tooltip/Tooltip";
|
||||
|
||||
// This is the number of index attempts to display per page
|
||||
const NUM_IN_PAGE = 8;
|
||||
@@ -192,7 +193,19 @@ export function IndexingAttemptsTable({ ccPair }: { ccPair: CCPairFullInfo }) {
|
||||
<TableHeaderCell>Time Started</TableHeaderCell>
|
||||
<TableHeaderCell>Status</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>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
@@ -14,12 +14,14 @@ export function Tooltip({
|
||||
delayDuration = 200,
|
||||
side = "top",
|
||||
align = "center",
|
||||
width,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
content: ReactNode;
|
||||
delayDuration?: number;
|
||||
side?: "top" | "right" | "bottom" | "left";
|
||||
align?: "start" | "center" | "end";
|
||||
width?: string;
|
||||
}) {
|
||||
return (
|
||||
<TooltipPrimitive.Provider delayDuration={delayDuration}>
|
||||
@@ -33,7 +35,11 @@ export function Tooltip({
|
||||
text-inverted
|
||||
text-sm
|
||||
rounded
|
||||
${width}
|
||||
py-1
|
||||
whitespace-normal
|
||||
break-words
|
||||
flex
|
||||
px-2
|
||||
z-10
|
||||
shadow-lg
|
||||
|
Reference in New Issue
Block a user