Good riddance#3367
Conversation
I assume this isn't on stage anymore at this point? |
|
I don't remember if we have docs with screenshots of the admin UI. In case, they will need to be redone (I like the more consistent look).
Something is broken though: I moved one file from EDIT: I think this is the log |
I only found this: https://mozilla-l10n.github.io/documentation/tools/pontoon/adding_new_project.html The screenshot only contains the tag management part of the Admin UI, so we can update it (and the corresponding text) as soon as this PR is merged.
This is currently hardcoded in the widget. Due to the clash with #3353, we could implement it as part of #3368 (or a separate issue).
The locale widget is specific, because an arrow is a must in the middle column. In other places where the widget is used, we don't use an arrow in order to save space, see user settings or Messaging center. We could still add an arrow, but for the reason mentioned above, that would need to be in #3368 (or a separate issue).
Nice catch! Looking into it. |
Update: Clicking on a resource unsets the tag priority, and the dashboard breaks in case tags don't have a priority. Interestingly though I can't reproduce that locally yet. We should also make tag priority a required field (because even on |
Turns out this is a bug in #3353, which is also deployed to stage. 🤣 |
…lace custom code
|
The admin area looks good on stage. Is there anything else that needs testing? |
Thanks. Mostly Admin, but also the Tag dashboards. |
flodolo
left a comment
There was a problem hiding this comment.
Both admin area and tag dashboard look good to me.
Co-authored-by: Francesco Lodolo <flod@lodolo.net>
Fix #3108.
First and foremost, this patch replaces the unusual widget for selecting tag resources in Pontoon Admin with the multiple item selector that is more commonly used in Pontoon (see Add new Tag resource management UI).
Secondly, the last bits of the old Tags Django code are now finally removed. It should now be much simpler to fix issues like Add ability to define a default tag per project #2122 and Provide a way to analyze tags for errors #2131.
Finally, the odd tag-admin frontend, which was only powering the old widget for selecting tag resources in Pontoon Admin, is now removed (see Remove Tag Admin Frontend code and Remove Tag Admin Frontend environment).
In total, the same (actually, I think it's much better) functionality uses some 95% smaller footprint:

The patch was tested locally in Docker.
It should also be tested on stage before we can proceed:
https://mozilla-pontoon-staging.herokuapp.com/admin/projects/firefox/
Also included are a few smaller Pontoon Admin improvements:
A few additional changes would be nice to make in Pontoon Admin. At least one of them would clash with #3353, so I've filed #3368 for that.