Git Product home page Git Product logo

Comments (5)

robertknight avatar robertknight commented on June 25, 2024

Some relevant UI from other apps that provides some kind of "filter a list with multiple active filters" UI.

Slack:

Slack conversation filter

If for example you check "Without external people" you see this at the top:

Without external people

The subtle-ness of the message is good. The single-action "X" would not be usable for us as the user needs a way to re-enable focus filters (eg. switch between current user / all users, assignment chapter / whole book).

Google Drive:

Google Drive filter

In Google Drive if you do a search it clears the filters (type, person etc.). The user can however press the Back button to conveniently get back to the previous filtered view.

Apple Mail:

This uses the three-bars-in-a-circle icon with pressed and unpressed states to indicate whether a filter is active.

Filter active Filter inactive

Clicking the filter toggles all filters on / off. You can long-press for more options:

Filter menu

from client.

robertknight avatar robertknight commented on June 25, 2024

Something I don't like about the current filter toggle UI is that the button can dramatically change length depending on whether the filter is active or not. This means that the text moves around in a distracting way when it is toggled, and also the hit target changes. So a fixed sized icon is a must in the replacement UI.

from client.

robertknight avatar robertknight commented on June 25, 2024

Here is a prototype that shows where I'm going with this:

Combined filters and search

In the above screenshot we have the following filters:

  • A user filter, configured but inactive
  • A page range filter, configured and active
  • A search filter
  • Annotation type filter: Annotations tab selected (note that the count in the above screenshot reflects the total number of annotations. It should probably show only the count that match the filters)

We could include the filters in the search description, so it would read "Showing 1 result for foo in pages 10-30", or "Showing 1 result for "foo" in pages 10-30 by Robert Knight" if you had both filters active. However this starts to get quite verbose.

from client.

robertknight avatar robertknight commented on June 25, 2024

Jared, Dan, Alejandro and myself discussed this on a call yesterday. We arrived at the designs discussed in https://hypothes-is.slack.com/archives/C07NXBDNW/p1704730651476379 (Figma: https://www.figma.com/file/sC8gPsiPLHOuaGKSCvQXUR/Hypothesis---Search-(Sidebar)?type=design&node-id=0-1&mode=design&t=94q4pMDVYxpeYYTi-0):

Hypothesis - Search (Sidebar)

Some notes:

  • The current single focus filter on/off toggle is replaced with individual buttons per focus state, as in #6070
  • The focus toggle buttons are integrated into the filter panel. If there is not enough room to fit all the toggles, they wrap.
  • Tabs are shown whether a search is active or not
  • The label reporting the number of matches has been removed, since that number is displayed on the tabs (albeit divided into Annotations and Page Notes)
  • When there are focus filters configured, the filter panel is always visible, but does not include the search bar if the search toggle is not pressed.
  • The "X" action for the panel is removed. Instead an "X" is shown inside the search bar. The closest existing UI we have for this is the button to clear the transcript search in Via's video annotation UI.

from client.

robertknight avatar robertknight commented on June 25, 2024

Updated designs: https://hypothes-is.slack.com/archives/C07NXBDNW/p1704925791763109

from client.

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.