Filter (categories) selection is leaking over into other sources

Created on 29 June 2024, 6 months ago

Problem/Motivation

The different sources have a differing set of filter types. If you make a few selections for the filter categories on the d.o mock you'll notice when switching to the recipes source that the results section is empty even though no search query has been entered nor any filter setting was applied. if you proceed and switch to the drupal core source and again make two selections on the filter categories section which differs option wise from the d.o mock and then switch back to the d.o mock you will notice a change in the numbers of results on the d.o source tab. making no changes and switching back to the drupal core source the results change again in the tab (see filter.mp4).
so technically each of the three available sources has a different set of "filter category" options (recipes need a few initial) and probably each source would probably also need a different set other filters because it is not sure if maintenance, security and development status apply and or make sense at all for each of the three available sources.

Steps to reproduce

Proposed resolution

it would make sense to keep the filter setting selection within the scope of a single source, and each of the sources has a default set of filter settings. the only exception might be if a developer deliberately decides and sets that their own private bespoke source should follow and adopt the set of filter types of another source for example the d.o mock.

Drop the results count in the tabs. in regards of the page order the search field, the corresponding filter settings and the results are underneath the tabs; visually and hierarchically the three components belong within a SINGLE source. to make sense that the search applies to ALL sources the search as well as the filter settings would have to be moved before/above the tabs. then the results count would make sense but as i said that way ALL source would have to have the same filter settings. and due to the diversity of source that is more or less impossible.

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

User experience

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany rkoller Nรผrnberg, Germany

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @rkoller
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States chrisfromredfin Portland, Maine

    Totally agree. I think we originally assumed everything would have the same TYPES of filters, but not necessarily the same values inside (for example, recipes may have categories, development statues, maintenance status, etc - but they wouldn't have the SAME categories, even if they did).

    So I think we have to do this.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India
  • I was trying to reproduce what's demonstrated in the video by @rkoller but i think this problem no longer exists.This was solved in This issue ๐Ÿ› The functionality of showing results behaves abnormally on tab switch sometimes Active i guess.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India

    @rkoller, Do you think this issue is ready to be Closed(outdated), or is there anything further that still needs to be addressed?

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany rkoller Nรผrnberg, Germany

    took me a while to refresh my memory about the scope of the issue. i've first only skimmed through the title and the problem statement section, based on that i would have said the issue could be closed as outdated after the issue @utkarsh_33 linked fixed the leakage of filter selections across source types.

    buuut reading through the proposed resolution more closely another time i think the more fundamental conceptual problem is still left to tackle that is not in the title and problem section but the proposed resolution only. At the moment, if you illustrate the components on the pages as priority guides, you get:

    1. secondary tabs
    2. search field
    3. filter
    4. results

    Would the search scope only be the active source type, the visually hierarchy would be crystal clear except for the redundant search count. the user first decides the search context by selecting the active source type (1), then decides on the search term (2), then is able to refine and narrow down the results by filtering (3) and then is able to browse the final results (4). everything would be in a clear hierarchy and order top to bottom.

    Instead on every change of the search string and/or interaction with the filter settings a new query is sent against each available and enabled source type. the individual number of results for each source type is reflected in each secondary tab (1). The count on the active secondary tab/source type (1) is redundant to the result count in the results section (4). That way the users attention is drawn between the secondary tabs (1) and the results (4) - while being in search field (2) which is part of the filter section (3). There is not that clear visual hierarchy and order and clear separation of concern of all the steps involved in the search experience. the relationships are not clear but intertwined. overall the interface still has a mixed messaging that lacks clarity.

    there is also the question what is the benefit and or the actual need to search across all available source types? instead it might become rather a performance hog. at the moment you only have the contributed modules source type that queries the endpoint on drupal.org but sooner or later the recipes source type will do that as well, and themes might be added there as well. that way you would get three requests on every change of the search string or adjustment of the filter settings. and there is still the possibility that sites and agencies add their own private source types on top of that.

    In the following the two approaches including including the proposed resolutions for each variant:

    variant A - query all source types:

    • move the search field between the primary tabs and the secondary tabs.
    • remove the result count from the secondary tabs
    • keep the search scope to all known and enabled source type

    variant B - query only the active source type:

    • remove the result count from the secondary tabs
    • limit the search scope to the active source type

    I regard of clarity and a separation of concern, my personal preference would be clearly variant B...

    ps. in the drupal dojo austin where i'Ve presented the current state of project browser i got a few ideas/suggestions in regards of source types and filters that might apply here as well. but i havent had the time to summarize the findings. will catch up on this in the next few days.

  • I agree with @rkoller that variant B is a better approach to solve this fundamental issue that exists right now.

    ps. in the drupal dojo austin where i'Ve presented the current state of project browser i got a few ideas/suggestions in regards of source types and filters that might apply here as well. but i havent had the time to summarize the findings. will catch up on this in the next few days.

    Is there anything that you wanted to update or add according to the above comment or shall i start with the approach in variant B?

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany rkoller Nรผrnberg, Germany

    i wouldn't add anything to the scope for this issue. but i've summarized the additional points raised during the aforementioned drupal dojo austin in: ๐ŸŒฑ Discuss and perhaps improve how source types are integrated into the overall search experience Active

  • Pipeline finished with Failed
    3 days ago
    Total: 388s
    #373495
  • Pipeline finished with Failed
    3 days ago
    Total: 384s
    #373662
Production build 0.71.5 2024