Skip to content

Add more information about the package to package details page #131

@marko-hologram

Description

@marko-hologram

Problem

Hey, love what you've done so far with the app. I'm self hosting it and it's been pretty smooth to get this going. One thing I'm really missing is seeing more details on the package page.

Currently that page is pretty barebones. Here is an example of a package I added from GitHub:

Image

There is not a lot of information here besides downloads and versions.

Proposed Solution

There is more information that could be shown here.

For example from composer.json this could be pulled and shown:

  • description
  • type
  • license
  • authors
  • require (in case there are PHP minimal version requirements for example)

I think these would be useful to have directly inside the UI so you can easily see this metadata.

One more thing that I would consider useful would be rendering README.md file if it exists in the repo. README.md is usually used to describe and document the package/repo and it might contain useful information on how to use the package. It's unfortunate that now while looking at the package inside Pricore I still have to navigate to the original repository to get this useful info.

Something like this could be used to render markdown https://spatie.be/docs/laravel-markdown/v1/introduction. Spatie has good Laravel packages as far as I know.

One thing to consider is that markdown content could be pretty long and could make the package page super long so maybe it could be like a collapsible/accordion element so that you can toggle it as you wish. Just an idea.

EDIT: I just noticed that a lof of this additional information appears when I click a specific package version at the bottom of the page, but that still doesn't show details like the README. I still think the latest version info can be shown immediately and then you can click specific versions to get their information.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions