gristlabs_grist-core/app/client
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
..
aclui (core) add a user.SessionID value for trigger formulas and granular access rules 2022-02-22 12:50:43 -05:00
components (core) Fuller guessing of type and options when adding first data to blank columns 2022-03-01 22:00:45 +02:00
lib Correct spelling mistakes 2022-02-19 09:46:49 +00:00
models Correct spelling mistakes 2022-02-19 09:46:49 +00:00
ui (core) Remove code for unused welcome flows 2022-02-28 13:21:28 -08:00
ui2018 (core) Search backwards with Shift+Enter 2022-02-25 14:07:15 +02:00
widgets (core) Guess date format during type conversion 2022-02-21 22:39:47 +02:00
accountMain.ts (core) Enable MFA configuration (and add SMS) 2022-01-19 13:55:54 -08:00
app.css (core) Make mobile the default mode. 2021-02-25 11:31:43 -05:00
app.js (core) Disable bfcache for all browsers 2021-11-24 09:47:00 -08:00
browserCheck.ts (core) fix browser check and favicon in grist-core 2022-01-05 18:15:05 -05:00
declarations.d.ts (core) Remove some unused code, especially in ViewConfigTab 2022-02-04 12:15:00 +02:00
errorMain.ts (core) Enable MFA configuration (and add SMS) 2022-01-19 13:55:54 -08:00
exposeModulesForTests.js (core) Some cleanup: remove old unused modules. 2020-11-20 11:23:20 -05:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json freshen app/client/ui2018/cssVars.ts 2020-06-23 16:16:38 -04:00