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

Ogc 1493 react mode #1229

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Ogc 1493 react mode #1229

wants to merge 12 commits into from

Conversation

BreathingFlesh
Copy link
Contributor

Please fill in the commit message below and work through the checklist. You can delete parts that are not needed, e.g. the optional description, the link to a ticket or irrelevant options of the checklist.

Commit message

Core: Change react-mode to production, not developer

TYPE: Bugfix
LINK: OGC-1493

Copy link

linear bot commented Mar 11, 2024

@BreathingFlesh
Copy link
Contributor Author

I would have updated it to the newest version too, but I couldn't figure out how to get the react.js files for the newer versions. But now react is at least not in the developer-mode anymore.

Copy link
Contributor

@msom msom left a comment

Choose a reason for hiding this comment

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

I guess this is OK, but I really don't know to be honest...

@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.95%. Comparing base (4bbcf3d) to head (36fc765).
Report is 1 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
src/onegov/org/app.py 97.72% <100.00%> (+<0.01%) ⬆️
src/onegov/swissvotes/app.py 100.00% <100.00%> (ø)
src/onegov/town6/app.py 97.72% <100.00%> (+0.01%) ⬆️
src/onegov/wtfs/app.py 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bbcf3d...36fc765. Read the comment docs.

BreathingFlesh and others added 9 commits March 25, 2024 15:09
create-react-class is a wrapper for the legacy React.createClass API.
Using create-react-class, we can continue to use the deprecated way of
creating React components - otherwise, we have to upgrade each component
manually, a time and error-prone process.

For now, we can use latest React without changing our components.
However, we should update a component whenever we work on it to the
latest format.
react-transition-group was moved away from React into
a community-maintained project.
Calling foundation() on a React-rendered element caused all handlers to
quit working (i.e., onChange did never receive a callback). Wrapping the
reveal element in a dedicated element and keeping the react-rendered
part separate seems to work.
Conflicts:
	src/onegov/swissvotes/assets/js/react-dom.min.js
	tests/onegov/form/assets/react-dom.min.js
	tests/onegov/form/conftest.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants