Skip to content
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

New way of editing categories and scales #547

Merged

Conversation

JulianKniephoff
Copy link
Member

This implements a new paradigm for editing categories and scales, as prescribed by the Bern 2021-1 project.

Note that this includes #546 and Arnei#8, and hence Arnei#7 and #414.

@JulianKniephoff JulianKniephoff force-pushed the category-and-scale-modals branch 4 times, most recently from 973bd73 to 59a85db Compare November 2, 2021 08:59
JulianKniephoff and others added 25 commits November 2, 2021 10:40
Only has "create category" option for now.
Still needs styling.
Just added this so you have any option to create/edit categories at all.
- Need to make new modals that properly reflect "create" and "edit"
- Old scale modal is category bound, maybe it should not be?
@JulianKniephoff JulianKniephoff marked this pull request as ready for review December 6, 2021 08:59
Copy link
Member

@Arnei Arnei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been less of a code review and more a "Arne learns about javascript" session, but I still daresay this PR looks generally good to me. Some issues I found are listed below.

Should this include a notice about upgrading the db, since a new a new column was added to LabelImpl?

The text in the "Add Track"-Modal is all white, making it unreadable against the white background. Seems to be an inheritance issue somehow.

frontend/js/views/list-annotation.js Outdated Show resolved Hide resolved
frontend/templates/category-modal.tmpl Show resolved Hide resolved
Bern 2021-1 automation moved this from Review to In progress Dec 8, 2021
The assumption behind it was not valid:
Videos that are annotated for the first time don't have an ID
at that point, but might still have child resources we might want
to load, namely series categories.

Fixes opencast#574.
@JulianKniephoff
Copy link
Member Author

Should this include a notice about upgrading the db, since a new a new column was added to LabelImpl?

Unfortunately we still haven't figured out a good way/place to put such notices. 😞

The text in the "Add Track"-Modal is all white, making it unreadable against the white background. Seems to be an inheritance issue somehow.

Will be addressed in #548.

@JulianKniephoff JulianKniephoff merged commit 35a29d2 into opencast:master Mar 14, 2022
Bern 2021-1 automation moved this from In progress to Done Mar 14, 2022
@JulianKniephoff JulianKniephoff deleted the category-and-scale-modals branch March 14, 2022 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants