-
Notifications
You must be signed in to change notification settings - Fork 87
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 UI issues with Wagtail 4.0 release #558
Comments
FYI - I ran into this trying to edit translated pages on 3.0rc2:
The error appears to be in |
Hey @enzedonline, we do not yet have official 3.0 support. That is pending. |
Should this issue be closed following the 1.2 release which supports Wagtail 3.0? https://github.com/wagtail/wagtail-localize/releases/tag/v1.2 |
#560 only fixed the header styling. I think we should reporpuse this for the Wagtail 4.0 UI compatibility as 4.0 finishes the UI changes started in 3.0 |
Sounds good. Happy to volunteer on this as we are launching a project soon that would ideally lean on Wagtail 4.0 + wagtail-localize. I'm currently looking in to potential issues. |
That would be great. The biggest thing will be header markup and overall styling. At the moment we still retain the teal colours whereas the 4.0 UI is much lighter |
Just making notes here of things to look into:
|
Not to question fundamentals too much but is there a particular reason why the whole of the translation editor is implemented in React? Wondering if it wouldn't be easier to maintain alignment with the Wagtail admin if it this package leant on the same header templates. For example, the new page editor's header has metadata stuff going on etc that would be nice not to lose. I'm just getting stuck into this though, there might be an obvious reason. |
This was one of the first questions I had when I started working on localize. The short answer is there was supposed to be a lot more functionality that lent itself nicely with React. However, the scope and priorities shifted since. I would be all up for dropping the React requirement as it would also make fixing things like #508 or #364 faster too, but I don't have enough dedicated time to make it happen. |
OK, so I think dropping React makes sense given the context. The impending introduction of StimulusJS into Wagtail means decent interactivity could be layered on top at a later date if required. For the sake of speed and compatibility with 4.0, I'll submit a PR that brings in just enough of the header template that's required, but keeps the majority of the editor in React. |
The Wagtail 3.0 first release candidate is out. There are large UI changes in this release, for which we have reviewed expected breakage in third-party UI customisations.
This is beyond what we do with our normal breaking changes policy, since the majority of those changes are on parts of Wagtail that haven’t been publicly supported / documented in any way. To make sure this goes smoothly anyway, I’m here to provide an advance notice of what we’re aware of with this specific package 🙂
In the case of wagtail-localize there are three changes we’re expecting to require rework for Wagtail 3.0.
Uppercase text
The majority of the Wagtail admin UI no longer uses uppercase text, to improve readability. The exception is the page status (live, draft, etc.). Suggested actions:
u-text-transform-uppercase
andlabel-uppercase
no longer exist and shouldn’t be used anymore.Here are matches in this repository, which will likely need removing:
Header template reuse
We’ve changed headers across most of the CMS. We are expecting those changes to be cosmetic only and not affect what customisations the header supports, but this is nonetheless worth reviewing manually.
Core templates reuse
It’s very hard to assess whether those customisations will suffer from any of our internal changes. This is worth reviewing manually.
I hope this all makes sense. We’ve made a lot of other styling and template changes that are hard to track down, and for which it’s unclear whether any breakage might be expected or not. As you go through the Wagtail 3.0 compatibility work, please let me know if there are other compatibility issues you come across so we can consider those customisations in Wagtail development in the future, and let others know about those breakages.
The text was updated successfully, but these errors were encountered: