gawati / gawati-portal-ui

Version 2 of the gawati portal
GNU Affero General Public License v3.0
0 stars 0 forks source link

Save Search functionality #78

Closed kohsah closed 6 years ago

kohsah commented 6 years ago

a logged in user should be able to save filter search combinations on their profile.

image

The yellow part below after the page needs to have a "Save Search" and a "View Saved Searches" link. Clicking on "Save Search" should drop-down a dialog with a field to enter a name for the search and a save button. Clicking save should save the save search configuration with the name. Clicking "View Saved Searches", should drop-down a list of saved searches, clickong on any of them should execute the search with that filter.

kohsah commented 6 years ago

Saved Search should save the "filter comination" only.

ccsmart commented 6 years ago

I think this does not need as much flexibility, but ease of use above all. So i'd suggest to not allow names, have search or keyboard use. I'd like to suggest eg, a slotted system. In this example there can be 1 slot called "default", and say 3 more slots that are just numbered (slot 1, 2, 3). "default" slot is what any search comes up as by default.

As part of the search configuration pane, there is a dropdown. The dropdown has the list of "default, "1", "2", "3" and "reset / clear". The default and the three numbered slots have a "save" button. The items in the list may show the configured filters in a bubble when hovering the mouse for eg 3 sec.

If we can, we should also start thinking about keyboard shortcuts...

kohsah commented 6 years ago

@ccsmart I think having the name is a good thing, since its a label telling you what the search combination is about if you are looking at list. I have seen many sites that allow saving searches - allow adding a label to it .. i use them myself when saving evernote searches, and they are very useful because without clicking the search you know what its about.

On the slots yeah that makes sense - default should be a flag on a list rather than a fixed search so e.g. they have 5 slots, any one of those slots can be a default.

kohsah commented 6 years ago

@surajpt so we should have 5 slots i.e. 5 save-able searches, and any one of those can be set as a default. I think we don't need separate "Save" and "View" search links in this way. You need one link "View / Save Searches" clicking that shows a drop down with 5 slots with (when empty shows a "Save Search +", else "Search Name +") ) . Clicking on the Plus saves the current search into that slot, otherwise clicking on the "Search Name" label executes the search.

ccsmart commented 6 years ago

plus one then that is clear/reset or similar, which can also be activated as default but has no save button.