UI: display a badge when the npm package is deprecated

Description

When the npm package is deprecated it'd be great to reflect that on the UI. Maybe display a new badge.

Proposal

backend

  • Add new value deprecated to the status enum.
  • Make sure we set the status to deprecated when the package is deprecated and update it back when the package is undeprecated.
  • Create the background migration to update the status to deprecated for existing deprecated packages.

frontend

  • Uses the status deprecated to display the badge near the package's title on the list and details page.
  • Add another option in the status filter dropdown called deprecated to filter by deprecated packages.
Edited by Rahul Chanila