opencast / opencast-admin-interface

A modern admin user interface for Opencast
https://admin-interface.opencast.org
Educational Community License v2.0
1 stars 23 forks source link

Set initial sort column to "date" #699

Closed Arnei closed 3 months ago

Arnei commented 3 months ago

When initially loading the admin ui, the events table will reorder itself after a few moments. This avoids the reordering by initializing table sorting parameters with "title" for the "sort by column" parameter.

Fixes #610

github-actions[bot] commented 3 months ago

This pull request is deployed at test.admin-interface.opencast.org/699/2024-06-20_12-40-28/ . It might take a few minutes for it to become available.

github-actions[bot] commented 3 months ago

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

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

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.

Arnei commented 3 months ago

Note: Sort by date instead.

lkiesow commented 3 months ago

Does this still work if you have ordered the table before? Or will the admin interface discard custom sort settings after a reload anyway right now?

Arnei commented 3 months ago

The latter, custom sort settings are currently not preserved.

lkiesow commented 3 months ago

This doesn't seem to work. I've just tested 2e4b2da using npm start and I see three stages when initializing the table

Here is the (slowed down) recording:

https://github.com/opencast/opencast-admin-interface/assets/1008395/61de3990-c801-459b-83fd-35bff25df25d

Arnei commented 3 months ago

Damn it, you're right. Curse you descending sorting order. I'll see what I can do.

Arnei commented 3 months ago

Should be better now.