mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
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:
parent
aaf34800e6
commit
d21593ee71
7 changed files with 104 additions and 34 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue