Skip to content

Increase max number of packages to compare #2289

@graphieros

Description

@graphieros

On the compare page, the max number of packages to compare was initially set to 4, to avoid layout issues.

Recent improvements allow us to increase this number:

  • data table now has fixed first column, and horizontal scrolling
  • bar charts will grow vertically
  • line chart has an alternative view (sparklines) that can become the default view above n number of compared packages (feat: compare download charts with sparklines #2273)

To be discussed:

  • Do we set a higher limit, or no limit at all ?
  • If we set a limit: 10? 25? 42?

My personal take is we need a limit, not too high, to avoid flooding the dom, probably 20-30 would be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Designneeds discussionAn idea that needs more discussion to understand the scope and impact.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions