Lucas ARRIESSE commited on
Commit
fe6b7e9
·
1 Parent(s): 984824e

Misc fixes

Browse files
prompts/private/fto_assess.txt CHANGED
@@ -2,8 +2,8 @@
2
  <task>
3
  You will be provided with the reports of a comprehensive freedom-to-operate analysis, a potentially patentable idea and have to determine
4
  whether any of the inventions found in the report potentially infringe partially or totally the presented solution, and how they infringe.
5
- Perform a full-blown analysis.
6
- Finally end your analysis by stating whether the idea is a "NO-GO" (completely blocked by infringing inventions), "CONDITIONAL-GO" (partially for the most part of the invention), "IMMEDIATE-GO" (little to no infringement) and provide a list of actionnable insights.
7
  The actionnable insights should help steer the idea in a direction that may bypass some potential infringements.
8
  </task>
9
 
 
2
  <task>
3
  You will be provided with the reports of a comprehensive freedom-to-operate analysis, a potentially patentable idea and have to determine
4
  whether any of the inventions found in the report potentially infringe partially or totally the presented solution, and how they infringe.
5
+ Perform a full-blown analysis. When finding infringing art, reference it in your answer.
6
+ Finally end your analysis by stating whether the idea is a "NO-GO" (blocked completely or blocked in most part by infringing inventions), "CONDITIONAL-GO" (A part but not most is blocked by infringement), "IMMEDIATE-GO" (little to no infringement) and provide a list of actionnable insights.
7
  The actionnable insights should help steer the idea in a direction that may bypass some potential infringements.
8
  </task>
9
 
static/index.html CHANGED
@@ -351,8 +351,7 @@
351
  <p id="assessment-recommendation-summary">A short resumé of the patcom
352
  sayings should go there.</p>
353
  </div>
354
- <button class="btn btn-info" id="read-assessment-button">Read whole
355
- assessment</button>
356
  </div>
357
 
358
  <div class="divider my-1"></div>
@@ -361,7 +360,7 @@
361
  <p class="text-sm text-base-content/70">Select insights below to guide the next
362
  refinement.
363
  </p>
364
- <div id="insights-container" class="form-control mt-4 space-y-2">
365
  <!-- Checkboxes will be dynamically inserted here -->
366
  </div>
367
 
 
351
  <p id="assessment-recommendation-summary">A short resumé of the patcom
352
  sayings should go there.</p>
353
  </div>
354
+ <button class="btn btn-ghost font-bold" id="read-assessment-button">Read whole assessment</button>
 
355
  </div>
356
 
357
  <div class="divider my-1"></div>
 
360
  <p class="text-sm text-base-content/70">Select insights below to guide the next
361
  refinement.
362
  </p>
363
+ <div id="insights-container" class="form-control mt-4 space-y-2 break-words">
364
  <!-- Checkboxes will be dynamically inserted here -->
365
  </div>
366
 
static/js/ui.js CHANGED
@@ -564,12 +564,30 @@ export function renderDraftUI() {
564
  const solutionSections = buildSolutionSubCategories(currentState.solution);
565
  solutionDisplay.innerHTML = '';
566
 
567
- // 1. Render Solution
568
  for (let child of solutionSections)
569
  solutionDisplay.appendChild(child);
570
 
571
- //3. but 2. actually: Print verdict and quick summary
572
- document.getElementById('assessment-recommendation-status').innerText = currentState.final_verdict;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
  document.getElementById('assessment-recommendation-summary').innerText = currentState.assessment_summary;
574
 
575
  // 2. Render Insights Checkboxes
 
564
  const solutionSections = buildSolutionSubCategories(currentState.solution);
565
  solutionDisplay.innerHTML = '';
566
 
567
+ // 1. Render the different solution sections
568
  for (let child of solutionSections)
569
  solutionDisplay.appendChild(child);
570
 
571
+
572
+
573
+ // 2. render final verdict and the quick summary
574
+ const finalVerdictTextEl = document.getElementById('assessment-recommendation-status');
575
+
576
+ // maps final verdict to text color
577
+ const verdict_colors = {
578
+ NO_GO: "text-red-600",
579
+ CONDITIONAL_GO: "text-orange-600",
580
+ IMMEDIATE_GO: "text-green-600"
581
+ };
582
+
583
+ // reset color of the text
584
+ Object.values(verdict_colors).forEach(v => {
585
+ finalVerdictTextEl.classList.remove(v);
586
+ });
587
+
588
+ finalVerdictTextEl.innerText = currentState.final_verdict;
589
+ finalVerdictTextEl.classList.add(verdict_colors[currentState.final_verdict.replace("-", "_")]);
590
+
591
  document.getElementById('assessment-recommendation-summary').innerText = currentState.assessment_summary;
592
 
593
  // 2. Render Insights Checkboxes