Skip to content

Support qualifiers for package filter on org page #2955

Description

@mootari

Describe the feature

The package filter on an org page can be pre-populated via the q query param, but the search phrase is only applied to the "Name" field. There is currently no way to share a link that e.g. filters by "Description".

Suggested changes

  1. Persist all non-default filter options to the URL as query param. E.g., selecting "Description" from the filter settings would update the URL to include &search=description, but selecting "Name" would remove the param.
  2. Set the initial filter values from the query string.

Example scenario

Go to https://npmx.dev/org/lezer, select the "Description" field and enter "grammar". You should then be able to share a URL that prefilters the package list down to ~14 entries, all having "grammar" in their description.

Additional information

  • Would you be willing to help implement this feature?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triageNew issue waiting for initial maintainer triage
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions