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

Split "manage single video" page into multiple pages #595

Merged

Conversation

LukasKalbertodt
Copy link
Member

@LukasKalbertodt LukasKalbertodt commented Nov 24, 2022

This makes it more extensible in the future. We certainly want to add another sub page for ACLs/managing access (see #356). The previous single page was already filled with lots of stuff and putting the technical info on its own page helps with clarity.

See all commit messages for more detail.

Some notes and ideas on potential sub pages
  • "Details"
    • Action buttons: Share, embed, open in Editor, ...
    • Metadata (editiable): Title, Description, Creators, additional metadata, start/end time?, Series
  • "Access" (or "visibility")
    • UI to manage ACL of the video
  • "Assets"
    • Section "Subtitles": show what subtitles exist and link to editor
    • Thumbnail: Show current thumbnail(s) and add link to editor
  • "Technical information"
    • What is already contained in this PR

@LukasKalbertodt LukasKalbertodt added the changelog:user User facing changes label Nov 24, 2022
@github-actions github-actions bot added the status:conflicts This PR has conflicts that need to be resolved label Nov 28, 2022
@github-actions

This comment was marked as resolved.

@LukasKalbertodt LukasKalbertodt force-pushed the make-manage-video-multi-page branch from ee03241 to 8d9f2f8 Compare November 28, 2022 17:02
@github-actions github-actions bot removed the status:conflicts This PR has conflicts that need to be resolved label Nov 28, 2022
This was only used in one place where it was configured like that
anyway. We might want to improve the style of this in the future still.
We will still add a lot more stuff and we can't possibly cram it all on
one page. This is similar to how YouTube does it, for example.
Currently, there are only 2 sub pages, but there are already commented
out entries for two more.

Most notably, this commit:
- Moves the "technical details" part to a new sub page
- Some new technical details are shown
- Adds a nav element to switch between different sub pages
- Said nav element also contains the thumbnail and title of the video
- As such, the thumbnail on the actual manage page is removed and the
  updated/created timestamps are moved elsewhere on the page.
Our reasoning is: those are easily accessible to everyone anyway, none
of that is "secret". So linking them here directly doesn't change
anything. But further, only users who can edit this video can see those,
so it's extra fine.
Before, it returned "" as path for the root realm, which is different
from what the normal API does.
@LukasKalbertodt LukasKalbertodt force-pushed the make-manage-video-multi-page branch from 8d9f2f8 to 06d59f3 Compare December 1, 2022 08:17
frontend/src/layout/Root.tsx Outdated Show resolved Hide resolved
frontend/src/i18n/locales/de.yaml Outdated Show resolved Hide resolved
frontend/src/i18n/locales/de.yaml Outdated Show resolved Hide resolved
frontend/src/i18n/locales/en.yaml Outdated Show resolved Hide resolved
frontend/src/i18n/locales/en.yaml Outdated Show resolved Hide resolved
frontend/src/routes/manage/Video/Details.tsx Show resolved Hide resolved
frontend/src/routes/manage/Video/Shared.tsx Show resolved Hide resolved
frontend/src/routes/manage/Video/TechnicalDetails.tsx Outdated Show resolved Hide resolved
frontend/src/routes/manage/Video/Shared.tsx Show resolved Hide resolved
@JulianKniephoff JulianKniephoff merged commit aa10223 into elan-ev:master Dec 12, 2022
@LukasKalbertodt LukasKalbertodt deleted the make-manage-video-multi-page branch December 12, 2022 09:34
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
Status: Done ✔️
Development

Successfully merging this pull request may close these issues.

2 participants