catch events with review items that start after the first timeline entry

review items may start later than events within them, so subtract a padding from the start time in the filter so the start of events are not incorrectly filtered out of the list in the detail stream
This commit is contained in:
Josh Hawkins 2025-11-07 18:11:30 -06:00
parent 37a7642501
commit 8394aebb78

View File

@ -15,7 +15,7 @@ import useSWR from "swr";
import ActivityIndicator from "../indicators/activity-indicator";
import { Event } from "@/types/event";
import { getIconForLabel } from "@/utils/iconUtil";
import { ReviewSegment } from "@/types/review";
import { REVIEW_PADDING, ReviewSegment } from "@/types/review";
import { LuChevronDown, LuCircle, LuChevronRight } from "react-icons/lu";
import { getTranslatedLabel } from "@/utils/i18n";
import EventMenu from "@/components/timeline/EventMenu";
@ -803,7 +803,7 @@ function ObjectTimeline({
return fullTimeline
.filter(
(t) =>
t.timestamp >= review.start_time &&
t.timestamp >= review.start_time - REVIEW_PADDING &&
(review.end_time == undefined || t.timestamp <= review.end_time),
)
.map((event) => ({