feat: enhance Gmail and Google Drive connectors with document status management and duplicate content checks

This commit is contained in:
Anish Sarkar 2026-02-05 22:59:56 +05:30
parent 6cd3f5c1f6
commit 5042fbfb85
4 changed files with 708 additions and 467 deletions

View file

@ -56,7 +56,7 @@ function StatusIndicator({ status }: { status?: DocumentStatus }) {
<Spinner size="sm" className="text-primary" />
</div>
</TooltipTrigger>
<TooltipContent side="top">Processing...</TooltipContent>
<TooltipContent side="top">Syncing</TooltipContent>
</Tooltip>
);
case "failed":

View file

@ -119,7 +119,7 @@ export function RowActions({
<Button
variant="ghost"
size="icon"
className={`h-8 w-8 ${isDeleteDisabled ? "text-muted-foreground/50 cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10"}`}
className={`h-8 w-8 ${isDeleteDisabled ? "text-muted-foreground cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10"}`}
onClick={() => !isDeleteDisabled && setIsDeleteOpen(true)}
disabled={isDeleting || isDeleteDisabled}
>
@ -164,7 +164,7 @@ export function RowActions({
<Button
variant="ghost"
size="icon"
className={`h-8 w-8 ${isDeleteDisabled ? "text-muted-foreground/50 cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10"}`}
className={`h-8 w-8 ${isDeleteDisabled ? "text-muted-foreground cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10"}`}
onClick={() => !isDeleteDisabled && setIsDeleteOpen(true)}
disabled={isDeleting || isDeleteDisabled}
>