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

Port Tobira integration #313

Merged
merged 23 commits into from
Sep 5, 2024
Merged

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Mar 21, 2024

Resolves #311

The old admin ui had an integration for tobira in the series details and new series modal. This ports the integration to our new ui. The user experience could arguably be improved upon, but this should work and be familiar to users who already used the integration in the old admin ui.

@Arnei Arnei added the type:enhancement New feature or request label Mar 21, 2024
The old admin ui had an integration for
tobira in the series details and new series
modal. This starts porting the integration
by laying out some basic DOM structure
and adding CSS and translations. I.e.
it should already look similar to the old
admin ui, but there is no actual functionality
yet.
Ports basic page functionality. This still
does not do anything useful, since I currently
cannot test with real data to fully understand
how this is supposed to work. But most of the
code from the old admin ui is now here.
@Arnei Arnei changed the title Port Tobira integration - Appearance Port Tobira integration Mar 22, 2024
Copy link
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Can now actually be used to link new series
to exisiting or new tobira pages, or view linked
pages in the series details.
When creating a new series, notifications
for the tobira tab would not show at all.
This fixes that.
While the user was warned about malformed
input, they were not actually prevented from
submitting it. This hacks our custom
validation into WizardNavigationButtons.tsx
to achieve validation.
@Arnei Arnei marked this pull request as ready for review April 3, 2024 12:34
@Arnei
Copy link
Member Author

Arnei commented Apr 3, 2024

Ready for review! (...as soon as I fix the merge conficts I guess)

Copy link
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@Arnei Arnei force-pushed the tobira-series-integration branch from d0a08a6 to a09b946 Compare April 10, 2024 10:04
@KatrinIhler
Copy link
Member

Without configuring a Tobira for my Opencast installation I get

grafik

Otherwise I still gotta figure out how to easily test this locally.

Copy link
Contributor

github-actions bot commented May 3, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Member

@KatrinIhler KatrinIhler left a comment

Choose a reason for hiding this comment

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

Conflicts fixed, see: https://github.com/KatrinIhler/opencast-admin-interface/tree/pr313-conflicts-fixed

The error for a non-working Tobira connection should appear in the Tobira tab, not the access tab, like in the old UI (see also comment above).

Minor differences in style between the two UIs (new one on the left), note the missing space between the table and the text above.

grafik

Obscure bug: The path is always one letter behind the one entered in the text field. (see text below and summary).
grafik

Apart from the fact that I can't figure out how to select existing pages (in the old and the new UI, but maybe it's because they aren't empty?) and the issues mentioned above, it looks fine.

Copy link
Contributor

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-313

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-313

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

Copy link
Contributor

github-actions bot commented Jul 5, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

@owi92 owi92 left a comment

Choose a reason for hiding this comment

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

This is working and a clear improvement, and not breaking anything as far as I can tell.

There are some additional features that were requested in #311 after this was already finished and that I will be working on, but their omission shouldn't block merging what's already here.

Copy link
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@Arnei
Copy link
Member Author

Arnei commented Jul 24, 2024

Thanks for the review @owi92. There were some merge conflicts since your review, would you mind quickly checking again if this still works to your satisfaction?

@owi92
Copy link
Contributor

owi92 commented Jul 24, 2024

Yes, still appears to be working 👌
Though I noticed a couple of things I must have missed yesterday.

  • when creating a new series, I get this note (which is true, but probably not necessary at this point):
Bildschirmfoto 2024-07-24 um 11 53 35
  • the link button is a little too close to the link text:
Bildschirmfoto 2024-07-24 um 11 58 26

If you want you can still fix those, but I don't see them as blockers and I can also do that in my upcoming pull request.

@Arnei
Copy link
Member Author

Arnei commented Jul 24, 2024

when creating a new series, I get this note (which is true, but probably not necessary at this point):

Seen that elsewhere, like not a cause of this PR.

the link button is a little too close to the link text

Would be great if you could fix that.

Copy link
Contributor

github-actions bot commented Aug 9, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented Aug 9, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented Sep 2, 2024

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@Arnei
Copy link
Member Author

Arnei commented Sep 5, 2024

Merging this even though there is still a requested change, as following reviews have approved this PR and it is already being used in #878.

@Arnei Arnei merged commit b9e38a4 into opencast:main Sep 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tobira Integration
4 participants