feat: unify handling of native and legacy document types for Google connectors

- Introduced a mapping of native Google document types to their legacy Composio equivalents, ensuring seamless search and indexing for both types.
- Updated relevant components to utilize the new mapping, enhancing the consistency of document type handling across the application.
- Improved search functionality to transparently include legacy types, maintaining accessibility for older documents until re-indexed.
This commit is contained in:
Anish Sarkar 2026-03-20 03:41:32 +05:30
parent aaf34800e6
commit d21593ee71
7 changed files with 104 additions and 34 deletions

View file

@ -643,6 +643,16 @@ export function DocumentsTableShell({
return <StatusIndicator status={doc.status} />;
}
if (state === "failed") {
if (isMentioned) {
return (
<Checkbox
checked={isMentioned}
onCheckedChange={() => handleRowToggle()}
aria-label="Remove from chat"
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary"
/>
);
}
return (
<>
<span className="group-hover:hidden">
@ -652,7 +662,7 @@ export function DocumentsTableShell({
<Checkbox
checked={isMentioned}
onCheckedChange={() => handleRowToggle()}
aria-label={isMentioned ? "Remove from chat" : "Add to chat"}
aria-label="Add to chat"
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary"
/>
</span>