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;
const DEFAULT_NUDGES = [
];
const DEFAULT_NUDGES: Nudge[] = [];
export const useGetNudgesQuery = (
chatId?: string | null,

View file

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

View file

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

View file

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

View file

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

View file

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