enhancement: added loading state for conversation

This commit is contained in:
JeevaRamanathan M
2024-10-19 04:24:14 +00:00
parent 7bf79675c1
commit 2366c2cd94
3 changed files with 32 additions and 12 deletions

View File

@@ -15,7 +15,10 @@ export interface Preference {
token_limit: number;
selectedDocs: Doc | null;
sourceDocs: Doc[] | null;
conversations: { name: string; id: string }[] | null;
conversations: {
data: { name: string; id: string }[] | null;
loading: boolean;
};
modalState: ActiveState;
}
@@ -34,7 +37,10 @@ const initialState: Preference = {
retriever: 'classic',
} as Doc,
sourceDocs: null,
conversations: null,
conversations: {
data: null,
loading: false,
},
modalState: 'INACTIVE',
};