minion
minion copied to clipboard
Support very large processed jobs numbers
We need to shorten the number at some point, or it will overflow in the admin ui.
Perhaps something like 123456K and 123456M would be enough for now.
IMO, tooltip from bootstrap can be use.
10266 can become 10k and 10266 will be displayed by tooltip.
Using a tooltip to show the full number seems like a good idea, lets do that.
I went with a very pragmatic solution for now.

Actually, i had to revert that, since Bootstrap tooltips are not easily updated.
How about using a library like Humanize?
Humanize.compactInteger(123456789, 1)
// "123.5M"
It hasn't been updated in a while, but seems to do what it says on the tin.
Here's an option: https://css-tricks.com/fitting-text-to-a-container/