hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

feat: Specify component types in detailed deps page

Open 414owen opened this issue 2 years ago • 0 comments

With the advent of multiple sublibraries per package, it has become less clear what each component is, on the 'detailed dependencies' page.

This changeset replaces the tabulated view of

component name list of dependencies
- lib 1 - dep 1
- dep 2
- exe 1 - dep 3

With the more heirarchical:

Libraries

  • lib 1
    • dep 1
    • dep 2 ...

Executables

  • exe 1
    • dep 3

This change is related to https://github.com/haskell/hackage-server/issues/1218


Screenshots

Before

Screenshot from 2024-01-01 23-04-03

After

Screenshot from 2024-01-01 23-01-48

Obviously, when there are no components of a given type ({Executables, Libraries}), the header itself is not rendered.

414owen avatar Jan 01 '24 22:01 414owen