Files
gristlabs_grist-core/app/client/components
Alex Hall 599545fb11 (core) Fuller guessing of type and options when adding first data to blank columns
Summary:
Adds `common/ValueGuesser.ts` with logic for guessing column type and widget options (only for dates/datetimes) from an array of strings, and converting the strings to the guessed type in a lossless manner, so that converting back to Text gives the original values.

Changes `_ensure_column_accepts_data` in Python to call an exported JS method using the new logic where possible.

Test Plan: Added `test/common/ValueGuesser.ts` to unit test the core guessing logic and a DocApi end-to-end test for what happens to new columns.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3290
2022-03-01 22:00:45 +02:00
..
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2022-02-21 13:44:13 -05:00
2021-05-25 21:14:49 +02:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2022-02-19 09:46:49 +00:00
2021-07-01 18:38:21 +02:00
2022-01-13 11:10:17 +01:00
2020-10-02 13:24:21 -04:00
2022-02-10 12:46:19 +02:00
2021-10-08 14:15:07 -07:00
2022-02-19 09:46:49 +00:00
2020-10-02 13:24:21 -04:00
2022-02-28 22:52:37 +01:00
2020-10-02 13:24:21 -04:00
2022-02-19 09:46:49 +00:00
2020-10-02 13:24:21 -04:00
2022-02-19 09:46:49 +00:00
2020-10-02 13:24:21 -04:00
2022-02-10 12:46:19 +02:00
2020-10-02 13:24:21 -04:00