Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short navigation jobs count #176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thibaudgg
Copy link

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:
Screenshot 2024-10-14 at 17 34 58

After:
Screenshot 2024-10-14 at 17 35 17

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
@thibaudgg
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant