-
Notifications
You must be signed in to change notification settings - Fork 122
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
T1629 - interim filters #4263
T1629 - interim filters #4263
Conversation
fc156dc
to
2d3e230
Compare
0a50e3d
to
2fb22bd
Compare
f846116
to
7658b8d
Compare
Thank you! For now, minor points regarding config and naming:
|
TL;DR: we will give it a code review and can merge if you are happy (only pt. 6 may need fixing as otherwise we have a hard exclusionary behaviour between disparate config options; @AndyKilmory is aware). The below is for your consideration… I have tested it a bit more. In general, I think this is a distinctly BBC-only functionality for several reasons, so it may be that the following problems are squarely in your court: we don’t wanna be a blocker with something we are not likely to use. On the other hand, this may be the first piece of functionality which cannot simply be configged-in: some of the following would need to be fixed before that would be possible (ie. before we, or any non-BBC user, could switch this on)… Some of the reasons we can’t use it, forgetting the fundamental one: we can’t think of useful “permissions” filter for the Guardian as-is, so no real need from us to fix it, let alone quickly or before merge (but still, hopefully, useful):
Here are some general thoughts unrelated to the above. Consider only if useful for you:
|
Thanks @paperboyo - will look to fix blocking issues asap and raise the others with the team for discussion. |
… visible and conditional check not required
Hi @paperboyo, Have pushed changes that I believe fix all the functional issues raised regard the PR. Please could it be re-reviewed? (I'm on leave next week 20th to 24th May so no great rush). Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - I'd just suggest adding a comment near the "permissionsDefault" config to avoid misunderstanding about what it does.
kahuna/public/js/components/gr-permissions-filter/gr-permissions-filter.tsx
Show resolved
Hide resolved
Seen on auth, usage, image-loader, leases, cropper, kahuna (created by @AndyKilmory and merged by @dblatcher 9 minutes and 38 seconds ago) Please check your changes! |
Seen on metadata-editor, collections, media-api (created by @AndyKilmory and merged by @dblatcher 9 minutes and 43 seconds ago) Please check your changes! |
Seen on thrall (created by @AndyKilmory and merged by @dblatcher 9 minutes and 46 seconds ago) Please check your changes! |
What does this change?
This change introduces a 2nd top-bar at the top of the Grid UI to accommodate increased complexity in the filtering, sorting and permissions controls. It introduces a new permissions filters which acts to provide an easy way to define combinations of chips and the chargeable setting when searching images.
Screen shot show the new layout including the new Interim Filters control (written in React), the new Sort Control moved to the 2nd tier (already merged in pervious PR) and a new My Uploads control to improve flexibility over styling.
The contents of the Interim Filter drop down are controlled through configuration;
interimFilterOptions = [
{
id:"allPermissions",
label:"All permissions",
mapping:"",
payable:"none"
},
{
id:"usableForAll",
label:"Usable for all",
mapping:"is:BBC-owned,-has:restrictions",
payable:"false"
},
{
id:"usableForNews",
label:"Agency (Usable for News)",
mapping:"category:agency",
payable:"false"
},
{
id:"bbcOwned",
label:"BBC owned programmes",
mapping:"category:programmes-organisation-owned",
payable:"none"
},
{
id:"independent",
label:"Independent programmes",
mapping:"category:programmes-independents",
payable:"none"
}
]
The use of Interim Filters is controlled use 'usePermissionsFilter' config variable in kahuna (true or false).
How should a reviewer test this change?
Ensure all controls work as described, work for an accessibility perspective and adapt correctly to screen width changes
Who should look at this?
Tested? Documented?