gristlabs_grist-core/app
Alex Hall 0d460ac2d4 (core) Parsing pasted ChoiceLists
Summary:
Added ChoiceListParser capable of parsing JSON, CSVs, and other strings containing user-configured choices (e.g. separated by spaces)

I got a little carried away here. It works, and I can't think of any bugs, but it's complicated enough that there could be hidden edge cases or difficulties maintaining it in the future. The advantage of the current method is that it should work well for ambiguous or poorly formatted inputs, e.g. choices separated only by spaces or choices containing commas which are not escaped/quoted properly. The code can be vastly simplified if we don't try to support that and require that users paste proper JSON or CSVs.

Test Plan: Added a new file test/common/ChoiceListParser.ts with pure unit tests. Waiting for approval of the overall approach before adding to the nbrowser CopyPaste test.

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D3141
2021-11-20 19:00:36 +02:00
..
client (core) Parsing pasted ChoiceLists 2021-11-20 19:00:36 +02:00
common (core) Parsing pasted ChoiceLists 2021-11-20 19:00:36 +02:00
gen-server (core) make document assignment endpoint available via /housekeeping api 2021-11-04 16:14:21 -04:00
plugin (core) Parsing multiple values in reflists, parsing refs without table data in client 2021-11-09 14:41:04 +02:00
server (core) Fix bug preventing importing of nested json files 2021-11-18 17:06:03 -08:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00