gristlabs_grist-core/app
Alex Hall 5213972d24 (core) Guess numeric formatting options
Summary:
Change NumberParse.parse to return not just the parsed number but also information it gathered along the way about how the input string was formatted.

Use this in the new NumberParse.guessOptions to guess the actual widget options based on an array of strings.

Use NumberParse.guessOptions in TypeConversion (for when a user explicitly chooses to change type) and in ValueGuesser (for guesses about strings entered into empty columns).

Test Plan: Adds unit tests for NumberParse and ValueGuesser and updates the TypeChange2 nbrowser test.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3294
2022-03-03 21:32:03 +02:00
..
client (core) Guess numeric formatting options 2022-03-03 21:32:03 +02:00
common (core) Guess numeric formatting options 2022-03-03 21:32:03 +02:00
gen-server (core) Remove code for unused welcome flows 2022-02-28 13:21:28 -08:00
plugin Correct spelling mistakes 2022-02-19 09:46:49 +00:00
server (core) Fuller guessing of type and options when adding first data to blank columns 2022-03-01 22:00:45 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00