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
- Add new value
deprecatedto the status enum. - Make sure we set the status to
deprecatedwhen the package is deprecated and update it back when the package is undeprecated. - Create the background migration to update the status to
deprecatedfor existing deprecated packages.
- Uses the status
deprecatedto display the badge near the package's title on the list and details page. - Add another option in the status filter dropdown called
deprecatedto filter by deprecated packages.
Edited by Rahul Chanila