Skip to content

Commit

Permalink
Style change for the docs_removed_from_index field in the admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Feb 22, 2024
1 parent 4c7c1b4 commit 3a9d5b4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions web/src/app/admin/connector/[ccPairId]/IndexingAttemptsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export function IndexingAttemptsTable({ ccPair }: { ccPair: CCPairFullInfo }) {
<TableHeaderCell>Time Started</TableHeaderCell>
<TableHeaderCell>Status</TableHeaderCell>
<TableHeaderCell>New Doc Cnt</TableHeaderCell>
<TableHeaderCell>Removed Doc Cnt</TableHeaderCell>
<TableHeaderCell>Total Doc Cnt</TableHeaderCell>
<TableHeaderCell>Error Msg</TableHeaderCell>
</TableRow>
Expand Down Expand Up @@ -109,8 +108,19 @@ export function IndexingAttemptsTable({ ccPair }: { ccPair: CCPairFullInfo }) {
</div>
)}
</TableCell>
<TableCell>{indexAttempt.new_docs_indexed}</TableCell>
<TableCell>{indexAttempt.docs_removed_from_index}</TableCell>
<TableCell>
<div className="flex">
<div className="text-right">
<div>{indexAttempt.new_docs_indexed}</div>
{indexAttempt.docs_removed_from_index > 0 && (
<div className="text-xs w-52 text-wrap flex italic overflow-hidden whitespace-normal px-1">
(also removed {indexAttempt.docs_removed_from_index}{" "}
docs that were detected as deleted in the source)
</div>
)}
</div>
</div>
</TableCell>
<TableCell>{indexAttempt.total_docs_indexed}</TableCell>
<TableCell>
<div>
Expand Down

0 comments on commit 3a9d5b4

Please sign in to comment.