Richie
(Richie Rich)
September 8, 2024, 11:02am
1
Hi everyone.
Just updated to Disourse 3.4.0.beta2-dev (cde4db1c6a ) only to find the layout of the admin page for Badges is a bit broken.
The list of badges is usually on the left of the screen, allowing you to manage / add / edit the badges on the right hand side of the screen.
But here’s how it looks now, there’s a great big empty and unusable space in the left-middle:
1 Like
Lilly
September 8, 2024, 12:27pm
2
can you try safe mode ? I can’t reproduce this.
1 Like
Richie
(Richie Rich)
September 8, 2024, 12:52pm
3
Hmm, it’s doing it in Safari and Chrome, both tested and replicated in Safe Mode too.
Ok, thanks @Lilly - it might be something else I’ve changed elsewhere, you can probably ignore this one
1 Like
Lilly
September 8, 2024, 12:54pm
4
I just did a fresh deploy to my test hosted site and badge admin is working as expected. that is odd that it’s doing that in safe mode .
I also did a check with header drop down menu instead of sidebar, as well as using the old admin nav menu, and it is still working as expected.
4 Likes
Richie
(Richie Rich)
September 9, 2024, 7:54am
5
Steps to replicate:
Change the default locale
setting to English (UK)
:
Reload Discourse in a new tab and browse to https://example.com/admin/badges
where the layout is now broken:
Change or reset the default locale
setting to it’s default of English (US)
:
Reload Discourse in a new tab and browse to https://example.com/admin/badges
where the layout is now working just fine:
I have absolutely no idea how or why this is the case
But a big shout out to @JammyDodger for highlighting the root cause
Is this bug something that could be fixed?
4 Likes
david
(David Taylor)
September 9, 2024, 11:53am
6
Thanks @Richie !
Looks like there are a couple of problems here.
The English(UK) translation is missing the new, longer, description at the top of the page. That’s because the ‘badges.description’ key has been reused, and we haven’t done an update from Crowdin since then
This will resolve itself imminently, when translations are auto-updated
The layout seems to be dependent on the length of the description. In US english, I can repro the problem by going into dev tools and shortening the description
Even once the UK english string is updated, this is still worth fixing because other languages which use fewer characters are likely to have the same problem.
Looks like the change is related to UX: Apply admin UI to Badges (#28724) · discourse/discourse@be5c37a · GitHub (cc @ella @martin )
6 Likes
Richie
(Richie Rich)
September 9, 2024, 12:29pm
8
Thanks for the insight @david
4 Likes
Lilly
September 9, 2024, 2:33pm
9
I’m in Canada and I’m blaming the UK for this one.
thanks Richie. I didn’t even consider the locale setting
5 Likes
Jagster
(Jakke Lehtonen)
September 9, 2024, 3:52pm
10
This is totally off topic, but there isn’t any English (CA), there is? So would you use UK or US locales? It may depend of course, but in general?
3 Likes
Lilly
September 9, 2024, 3:53pm
11
our stuff usually defaults to US. we don’t say loo or trousers much here. lol
4 Likes
Richie
(Richie Rich)
September 9, 2024, 7:17pm
12
Not a problem, we’ll happily claim ownership of this one on behalf of the rest of the world
4 Likes
ella
(Ella)
September 9, 2024, 7:46pm
13
Thanks for catching that!
I added a div wrapper to make the layout more stable and fixed the issue with inconsistency when using different locales.
Should be fixed with this PR:
discourse:main
← discourse:fix-admin-badge-layout
opened 05:44PM - 09 Sep 24 UTC
- Added a div wrapper around the content below the description to stabilize the … layout
- Fixed an issue where using a locale other than US English caused layout inconsistencies
Reported here: https://meta.discourse.org/t/layout-of-admin-badges-page-broken-after-updating/325492
6 Likes
Richie
(Richie Rich)
September 10, 2024, 12:24pm
14
My entire country thanks you for the quick fix @ella
3 Likes