Skip to content

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 requested a review from Arnei November 1, 2021 17:46
@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?
This also restores the property of color generation
where the next color is completely determined
by the current set of categories,
instead of by how often the generation was called.
@JulianKniephoff JulianKniephoff force-pushed the category-and-scale-modals branch from c3c4426 to 359e2bc Compare November 9, 2021 09:19
@JulianKniephoff JulianKniephoff force-pushed the category-and-scale-modals branch from 9f06cf6 to d9a412c Compare November 10, 2021 12:38
@JulianKniephoff JulianKniephoff marked this pull request as ready for review December 6, 2021 08:59
@JulianKniephoff JulianKniephoff force-pushed the category-and-scale-modals branch from d7d69a9 to 9ec01d4 Compare December 6, 2021 11:07
@JulianKniephoff JulianKniephoff force-pushed the category-and-scale-modals branch from 9ec01d4 to 6ae9a70 Compare December 6, 2021 11:08
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.

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
@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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants