feat: FlowPilot message bar + AI Script Builder + Library reorg #118

Merged
chihlasm merged 22 commits from feat/flowpilot-message-bar-and-script-builder into main 2026-03-22 02:07:27 +00:00
Showing only changes of commit 3d584902ef - Show all commits

View File

@@ -120,13 +120,16 @@ export function SessionHistoryPage() {
if (filters.dateRange?.from) {
const fromDate = filters.dateRange.from
const toDate = filters.dateRange.to || filters.dateRange.from
// Set end-of-day on the "to" date so sessions created that day are included
const toDateEnd = new Date(toDate)
toDateEnd.setHours(23, 59, 59, 999)
if (filters.dateType === 'started') {
params.started_after = fromDate.toISOString()
params.started_before = toDate.toISOString()
params.started_before = toDateEnd.toISOString()
} else {
params.completed_after = fromDate.toISOString()
params.completed_before = toDate.toISOString()
params.completed_before = toDateEnd.toISOString()
}
}
@@ -176,7 +179,7 @@ export function SessionHistoryPage() {
problem_domain: aiFilters.problem_domain || undefined,
confidence_tier: aiFilters.confidence_tier || undefined,
date_from: aiFilters.date_from || undefined,
date_to: aiFilters.date_to || undefined,
date_to: aiFilters.date_to ? `${aiFilters.date_to}T23:59:59.999Z` : undefined,
})
if (!cancelled) setAiSessions(data)
} catch {