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

Sort series table by date per default #1008

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Dec 12, 2024

Changes the default sorting order of the series table from title to the created date. This brings it in line with the events table and should generally prove a more useful default.

How to test this

PR can be tested as is, no other dependencies or configuration necessary.

Changes the default sorting order of the series
table from title to the created date. This brings
it in line with the events table and should
generally prove a more useful default.
@Arnei Arnei added the type:visual-clarity Improves UI readability label Dec 12, 2024
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-1008

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

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

This pull request is deployed at test.admin-interface.opencast.org/1008/2024-12-12_09-21-56/ .
It might take a few minutes for it to become available.

Arnei added a commit to Arnei/opencast-admin-interface that referenced this pull request Dec 12, 2024
Tables can be sorted by columns, ascending or
descending. However, when switching to a
different tab and back again, the sorting reverts
to the default. With this change, the sorting is
remembered.

Does not persist the sorting, meaning it still
reverts to the default after a page reload.
I did not do this because the only to way to
get rid of persisted sorting would be to the
clear the browsers cache, and I did not want
alienate people.

Also sneakily changes the default sorting
of the series table in the same way as opencast#1008.
@Arnei Arnei mentioned this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:visual-clarity Improves UI readability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant