Fix: issue 4991 Display issue icon and adjust layout
What did this PR achieve:
This PR added the issue count icon in the project cards to use the official GitHub Octicon issue-opened icon (from Octicons) and displayed the total open issue count by fetching the backend data from github repository.
Why it matters: Before PR, it only shows the count of issues with the most popular tag, which thus limits the visibility of the total number of issues - a crucial metric for understanding project activity and engagement. With the new count being added, it offers user a better and more clear understanding of the current open issue count, as well as the engagement rate.
Changes included:
- Added the issue-opened icon and open issue count for each project's description box in scripts.html.
- Added GraphQL support to fetch the total number of open issues for each repository.
- Updated the parse method in GitHubRepositoryLabelActiveCheck to include a new total_issues_count field in the returned data hash.
- Regenerated all YAML files to include the new total-issue-count field in each project’s stats section.
- Slight HTML/CSS adjustments to adjusts the layout and spacing between the fork and issue count, reducing visual crowding.
Final Presentation:
Deploy Preview for up-for-grabs-test-bench ready!
| Name | Link |
|---|---|
| Latest commit | f08b101e18625c3aa899ee8cb27a949d621909f0 |
| Latest deploy log | https://app.netlify.com/sites/up-for-grabs-test-bench/deploys/681514b6eea477000810b31d |
| Deploy Preview | https://deploy-preview-5181--up-for-grabs-test-bench.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.