Skip to content

fix small display bugs: stale time highlight; ovelap brackets - #2

Merged
jackft merged 1 commit into
mainfrom
transcript-overlap-bug
Jul 10, 2026
Merged

fix small display bugs: stale time highlight; ovelap brackets#2
jackft merged 1 commit into
mainfrom
transcript-overlap-bug

Conversation

@jackft

@jackft jackft commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Purpose of this PR

This PR fixes several small display bugs:

  1. The highlighting which shows which utterances in the transcript are currently playing could become stale such that they were never unhighlighted. This happened in an edge case
  2. The display brackets were not positioned properly when they were anchored in line-wrapped parts of utterances.

Fixes

  1. We now keep a record of the currently highlighted utterances. This record is then checked when the play-head moves. Previously it was done too implicitly.

  2. Ugh, it's complicated. It boiled down to:
    a. measuring text coordinates properly. We can't look at bracket position, we must look at the overlap text position
    b. because we add margins while aligning overlaps, we can introduce new line breaks. Therefore, there is a sequential dependency on how we construct overlaps. We can't compute overlaps in isolation, we have to loop over the document in order so that each overlap takes into account how prior overlaps mutate the text positions...

@jackft
jackft merged commit df9eb84 into main Jul 10, 2026
2 checks passed
@jackft
jackft deleted the transcript-overlap-bug branch July 13, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant