h2oai / h2oai/wave

Allow scientific notation in spinbox

Open
#2,239 0 comments 1 reaction 0 assignees View on GitHub
feature ui
Dominant language
Python
Stars
4.3k
Forks
371
Avg merge
26d 1h
Merged PRs (30d)
1

Description

#### Is your feature request related to a problem? Please describe

With very large or very small numbers, the values in the spinbox get harder to read:
![image](https://github.com/h2oai/wave/assets/1069138/3464852f-f84a-459d-bc53-34202a1cdbea)

#### Describe the solution you'd like

I believe, allowing input in scientific notation (E-notation, e.g. `1.2E-7`) and automatically converting large or small values to that will improve readability.

#### Describe alternatives you've considered

Custom textboxes, but they are not as handy as spinboxes for numbers.

#### Additional context

related: https://github.com/h2oai/wave/issues/1525

Contributor guide

Open the contributing guide

Research direction

Start by locating the spinbox implementation and its existing input and display behavior; the issue does not name a file or test. Review related issue #1525, then define how scientific notation should be accepted and when large or small values should be reformatted before determining the necessary coverage.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.