Skip to content

Display icons for crate owners in search results #2719

@carols10cents

Description

@carols10cents

Some crates use an informal namespace of maincratename-something to indicate that a crate is meant to work with a set of crates, such as serde-json works with serde.

When you're searching for a crate to use with another crate, it would be useful to know whether a crate is owned by the same team/individuals as the main crate or not.

We currently display owner icons on an individual crate's page in the sidebar on the right:

Screen Shot 2020-08-27 at 4 49 40 PM

I'm proposing we add this to the search page, so that the search results for "serde" look like:

Screen Shot 2020-08-27 at 4 53 15 PM

This way, you can scan and see that oh, serde-json is owned by the same folks as serde, serde_json_experimental is owned by one of the people that owns serde, and alt_serde_json is owned by a completely separate person.

Teams should be listed first, then users, which I think is what happens on the crate page already.

This will add another join to the already gnarly search query :-/

I'm no designer (as I'm sure you can tell by my mockup), and any design needs to work for desktop widths as well as mobile widths.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions