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 startDate table filter #287

Merged
merged 21 commits into from
Mar 27, 2024

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Feb 9, 2024

This fixes an issue where users had trouble confirming
a start date filter in the event table (should also fix it in
the series table).

Previously, the date filter would only be confirmed if
the end date was set through the calendar picker while
the start date was already set. This makes it so that it
does not matter which calendar picker is opened first.
Furthermore, it adds the ability to confirm the filter by
pressing "Enter" (all provided the both given dates are
valid). This should increase usability and should also be
closer to what users are used to from the old admin ui.

Includes the update to material ui version 5 from #277,
to avoid doing this for different material ui version.

Arnei added 5 commits January 24, 2024 14:27
Updates material-ui dependencies from version 4 to
version 5. This affects date/time-pickers for e.g.
scheduling or changing metadata dates, as well
as the circles at the top of the new event/series
wizards.

This does change how the date/time-pickers
look, because we were using the default style
before which now changed. In my opinion this
is for the better.

Also adds back the ability to type in the date field
instead of being forced into using a picker, although
that does seem to cause errors. Will investigate.
Weird type issues, where the input time for the
datepickers changes from string to date after
being passed around. Should work now, will
look for a cleaner solution when we introduce
typescript to formik.
This fixes an issue where users had trouble confirming
a start date filter in the event table (should also fix it in
the series table).

Previously, the date filter would only be confirmed if
the end date was set through the calendar picker while
the start date was already set. This makes it so that it
does not matter which calendar picker is opened first.
Furthermore, it adds the ability to confirm the filter by
pressing "Enter" (all provided the both given dates are
valid). This should increase usability and should also be
closer to what users are used to from the old admin ui.

Includes the update to material ui version 5 from opencast#277,
to avoid doing this for different material ui version.
@Arnei Arnei added the type:bug Something isn't working label Feb 9, 2024
The datepicker in details metadata would only close
after a lot of clicking around. This was problematic, because
the set date is not actually properly confirmed until
after closing. This should help with that.
For e.g. the event table, you can filter by start date,
by setting two dates to filter between.
This was not always working properly, because no
heed was paid to the time value for those filter dates.
This sets the time values for the dates, so filtering
from 14.02 to 14.02 should now show all videos from
14.02 instead of no videos at all.
For e.g. the events table, users can select a filter that
filters by startdate
When typing in the date for the first datepicker and confirming
it by pressing enter, the focus now automatically shifts
to the second datepicker (and vice versa).
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

github-actions bot commented Mar 4, 2024

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

Copy link
Contributor

github-actions bot commented Mar 6, 2024

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

Copy link
Contributor

github-actions bot commented Mar 7, 2024

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

Copy link
Contributor

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

@Arnei Arnei force-pushed the fix-startDate-tablefilter branch from c6a6743 to b3bcc4a Compare March 18, 2024 08:41
@Piriya-VM
Copy link
Contributor

Works for us in OC 15 :)

@Arnei Arnei merged commit e2dc4bc into opencast:admin-ui-picard Mar 27, 2024
1 check passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants