Skip to content

Update to React 19#1705

Merged
Arnei merged 20 commits into
opencast:developfrom
Arnei:replace-resize-observer
Jul 22, 2026
Merged

Update to React 19#1705
Arnei merged 20 commits into
opencast:developfrom
Arnei:replace-resize-observer

Conversation

@Arnei

@Arnei Arnei commented May 19, 2026

Copy link
Copy Markdown
Member

Fixes #1643.

react-beforeunload added support for React 19, and use-resize-observer was replaced.

Bunch of other dependencies received major version updates too.

Arnei added 11 commits May 19, 2026 11:22
With "usehooks-ts". The previous library is blocking our update
to React 19 and it is unclear whether that will ever change.
Minimal viable dependency updates to finally get React 19.
React 19 does not require a lot of changes, but some.
Also needed to disable a typescript rule because
typescript got confused.
@Arnei Arnei added the type:dependencies Pull requests that update a dependency file label May 19, 2026
@github-actions

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown

This pull request is deployed at test.editor.opencast.org/1705/2026-05-22_12-16-10/ .
It might take a few minutes for it to become available.

Arnei added 5 commits May 20, 2026 16:22
Lots of major changes with this update. Will have to see
if and how this might influence behaviour.

Seems to allow us to get rid of our custom patched
version though, which I like.
New major has quite a few changes, but ultimately
things should work the same as before.
Was because of dependency upgrade
@Arnei
Arnei force-pushed the replace-resize-observer branch from be77113 to 1f86b2b Compare May 22, 2026 08:47
Arnei added 3 commits May 22, 2026 11:00
There were previously used in the Metadata component.
With the rewrite of the metadata component,
they were only used for
one Select in the subtitle select, for which they
are totally overkill.
This removes them, and instead uses a Select from mui material.
due to undefined error

@owi92 owi92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have tested this and couldn't find any obvious issues. However I am not an avid editor user, so take this with a grail of salt. For my tests I simply tried all functions (basically just clicked through the interface) and compared with https://editor.opencast.org/19.x/ (https://editor.opencast.org/develop/ appears to be broken).

Code looks generally fine too. My comments are just some code suggestions that do equivalent things compared to what's already in place, but they are a little nicer imo.

Comment thread src/main/SubtitleTimeline.tsx
Comment thread src/main/VideoPlayers.tsx Outdated
Comment thread src/main/VideoPlayers.tsx Outdated
Comment thread src/main/VideoPlayers.tsx Outdated
Comment thread src/main/VideoPlayers.tsx Outdated
Comment thread src/main/VideoPlayers.tsx Outdated
Comment thread src/main/VideoPlayers.tsx
Comment thread src/main/SubtitleListEditor.tsx Outdated
Comment thread src/main/SubtitleListEditor.tsx Outdated
Comment thread src/main/SubtitleListEditor.tsx Outdated
Implements various suggestions by @owi92 that make
the code just that little bit nicer.
@Arnei
Arnei requested a review from owi92 July 22, 2026 09:25

@owi92 owi92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm, thanks!

@Arnei

Arnei commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

And thank you for thoroughly testing this and even adding all these suggestions to make the code a little nicer :)

@Arnei
Arnei merged commit e566e2b into opencast:develop Jul 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to React 19; blockers

2 participants