fraudTech commited on
Commit
8747d8e
·
1 Parent(s): 18d5d60

UI now shows different loading

Browse files
Files changed (1) hide show
  1. src/App.js +11 -3
src/App.js CHANGED
@@ -682,14 +682,22 @@ function App() {
682
  // Give UI time to show initial validation status
683
  await new Promise(resolve => setTimeout(resolve, 200));
684
 
685
- // Update status: verifying citations
686
- setLoadingStatus("Verifying citations and strict mode compliance...");
 
 
 
 
687
  await new Promise(resolve => setTimeout(resolve, 150));
688
 
689
  const debugResult = await sendChat(userMsg.text, strictMode, historyForBackend, token, sessionId);
690
 
691
  // Update status: processing debug info
692
- setLoadingStatus("Processing validation results...");
 
 
 
 
693
  await new Promise(resolve => setTimeout(resolve, 200));
694
 
695
  if (debugResult.prolog_query_info) {
 
682
  // Give UI time to show initial validation status
683
  await new Promise(resolve => setTimeout(resolve, 200));
684
 
685
+ // Update status based on mode
686
+ if (strictMode) {
687
+ setLoadingStatus("Verifying citations and strict mode compliance...");
688
+ } else {
689
+ setLoadingStatus("Processing response...");
690
+ }
691
  await new Promise(resolve => setTimeout(resolve, 150));
692
 
693
  const debugResult = await sendChat(userMsg.text, strictMode, historyForBackend, token, sessionId);
694
 
695
  // Update status: processing debug info
696
+ if (strictMode) {
697
+ setLoadingStatus("Processing validation results...");
698
+ } else {
699
+ setLoadingStatus("Finalizing response...");
700
+ }
701
  await new Promise(resolve => setTimeout(resolve, 200));
702
 
703
  if (debugResult.prolog_query_info) {