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

Add playlist blocks #1181

Merged
merged 13 commits into from
Jul 22, 2024
Merged

Add playlist blocks #1181

merged 13 commits into from
Jul 22, 2024

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Jun 13, 2024

This builds on #1159 to add the necessary components and adjustments in both back- and frontend to allow creating and editing playlist blocks.
These are already a lot of changes, so in order to limit the scope of this PR and make it somewhat reviewable, a feature still missing is a management area to create, delete and edit playlists themselves (i.e. adding and removing videos).

@owi92 owi92 added the changelog:user User facing changes label Jun 13, 2024
@github-actions github-actions bot added the status:conflicts This PR has conflicts that need to be resolved label Jun 13, 2024

This comment was marked as resolved.

@owi92 owi92 changed the title Add playlist blockss Add playlist blocks Jun 13, 2024
@github-actions github-actions bot removed the status:conflicts This PR has conflicts that need to be resolved label Jun 13, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 June 13, 2024 13:23 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 June 20, 2024 09:55 Destroyed
@LukasKalbertodt LukasKalbertodt marked this pull request as draft June 20, 2024 10:12
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 June 20, 2024 10:14 Destroyed
@github-actions github-actions bot added the status:conflicts This PR has conflicts that need to be resolved label Jun 20, 2024

This comment was marked as resolved.

@LukasKalbertodt LukasKalbertodt added this to the 2.11 milestone Jul 1, 2024
@github-actions github-actions bot removed the status:conflicts This PR has conflicts that need to be resolved label Jul 1, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 1, 2024 13:09 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 1, 2024 13:56 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 1, 2024 14:01 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 1, 2024 15:09 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 1, 2024 15:35 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 2, 2024 09:16 Destroyed
@owi92 owi92 marked this pull request as ready for review July 2, 2024 09:24
@github-actions github-actions bot added the status:conflicts This PR has conflicts that need to be resolved label Jul 12, 2024

This comment was marked as resolved.

owi92 added 10 commits July 12, 2024 16:10
This is mainly to prevent some code duplication
for the select component, since playlists and series
share basically every aspect with very few exceptions.
This involves several frontend components which are
related to the creation and editing of playlist blocks.
It features very little original code as these functions
and UI elements are already established for other block
types. Though a few of the adjustments necessary to make
everything work weren't super trivial either.
This needed some tinkering and adapting the "link-within-a-link"
approach used in the search item display. For reference, the implemented
solution is adapted from (this article)[https://www.sarasoueidan.com/blog/nested-links/].

Most css changes here are made to keep the tab order intact without changing the
html structure (i.e. the video item itself getting focus before the nested link).
This was called `opencast_id` before, which was a little
misleading since it's not the kind of `opencast_id` used
in other places which is typically (but not necessariliy)
a uuid but can be any string.
The id that is now renamed to `entry_id` however is always a number.
@github-actions github-actions bot removed the status:conflicts This PR has conflicts that need to be resolved label Jul 12, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 12, 2024 14:16 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 15, 2024 09:29 Destroyed
These will only show up when a user visits a video page
that was linked to from a playlist block. In any other case,
either a series block (if applicable) or no block at all is shown,
as before.
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 21, 2024 22:18 Destroyed
@owi92 owi92 force-pushed the playlist-blocks branch 3 times, most recently from f92f556 to 4aef78b Compare July 21, 2024 22:59
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 21, 2024 23:02 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1181 July 22, 2024 09:31 Destroyed
@LukasKalbertodt LukasKalbertodt merged commit 2fcbae0 into elan-ev:master Jul 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants