Closed thibaudgg closed 3 weeks ago
This patch defines the number_to_human format and units option to make the navigation section titles more compact and readable.
number_to_human
As an example, instead of "Finished Jobs (4.4 Thousand)" it will now display "Finished Jobs (4.4K)".
https://api.rubyonrails.org/classes/ActiveSupport/NumberHelper.html#method-i-number_to_human
Before:
After:
Please let me know if you'd like me to add some tests around this patch. I took a quick look, but wasn't sure where it would be appropriate to add them or if it's worth it.
This patch defines the
number_to_human
format and units option to make the navigation section titles more compact and readable.As an example, instead of "Finished Jobs (4.4 Thousand)" it will now display "Finished Jobs (4.4K)".
https://api.rubyonrails.org/classes/ActiveSupport/NumberHelper.html#method-i-number_to_human
Before:
After: