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
..
AceEditor.css
AceEditor.js (core) Fixing scrollbars on ace editor for windows users. 2021-10-25 10:56:43 +02:00
AceEditorCompletions.ts
ActionLog.css
ActionLog.ts
Base.js
BaseView.js (core) updates from grist-core 2022-02-21 13:44:13 -05:00
CellPosition.ts
ChartView.css
ChartView.ts (core) Fix out of sync GROUP DATA and X Axis options when table change 2022-02-25 14:48:27 +01:00
ClientScope.ts
Clipboard.css
Clipboard.js (core) Trim trailing whitespace when pasting plain text 2021-11-04 01:26:47 +02:00
CodeEditorPanel.css
CodeEditorPanel.js
ColumnFilters.css
ColumnTransform.ts Correct spelling mistakes 2022-02-19 09:46:49 +00:00
Comm.ts
commandList.js (core) Widget options api 2022-01-13 11:10:17 +01:00
commands.css
commands.js
CopySelection.ts (core) Reference and ReferenceList formatters 2022-01-13 18:09:33 +02:00
Cursor.ts (core) Support 'new' row in anchor links. 2021-09-24 09:01:10 -04:00
CursorMonitor.ts (core) Exposing custom widgets on the UI 2021-12-01 18:21:06 +01:00
CustomView.css
CustomView.ts (core) Show default context menu on link 2022-02-18 10:09:36 +01:00
DataTables.ts (core) Initial data tables page 2022-02-10 12:46:19 +02:00
DetailView.css (core) Remove code related to newui 2022-02-04 20:29:00 +02:00
DetailView.js (core) Remove code related to newui 2022-02-04 20:29:00 +02:00
DocComm.ts (core) Add diff preview to Importer 2021-10-08 14:15:07 -07:00
DocConfigTab.js
Drafts.ts Correct spelling mistakes 2022-02-19 09:46:49 +00:00
duplicatePage.ts (core) Duplicate page should copy filters. 2022-01-04 14:49:33 +01:00
EditorMonitor.ts (core) Storing last position for doc and user 2021-11-19 12:01:49 +01:00
EmbedForm.css
FieldConfigTab.css
FormulaTransform.ts
GridView.css (core) Remove code related to newui 2022-02-04 20:29:00 +02:00
GridView.js (core) Frozen columns reordering 2022-02-28 22:52:37 +01:00
GristDoc.css
GristDoc.ts (core) Fix non-existent page ID showing all raw data widgets 2022-02-10 20:01:57 +02:00
GristWSConnection.ts
Importer.ts Correct spelling mistakes 2022-02-19 09:46:49 +00:00
Layout.css
Layout.js (core) Fixing bug with undoing page delation with a custom layout 2021-12-20 19:32:14 +01:00
LayoutEditor.css
LayoutEditor.js
LayoutPreview.css
LayoutPreview.js
LinkingState.ts (core) Adds setSelectedRows to the grist api for custom view 2022-02-15 15:24:15 +01:00
Login.css
ParseOptions.ts
PluginScreen.ts (core) Add column matching to Importer 2021-11-09 12:30:52 -08:00
Preferences.css
Printing.css
Printing.ts
RecordLayout.css
RecordLayout.js Correct spelling mistakes 2022-02-19 09:46:49 +00:00
RecordLayoutEditor.js
RefSelect.js
SearchBar.css
Selector.js
TypeConversion.ts (core) Fuller guessing of type and options when adding first data to blank columns 2022-03-01 22:00:45 +02:00
TypeTransform.ts (core) Guess date format during type conversion 2022-02-21 22:39:47 +02:00
UndoStack.ts (core) Change UndoStack._linkMap to store an array of action groups for each linkId 2022-01-20 19:00:01 +02:00
UnsavedChanges.ts
ValidationPanel.css
ValidationPanel.js
viewCommon.css (core) Set min-height for cells, including in Card view, to make them look consistent. 2021-11-19 17:23:03 -05:00
viewCommon.js (core) Skip saving column resizes in read-only mode 2021-12-07 14:37:25 -08:00
ViewConfigTab.css
ViewConfigTab.js (core) Initial data tables page 2022-02-10 12:46:19 +02:00
ViewLayout.css (core) Show sigma next to summary table titles 2021-07-12 20:10:15 -07:00
ViewLayout.ts (core) Initial data tables page 2022-02-10 12:46:19 +02:00
ViewLinker.css
ViewPane.ts
WidgetFrame.ts (core) Adds setSelectedRows to the grist api for custom view 2022-02-15 15:24:15 +01:00