Harden timeline quick extraction

This commit is contained in:
2026-05-25 11:14:21 +02:00
parent 983c423740
commit 3ad8f4843c
3 changed files with 185 additions and 8 deletions
+5
View File
@@ -388,6 +388,7 @@ const TIMELINE_I18N = {
let lastTimelineEvents = [];
let lastTimelineEventsOriginal = [];
let lastTimelineWhatWeFound = '';
let lastTimelineInputDateHintCount = null;
let activeActorFilters = new Set();
let timelineSearchTerm = '';
let showSources = true;
@@ -1602,6 +1603,7 @@ function renderMainFinding(data) {
lastTimelineEventsOriginal = data.events || [];
lastTimelineEvents = [...lastTimelineEventsOriginal];
lastTimelineWhatWeFound = data.what_we_found || '';
lastTimelineInputDateHintCount = data.trace_metadata?.input_date_hint_count ?? null;
activeActorFilters = new Set();
timelineSearchTerm = '';
showSources = true;
@@ -1728,6 +1730,9 @@ function applyTimelineFilters() {
function renderTimeline(events, grouped = false) {
if (!events.length) {
if (lastTimelineInputDateHintCount === 0) {
return '<p class="timeline-empty">No recognizable dates were found in the extracted text. Check that the upload is text-searchable, or paste the relevant dated section and run again.</p>';
}
return '<p class="timeline-empty">No matching events.</p>';
}
const MONTH_NAMES = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];