Skip to content

Improve UX: Show Use cases instead of tools when advising how to install / use packages #978

@dwt

Description

@dwt

I've started the discussion in #963 on how to improve the usability of the 'how to install / use' section of the search results.

What it boils down to is that the current examples are grouped by tool, but I think this would be much more useful, if grouped by use case instead.

I think this has several advantages:

  • New users have a clearer advice on which way they want to go
  • It is way easier to group different technologies that achieve the same means in those categories.
  • Easier to extend when new ways to use nix come along that we want to showcase without overwhelming the user with choice

For example:

  • Run Directly could show nix-shell --command and nix run
  • Try without installation could group nix-shell and nix shell
  • Permanent installation could group nix-env, nix profile, configuration.nix based install and flake based nix configuration.
  • Development Environments could group shell.nix, flake.nix based mkShell and perhaps devenv based installation
  • Embedded in Shell Scripts could show how to use nix-shell to add it to a shell script without requiring installation.

Of course the names are up for discussion ,as these examples are lengthy, and the UI doesn't work great on small screens (cough phones cough) as it is.

Inside those tabs, perhaps an accordion could be used for the different ways to achieve this. Ideally a cookie could be used to remember the users choice and use that by default on each search result.

I would greatly appreciate the clarity this gives.

@maintainers: What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions