-
Notifications
You must be signed in to change notification settings - Fork 347
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
PnP search Refiner WebPart(v4.1) – File Types should group and show user friendly names #972
Comments
This is a very good feature in SharePoint 2013. It would be great if we get this feature in PnP Refiners. |
When someone from the community builds it :) |
If i implement this i would like to build a more generic approach (not only for fileType). Any idea / suggestion how the configuration should look like? |
You would need one or more property matching expressions which is used to group over to a UX label. Pseudo logic below, and question is how advanced you want to get with AND/OR's.
where the expressions must support being translated into FQL when you click on them. |
@edarroudi You can use hooks if you want, but mixing and matching patterns may make code more cluttered. So I'm a bit ambivalent. |
Same here, I find hooks hard to read in my opinion. If you prefer this option, why not but make it easy to read and follow. |
Hi guys, Another question would be the sorting behaviour:
What do you think about "Double value" checking: |
Can you share a branch url? |
Hey @wobba that branch is not in a status i would dare to share :) Just didn't want to waste my time to fully develop the features not knowing if you guys will accept those features & how i implement them. Normally i discuss a "user story" before i implement it. I will create a new feature branch once i know what you guys think about my questions from above. |
@edarroudi I think the UX looks ok. What would happen if you click on a grouped value? What would the expression be, and it has to work for both the Graph and the SP provider. |
@wobba thanks for your reply. I tested both in SharePoint & Graph DataSource the following requests and they worked.
Option b)
In Graph
Option b)
So looking at the option "b" it seems that we can pass direct fql as advanced option. I probably would use option "a" in simple mode and option b in advanced mode for performance issues? Clicking on the group value will have the same behaviour as clicking any other filter value. I don't plan on implementing any special treatment here. But of course i'll try out some scenarious like when the user clicks on group "word" (doc, docx) and there is already a selected "doc" filter in the checkbox... |
I think both option a and b perform exactly the same. Using encoded tokens might be preferable when they are available on the response, but I have no strong feelings how the filter FQL is crafted. |
I created a draft version - perhaps you can have a look if you have some spare time. |
hey @wobba, as my PR was closed without a comment I was wondering if you guys don't want this feature or I should merge it with the new version for a review - It's ok if there is no need for it but I would appreciate some feedback on this matter. |
@edarroudi closed by accident. Sorry about that. |
Re-opened. And will have to review it. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
Search refiner template group the similar file types and show user friendly names.
We have this feature in SharePoint 2013
Describe the solution you'd like
All similar file types should club in one group and the group name should be user friendly.
Ex :- “Word” group (.doc, .docx)
Describe alternatives you've considered
This feature should be in PnP Search refiner similar as SharePoint 2013. Actual file type names are not user friendly.
Additional context
Please see the attached document with screenshots
PnPSearchRefiner(v.1) FileType group and user friendly names.docx
The text was updated successfully, but these errors were encountered: