refactor: comment out status field and related rendering logic in SearchPage

This commit is contained in:
Deon Sanchez 2025-09-19 12:21:14 -06:00
parent 61625a30a8
commit a711573c29

View file

@ -33,7 +33,7 @@ import { KnowledgeActionsDropdown } from "@/components/knowledge-actions-dropdow
import { DeleteConfirmationDialog } from "../../../components/confirmation-dialog"; import { DeleteConfirmationDialog } from "../../../components/confirmation-dialog";
import { useDeleteDocument } from "../api/mutations/useDeleteDocument"; import { useDeleteDocument } from "../api/mutations/useDeleteDocument";
import { toast } from "sonner"; import { toast } from "sonner";
import { StatusBadge } from "@/components/ui/status-badge"; // import { StatusBadge } from "@/components/ui/status-badge";
// Function to get the appropriate icon for a connector type // Function to get the appropriate icon for a connector type
function getSourceIcon(connectorType?: string) { function getSourceIcon(connectorType?: string) {
@ -156,15 +156,16 @@ function SearchPage() {
); );
}, },
}, },
{ // LOOK HERE LUCAS!!!!
field: "status", // {
headerName: "Status", // field: "status",
cellRenderer: ({ data }: CustomCellRendererProps<File>) => { // headerName: "Status",
// Default to 'active' status if no status is provided // cellRenderer: ({ data }: CustomCellRendererProps<File>) => {
const status = data?.status || "processing"; // // Default to 'active' status if no status is provided
return <StatusBadge status={status} />; // const status = data?.status || "processing";
}, // return <StatusBadge status={status} />;
}, // },
// },
{ {
cellRenderer: ({ data }: CustomCellRendererProps<File>) => { cellRenderer: ({ data }: CustomCellRendererProps<File>) => {
return <KnowledgeActionsDropdown filename={data?.filename || ""} />; return <KnowledgeActionsDropdown filename={data?.filename || ""} />;