From f113acee33397aca84dc860b0cf2049131414435 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:56:15 -0500 Subject: [PATCH] Summary timeline (#10569) * implement summary timeline * implement summary timeline * merge dev * conditionally attach listeners only when dragging * set up listeners with a ref --- web/src/components/dynamic/NewReviewData.tsx | 2 +- .../timeline/EventReviewTimeline.tsx | 12 +- web/src/components/timeline/EventSegment.tsx | 21 +- .../timeline/MotionReviewTimeline.tsx | 49 ++- web/src/components/timeline/MotionSegment.tsx | 7 +- .../components/timeline/ReviewTimeline.tsx | 2 +- .../components/timeline/SummarySegment.tsx | 67 ++++ .../components/timeline/SummaryTimeline.tsx | 317 ++++++++++++++++++ .../components/timeline/segment-metadata.tsx | 8 +- web/src/hooks/use-draggable-element.ts | 12 +- web/src/hooks/use-event-segment-utils.ts | 11 +- web/src/hooks/use-timeline-utils.ts | 10 + web/src/pages/UIPlayground.tsx | 16 +- web/src/views/events/EventView.tsx | 47 ++- web/themes/theme-default.css | 26 +- 15 files changed, 523 insertions(+), 84 deletions(-) create mode 100644 web/src/components/timeline/SummarySegment.tsx create mode 100644 web/src/components/timeline/SummaryTimeline.tsx diff --git a/web/src/components/dynamic/NewReviewData.tsx b/web/src/components/dynamic/NewReviewData.tsx index 8a4752470..c60a08b49 100644 --- a/web/src/components/dynamic/NewReviewData.tsx +++ b/web/src/components/dynamic/NewReviewData.tsx @@ -43,7 +43,7 @@ export default function NewReviewData({ return (