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

Fix some Tobira integration issues #1078

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

owi92
Copy link
Contributor

@owi92 owi92 commented Jan 17, 2025

Fixes #1065, #1067, #1071 and #1073,
and also another small issue I found while doing this, where not found errors weren't being reset and their notifications didn't show up in the right place.

For completeness: I also addressed #1064 and #1068. These are related to german translations, which I updated in the crowdin project yesterday.

owi92 added 4 commits January 16, 2025 11:54
Previously, clicking the "edit path" button
of a series in the Tobira tab would open the
"select target page" menu showing the currently
selected path. This changes it to instead open
the menu showing the parent path instead.

In addition, this will also mark the currently
selected page with a checkmark, as long as no
other page has been selected.
This does a couple of things:
- Notifications will now be shown underneath the table.
  Every notification is related to adding a new subpage,
  which is done at the bottom of the table. Moving the
  notifications closer to that means that missing them
  becomes a little harder
- Selecting a page will change its displayed title to
  a placeholder saying "Title of series". This will
  hopefully reduce confusion related to the fact that
  the page title will be overwritten with the series title.
- Entering a valid path for a new subpage will no longer
  auto-select that page. Since selecting a page will disable
  the title editing (because of the behaviour explained in the
  previous point), auto selection lead to the user not being
  able to change the title anymore. But when a user wants to
  add mulitiple new subpages as children of one another, only
  the final child's title will get overwritten. The titles of
  the other new subpages need to be freely editable.
@owi92 owi92 added type:bug Something isn't working type:enhancement New feature or request labels Jan 17, 2025
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-1078

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

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.

Fixes an issue where (a) the `not_found` notification
would not show up in the tobira tab, leaving it
completely empty. In addition, the emitted error was never
reset, which (b) also broke the tab for events that
do get found.

(a) happened because we now fetch the event data directly
when opening an event modal, to check the overall tobira
status. Switching tabs however removes the notification,
which is why it needs to be dispatched again when the
tobira tab is opened.
(b) was probably just an oversight on my end.
@owi92 owi92 force-pushed the small-tobira-fixes branch from 2435148 to 4089aa7 Compare January 17, 2025 10:41
Copy link
Contributor

This pull request is deployed at test.admin-interface.opencast.org/1078/2025-01-17_10-42-06/ .
It might take a few minutes for it to become available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working type:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tobira integration: When editing the path of a series a badly named link is shown
1 participant