-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all segments button #1097
Conversation
This pull request is deployed at test.editor.opencast.org/1097/2023-07-04_07-56-11/ . |
Short comment: A "Delete All" Button seems completely superfluous to me. What's the use case? Also don't like the buttons in the segments. Small, so hard to hit with a mouse. Overlap issues for a series of smaller cuts. Hardly read as buttons. I get that first clicking into a segment before you can click on the delete button is not the best UX, but that's exactly what the keyboard shortcuts are for. |
I think you misunderstood #1083. I think what @kweingaertne wants is not to mark the content for removal, but to be able to quickly remove all segments itself. Right now, you would do that by starting somewhere and hitting the “Merge Left/Right” buttons over and over again. Marking all segments for removal doesn't really make sense because you would end up with a 0 seconds long video file which should then fail to process as Opencast would tell you that this doesn't really make sense :D |
I'm also not the biggest fan of the icon on the timeline. The old editor had several of them and I would like to not see them creep back one after another. Maybe instead as a “pro” feature to easily access the functionality implement #943 instead? What do you think, @kweingaertne? |
Finally (for the next time), having one feature/change pre pull request makes these changes easier to discuss, review and merge. |
This pull request is deployed at test.editor.opencast.org/1097/2023-09-04_10-46-22/ . |
Now the button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, code-wise and all. Just found one small behavioural change.
Usually when merging segments, the resulting segment inherits the "deleted state" of the previously selected segment. So if I select a "blue" segment and merge it with "red", the resulting segment is "blue". This is not true for the specific case in which I select a "red" segment" and merge it left with a "blue" segment. The resulting segment is "blue" instead of "red". Could you fix that?
Thanks for noticing. It should be fixed now. |
This pull request is deployed at test.editor.opencast.org/1097/2023-09-04_13-53-50/ . |
This pull request has conflicts ☹ |
# Conflicts: # src/main/CuttingActions.tsx
This pull request is deployed at test.editor.opencast.org/1097/2023-09-21_09-50-49/ . |
During solving the merge conflicts, I have noticed that this problem was still present. Hopefully, this is solved now. |
Contains the following changes:
Adds a button for each segment to delete corresponding segmentRef #1083