Propose a numeric type with unit selection

Hello,

Would it be possible to create a numeric feature that allows choosing the unit?

Like Duration:
![Screenshot_20230608_154832|339x499](upload://1QTBsqz6gtfbLeOf0V

Hi @Hizo :slight_smile: I’d prefer we just add the missing units in Gladys, it really takes 30 seconds to add :slight_smile:

Which units are you missing?

Currently, the areas — cm², m², km² — are missing, in my opinion.

We really have a different view; personally, in my dev work, the less I do, the better I feel :laughing:

Ok no worries, that will be added!

I have a product vision, I try to think about the end user more than the developer :slight_smile:

The advantage of having units fixed in the product is that we control the display in Gladys:

  • Units can be displayed in a short form « 3h » and in a long form « 3 heures » depending on where in the interface
  • Units can be auto-converted so they’re readable (Wh → kWh), or to respect the user’s preferences (°C → °F)
  • Units are translated. If you have a foreign friend at your place, a foreign woman (or if you just want to show your instance on the internet), the units will be displayed in the language selected for the logged-in user’s account. « partie par million » in French becomes « Parts per million » in English.

None of that is possible with units entered manually in Gladys.

I created a small GitHub issue so I wouldn’t forget:

So I’m closing this topic then!

2 Likes