meedan / montage-components

Monorepo of components for Montage
https://montage.meedan.com
0 stars 0 forks source link

User should be able to delete transcript annotation instances, and additionally copy it to clips. #151

Open maboa opened 5 years ago

maboa commented 5 years ago

Notes:

  1. we do not need an option to expand to the entire length of transcript in this view
  2. clips cannot be seen in this view
piotrfonte commented 5 years ago

@Laurian I could use a floating div triggered on hover over instances. I should be able to take it from there…

maboa commented 5 years ago

This is likely to be a similar mechanism as we have for the timeline view - hovering over the instance triggers a pop-up allowing delete or copy to clips.

Note that as clips are not shown in the transcript view we need to show a confirmation dialog confirming that a new clip has been created.

maboa commented 5 years ago

oops

piotrfonte commented 5 years ago

I may now pass this to @Laurian as the newly added hover popover has two buttons it requires.

piotrfonte commented 5 years ago

One thing @Laurian, please have a look at this flow:

  1. select text
  2. popover appears
  3. click elsewhere
  4. popover hides
  5. click elsewhere again
  6. popover reappears

Expected result should be that point 6 should not happen—clicking elsewhere should clear selection and anchor data.