Skip to content

Commit

Permalink
Update the alt text of the migration bar to include the percentage an…
Browse files Browse the repository at this point in the history
…d the number of PRs inside this category over the total number.
  • Loading branch information
HaudinFlorence committed Jul 24, 2024
1 parent 0b38949 commit 52fa80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/status/migration/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function Bar({ details }) {
className={styles[`${prefix}${key.replace("-", "_")}`]}
style={{ flex: details[key].length }}
key={index}
alt={TITLES[key]}
alt={TITLES[key] + " " + parseFloat(details[key].length*100/measureProgress(details).total).toFixed(1) + "% (" + details[key].length+" PRs over "+measureProgress(details).total + ")"}
></a>
<Tooltip
anchorSelect={`#migration-bar-element-${key}`}
Expand Down

0 comments on commit 52fa80c

Please sign in to comment.