Lucas ARRIESSE commited on
Commit
adf98e8
·
1 Parent(s): 8a5bedd

Include searched FTO report

Browse files
Files changed (1) hide show
  1. static/js/ui.js +4 -1
static/js/ui.js CHANGED
@@ -704,11 +704,14 @@ export function handleFTOAnalysis() {
704
  // map from a list of insights to a selectable list of insights
705
  const newInsights = result.extracted_info.insights.map((e, idx, __) => ({ id: idx, text: e, checked: false }));
706
 
 
 
 
707
  draftHistory.push({
708
  type: "fto",
709
  solution: currentState.solution,
710
  insights: newInsights,
711
- assessment_full: result.assessment_full,
712
  final_verdict: result.extracted_info.final_verdict,
713
  assessment_summary: result.extracted_info.summary,
714
  });
 
704
  // map from a list of insights to a selectable list of insights
705
  const newInsights = result.extracted_info.insights.map((e, idx, __) => ({ id: idx, text: e, checked: false }));
706
 
707
+ // maps the original fto report assessment + the actual contents for displaying
708
+ const full_assessment_content = `${result.assessment_full}\n\n---\n---\n\n# FTO report contents\n\n${result.fto_report}`;
709
+
710
  draftHistory.push({
711
  type: "fto",
712
  solution: currentState.solution,
713
  insights: newInsights,
714
+ assessment_full: full_assessment_content,
715
  final_verdict: result.extracted_info.final_verdict,
716
  assessment_summary: result.extracted_info.summary,
717
  });