-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add People to Info panel and Upload page #3083
base: main
Are you sure you want to change the base?
Conversation
Cool! Not sure why I said it didn’t work, will check, was some time ago (but I defo haven’t invented this error, I’m not that clever)
All other points much more important than fixing reordering. We can defo live with the reordering. Ideally alphabetical, but random’s cool too if hard. |
https://github.com/guardian/grid/compare/aw-mk-people-power |
Yep! Confirmed it works, yay! (I think it may be the same for similarly conditional Copyright field: when you batch apply on the upload page, it, correctly, batch applies it also to the pics that had no people field before, so the effect of the change is not visible for them, because the UI won’t show this newly acquired field on those pics. Easiest would be not to make it conditional: a bit more clutter, but a signal that we care about people. That we are the people’s people ;-). |
Both I think there's an opportunity to re-work the metadata forms here:
@paperboyo and I have spiked 1 and hope to have a PR soon. |
Alas, this generic component will only benefit fields of type Labels sit under a different part of the image, namely within |
After this pure goodness goes in, |
This follows the amazing #3048.
peopleInImage
field present (whether we want it conditional should be confirmed with PIcture Desk before this gets merged)This should make editing People metadata more accessible, convenient, consistent and should raise the profile of this field.
This is the draft as I have hit the limit of my abilities: all having to do with the array nature of the data.
Current unresolved issues:
1. Editing People on the Upload page doesn’t work (strangely, it works in the Info panel):
400: List((/peopleInImage,List(JsonValidationError(List(error.expected.jsarray),WrappedArray()))))
2. When only one person in one selected image is present in the field, Info panel shows it in square brackets:
3. Even for one image, if there are multiple people in the field, Info panel shows what’s usually shown for multiple images unreconcilable data:
4. The same as above is shown for multiple images having exactly the same one person (or the same collection of people) in their People fields
5. When one (or more) image(s) have no People data, Unknown (click ✎ to… edit prompt isn’t shown
6. [preexisting issue] Hide the whole field when it’s empty and user cannot edit (see here) (in Viewer, fixed by Unknown text for user without Edit Metadata permission #3303)
Ideally, we would add reconciliation UI for multiple “tokens” here exactly as we have for labels, just keywords-like grey, (common ones could be removed from all selected images, those present only on some images, could be added to all etc.). We would use the same UI for (editing) keywords and other fields holding multiple values too (eg., per spec, XMP
dc:creator
can contain an array, even though no suppliers are using it, really).But even without this extra UI work, I hope pts. 2–6 can be fixed, so that they at least work correctly.
Tested?