Move scoring display to scoring tab#224
Conversation
- Replace placeholder Scoring tab with full implementation including: - Progress bar for scoring progress - ScrollArea for document cards - Summary label showing scored/relevant counts - Add progress bar to Citations tab for extraction progress - Add progressive display signals to WorkflowThread: - document_scored: emitted per-document during scoring - citation_progress: emitted during citation extraction - citation_extracted: emitted per-citation as extracted - Add _extract_citations_progressive method for per-citation emission - Update workflow handlers: - _on_scoring_progress: updates Scoring tab progress bar (not Literature) - _on_documents_scored: only updates summary, no longer populates Literature - _on_document_scored: progressively adds cards to Scoring tab - _on_citation_progress: updates Citations tab progress bar - _on_citation_extracted: progressively adds cards to Citations tab - Add tab_updaters progressive display functions: - add_single_scored_document: adds one scored doc card - add_single_citation: adds one citation card - _remove_empty_label_and_stretch: helper for first item - Store scoring_refs in research_tab.py for handler access Literature tab now shows search results only (before scoring). Scoring tab shows documents as they are scored with progress. Citations tab shows citations as they are extracted with progress.
Use executor.citation_extraction_threshold (defaulting to 0.7 if not set) instead of hardcoding min_relevance=0.7 directly, following golden rule 2.
|
Claude finished @hherb's task —— View job PR Review: Move Scoring Display to Scoring Tab
|

Move Scoring Display to Scoring Tab with Progressive Display
Summary
This PR moves scoring results from the Literature tab to a dedicated Scoring tab with progressive display. Documents now appear in the Scoring tab as they are scored, and citations appear in the Citations tab as they are extracted. Progress bars indicate progress for both operations.
Changes
UI Changes
Files Modified
tab_builders.pyworkflow_thread.pydocument_scored,citation_progress,citation_extracted); added_extract_citations_progressive()methodworkflow_handlers.py_on_scoring_progressto use Scoring tabtab_updaters.pyadd_single_scored_document()andadd_single_citation()for progressive card additionsresearch_tab.pyscoring_refsattribute to store Scoring tab widget referencesTechnical Details
New Signals (WorkflowThread)
document_scored(doc, score_result, current, total)- emitted per document during scoringcitation_progress(current, total)- emitted during citation extraction for progress barcitation_extracted(citation, current, total)- emitted per citation as extractedProgressive Display Flow
document_scored→ handler adds card to Scoring tabcitation_progress→ update progress barcitation_extracted→ handler adds card to Citations tabGolden Rules Compliance
executor.citation_extraction_thresholdinstead of hardcoded0.7StyleSheets.progress_bar(ui)ui.*constantsadd_single_scored_document,add_single_citationTest Plan