SAP / project-portal-for-innersource

Lists all InnerSource projects of a company in an interactive and easy to use way. Can be used as a template for implementing the "InnerSource portal" pattern by the InnerSource Commons community.
https://sap.github.io/project-portal-for-innersource/
Apache License 2.0
143 stars 71 forks source link

Add placeholder in case of missing Activity Score #9

Closed spier closed 3 years ago

spier commented 3 years ago

This is one possible fix for #6 .

The two solutions I could think of were a) calculate a score dynamically if the repo itself does not contain one. basically a fallback option e.g. iScore = stars + watchers + forks b) show N/A instead of false/undefined

In this PR I opted for solution (b).

Result

repo without score

repo-without-score

repo with score

repo-with-score