Closed tohuynh closed 4 years ago
Before I review, how did you test this without any speaker turns transcripts existing in the database? / How can I test this haha
Also from the changes, am I assuming correctly that the same code is used for scrolling to position as is the EventTranscriptSearch? So when you click on a result in the Event Transcript Search it will also scroll to that position in the full transcript as well?
Also from the changes, am I assuming correctly that the same code is used for scrolling to position as is the EventTranscriptSearch? So when you click on a result in the Event Transcript Search it will also scroll to that position in the full transcript as well?
I'm not following the question. There is no automatic scrolling in EventTranscriptSearch. It just renders the sentences that contains the searchText
.
Also from the changes, am I assuming correctly that the same code is used for scrolling to position as is the EventTranscriptSearch? So when you click on a result in the Event Transcript Search it will also scroll to that position in the full transcript as well?
I'm not following the question. There is no automatic scrolling in EventTranscriptSearch. It just renders the sentences that contains the
searchText
.
Right but the onclick
of any of the results, does that onclick
now also scroll to the full transcript position of that clicked result?
Right but the
onclick
of any of the results, does thatonclick
now also scroll to the full transcript position of that clicked result?
Oh do you mean the onclick
of the play button?
Right but the
onclick
of any of the results, does thatonclick
now also scroll to the full transcript position of that clicked result?Oh do you mean the
onclick
of the play button?
Yep!
Sidenote: GitHub should really look into a thread system for conversations.
Right but the
onclick
of any of the results, does thatonclick
now also scroll to the full transcript position of that clicked result?Oh do you mean the
onclick
of the play button?Yep!
Sidenote: GitHub should really look into a thread system for conversations.
No, it doesn't do that right now. That's a good idea. This can be done I think through sending a custom-event and have EventTranscript listen for that event and then scroll to right portion.
New changes removed react-virtualized components from EventTranscript and uses element.scrollIntoView to do the scrolling.
It scrolls to the transcript portion if there's a videoTimePoint
in the URL,
or the user clicks a transcript portion's play button in Search Transcript.
Pull request recommendations:
51. And also #49, where the feature to jump to transcript portion from
videoTimePoint
was requested.timestamped-speaker-turns
. I ran into a little block trying to add the jump to transcript portion feature. Unfortunately I couldn't use that "card" UI for each speaker-turn. Instead I have a horizontal divider withspeaker
at the top of each speaker-turn. Also I usedNew Speaker
for empty string speaker as requested. Here's what it looks like:Thanks for contributing!