Skip to content

Conversation

@owi92
Copy link
Member

@owi92 owi92 commented Dec 3, 2025

This buttons links directly to the "series details" page. I was considering to only add it to dedicated series pages, but that kinda defeats the purpose of getting there more easily.
The button is only shown if you have write access for that series.

Also includes some refactoring of semi-related code.
To review, probably just ignore individual commits (maybe read the messages tho).

Closes #1594

owi92 added 4 commits December 3, 2025 14:11
This was an inline union type before
that was used for both series and videos,
and soon to be used for playlists.
Creating a type for that just made
sense (in my mind).
This button not shown in a regular realm context,
but only in series blocks on single series pages.
That somewhat mirrors what we do with video blocks.
Putting it everywhere would clutter up the UI.

On the other hand, this might not achieve the desired
effect of making it easier to get to that manage page
in the first place. So maybe it should actually be shown
in every context, but only for people with write access.
This was getting out of hand. There
is no great solution, but batching
some props to later destcructure them
seems ok and increases readability
at least a little.
And also show that button on every block if the
conditions allow (see the other commit message for
reasoning).

Also removes that other condition (`isSingleItemPage`)
or rather the function that returns the condition.
It wasn't used anyway (guess that got lost in some edit
again.... gotta pay more attention when using `ctrl + z`).
@dagraf
Copy link
Collaborator

dagraf commented Dec 4, 2025

Thanks for adding the button. I think, we/you should invest some effort in improving the display of series (especially for smaller screens). What I observed and consider suboptimal:

  1. On smaller screens (not on mobile devices) and when metadata is not shown, the buttons stay on the same line but the title is spread across several lines.
Bildschirmfoto 2025-12-04 um 08 19 54
  1. On smaller screens, when metadata is shown and only in editing-mode, the button to the far right exits the window.
Bildschirmfoto 2025-12-04 um 08 21 39
  1. When metadata is shown, the buttons are displayed to the right of the description. I would prefer them to be in the upper right corner, next to the title. But that's not a strong opinion.

@owi92 owi92 marked this pull request as draft December 4, 2025 17:00
@owi92 owi92 mentioned this pull request Dec 4, 2025
@owi92
Copy link
Member Author

owi92 commented Dec 4, 2025

Thank you for testing, David.

This turned out to be more tricky than expected (which is weird because it looks pretty trivial). I made another proposition in #1618, which fixes the issues that you have observed and moves the buttons to the top. I also removed the "share" and "manage" text, as these should be pretty much understandable without text. That allows some more room for title and decription.
However that is still not perfect and needs some more work if we decide to take that route.

I am also still leaning towards keeping the buttons on the bottom.
It should be noted that the new "manage" button will rarely be seen by regular students, since I do not expect them to have write access to many (if any) series.
I supspect we won't have the time, but if we do, let's briefly talk about this in our next meeting.

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.

Show a "manage" Button on the series overview page (like the "manage" button on the video page)

2 participants