This commit is contained in:
phact 2025-10-06 21:26:59 -04:00
parent 08f441c0e5
commit 071a861a43
6 changed files with 12 additions and 9 deletions

View file

@ -6,8 +6,7 @@ import {
type Nudge = string; type Nudge = string;
const DEFAULT_NUDGES = [ const DEFAULT_NUDGES: Nudge[] = [];
];
export const useGetNudgesQuery = ( export const useGetNudgesQuery = (
chatId?: string | null, chatId?: string | null,

View file

@ -92,6 +92,7 @@ export default function ConnectorsPage() {
selectedFiles={selectedFiles} selectedFiles={selectedFiles}
isAuthenticated={false} // This would come from auth context in real usage isAuthenticated={false} // This would come from auth context in real usage
accessToken={undefined} // This would come from connected account accessToken={undefined} // This would come from connected account
isIngesting={isSyncing}
/> />
</div> </div>

View file

@ -83,13 +83,13 @@ function ChunksPageContent() {
}, [data, filename]); }, [data, filename]);
// Set selected state for all checkboxes when selectAll changes // Set selected state for all checkboxes when selectAll changes
useEffect(() => { // useEffect(() => {
if (selectAll) { // if (selectAll) {
setSelectedChunks(new Set(chunks.map((_, index) => index))); // setSelectedChunks(new Set(chunks.map((_, index) => index)));
} else { // } else {
setSelectedChunks(new Set()); // setSelectedChunks(new Set());
} // }
}, [selectAll, setSelectedChunks, chunks]); // }, [selectAll, setSelectedChunks, chunks]);
const handleBack = useCallback(() => { const handleBack = useCallback(() => {
router.push("/knowledge"); router.push("/knowledge");

View file

@ -85,6 +85,7 @@ interface Connector {
connectionId?: string; connectionId?: string;
access_token?: string; access_token?: string;
selectedFiles?: GoogleDriveFile[] | OneDriveFile[]; selectedFiles?: GoogleDriveFile[] | OneDriveFile[];
available?: boolean;
} }
interface SyncResult { interface SyncResult {

View file

@ -283,6 +283,7 @@ export function CloudConnectorsDialog({
accessToken={connectorAccessTokens[connector.type]} accessToken={connectorAccessTokens[connector.type]}
onPickerStateChange={() => {}} onPickerStateChange={() => {}}
clientId={connector.clientId} clientId={connector.clientId}
isIngesting={false}
/> />
</div> </div>
); );

View file

@ -19,6 +19,7 @@ import {
import { useAuth } from "@/contexts/auth-context"; import { useAuth } from "@/contexts/auth-context";
// Task interface is now imported from useGetTasksQuery // Task interface is now imported from useGetTasksQuery
export type { Task };
export interface TaskFile { export interface TaskFile {
filename: string; filename: string;