Comments (6)
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.
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.
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:
- Save current query;
- Discover list of saved queries and pick a query from that list;
- If current query is a saved query, have a clear indication of which saved query is currently applied;
- 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;
- Rename and delete saved queries;
- Two modes of saved queries: Personal (for current user only) and Shared (for all users)
Am I missing something?
from djangoql.
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.
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.
yes, 3/ and 6/ are great too.
from djangoql.
Related Issues (20)
- Bug in custom AdminSite HOT 2
- DjangoQLSchemaSerializer in drf Viewsets HOT 1
- Consider vendoring `ply` HOT 2
- Related names
- Logos in `README.rst` are hard to read in Dark Mode
- search triggers AWS WAF because the query looks like a sql injection HOT 2
- Django 4.2 compatibility HOT 1
- Different results when order is changed.
- Where to execute SQL statement instead of ORM ? HOT 1
- Search does not work with GenericIPAddress fields HOT 2
- AttributeError: 'QuerySet' object has no attribute 'explain' HOT 2
- Duplicate results in reverse ForeignKey lookup HOT 3
- Steps to bundle the completion HOT 3
- Contains on M2M models produces same result multiple times HOT 1
- Support of Django 4.0 HOT 2
- Collectstatic on Django 4 fails due to missing map file HOT 1
- Search on Oracle Backend HOT 1
- Dealing with JSONFields
- Request for dedicated wiki page / tutorial on how to include DjangoQL autocompletion on webpage HOT 3
- Search for `in ("")` raises strptime() error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangoql.