Browse Source

feat(bug reports): Deeplink from feedback into the replay (to see the time they click submit) (#58908)

Ryan Albrecht 1 year ago
parent
commit
8672f2582c

+ 5 - 1
static/app/components/feedback/feedbackItem/feedbackItem.tsx

@@ -128,7 +128,11 @@ export default function FeedbackItem({
         </Section>
 
         {hasReplayId && replayId ? (
-          <ReplaySection organization={organization} replayId={replayId} />
+          <ReplaySection
+            eventTimestampMs={new Date(feedbackItem.firstSeen).getTime()}
+            organization={organization}
+            replayId={replayId}
+          />
         ) : null}
 
         <TagsSection tags={tags} />

+ 3 - 2
static/app/components/feedback/feedbackItem/replaySection.tsx

@@ -9,11 +9,12 @@ import {t} from 'sentry/locale';
 import {Organization} from 'sentry/types';
 
 interface Props {
+  eventTimestampMs: number;
   organization: Organization;
   replayId: string;
 }
 
-export default function ReplaySection({organization, replayId}: Props) {
+export default function ReplaySection({eventTimestampMs, organization, replayId}: Props) {
   const replayPreview = useCallback(
     () => import('sentry/components/events/eventReplay/replayPreview'),
     []
@@ -27,7 +28,7 @@ export default function ReplaySection({organization, replayId}: Props) {
             component={replayPreview}
             replaySlug={replayId}
             orgSlug={organization.slug}
-            eventTimestampMs={0}
+            eventTimestampMs={eventTimestampMs}
             buttonProps={{
               analyticsEventKey: 'issue_details.open_replay_details_clicked',
               analyticsEventName: 'Issue Details: Open Replay Details Clicked',