mojolicious/minion

Support very large processed jobs numbers

Opened this issue · 6 comments

kraih commented

We need to shorten the number at some point, or it will overflow in the admin ui.

screen shot 2018-05-28 at 16 24 36

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.

kraih commented

Using a tooltip to show the full number seems like a good idea, lets do that.

kraih commented

I went with a very pragmatic solution for now.
screenshot 2019-02-04 at 00 06 38

kraih commented

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.