GithubHelp home page GithubHelp logo

Saved search queries about djangoql HOT 6 OPEN

ivelum avatar ivelum commented on June 30, 2024
Saved search queries

from djangoql.

Comments (6)

stebunovd avatar stebunovd commented on June 30, 2024

Hi!

thanks, I'm glad you liked it.

as for Save query button - that might be interesting, I even briefly thought about this. Any ideas what UI part may look like? I suppose it should be pluggable into any admin configurations, both with and without list_filter, and play nicely with it.

from djangoql.

flamby avatar flamby commented on June 30, 2024

there is this tool I'm using which use this UI pattern for that idea :
https://www.dropbox.com/s/35wejrng3z6u3yv/Capture%20d%27%C3%A9cran%202017-04-07%2014.14.50.png?dl=0

but i guess you'll have to rewrite the widget, maybe not that easy.

from djangoql.

stebunovd avatar stebunovd commented on June 30, 2024

thanks - just a quick question to make sure that I correctly understand your idea - ⭐️ icon should be placed in the input field on the right, and it should bring a popup with saved queries - correct?

If yes, where would you recommend to place it when the input is growing? Maybe this feature is not obviously visible to users, so I'll explain a little bit. DjangoQL input is not just a regular input, it's a textarea that adjusts its height automatically when users enter a lot of text. That was done to have search query always visible without scrolling, even if its really long. I've tested it on real use cases that we have in our company, and 1 line doesn't seem to be enough for all cases, that's why auto-resize feature was added. So - taken the fact that the search input could adjust its height, where would you suggest to place a ⭐️ icon? Top? Bottom? Middle? Outside of input?

Another side of the problem that I think about - which functionality do we want to support for search queries? Off the top of my head:

  1. Save current query;
  2. Discover list of saved queries and pick a query from that list;
  3. If current query is a saved query, have a clear indication of which saved query is currently applied;
  4. If saved query has been selected and after that search query was modified manually... Well, this should probably somehow affect indication of currently applied query;
  5. Rename and delete saved queries;
  6. Two modes of saved queries: Personal (for current user only) and Shared (for all users)

Am I missing something?

from djangoql.

flamby avatar flamby commented on June 30, 2024

Perhaps a more simpler approach would be to have the star icon separated from the input field, placed as a select button w/ dropdown for list of saved queries and a search engine at the top based on query label (if you want to add one) and the query itself, and on all queries of the list, a delete button on the right, that's simple. the dropdown could be scrollable to keep a short height, and the search engine would keep it very convenient.

It would address 1/ 2/ 5/
renaming is just a matter of selecting previous query, deleting it, and adding the modified one.

6/ is probably more complex

from djangoql.

stebunovd avatar stebunovd commented on June 30, 2024

I think replacing "rename" with add/delete could work, this is probably not a frequent action.

What about 3/ and 6/? I suppose that shared search queries could be useful for less experienced users, so ability to share a query and a clear indication of current applied query should be important..

from djangoql.

flamby avatar flamby commented on June 30, 2024

yes, 3/ and 6/ are great too.

from djangoql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.