gristlabs_grist-core/app/client/widgets
Dmitry S 2a592d8b4d (core) Automatically finalize action bundles when unrelated actions/bundles come in.
Summary:
Type conversions and formula tranforms wait for the user and bundle multiple
actions. When an unrelated action is done (e.g. adding a page widget or a
column), we want to finalize the transform before applying it.

The approach turns out fairly complicated. There is an implicit queue of
bundles (which we don't let grow beyond 2, as that's too abnormal). Bundles may
be finalized by a user clicking something, or by an unrelated action/bundle, or
(as before) by transform DOM getting disposed.

- Updated RecordLayout to use bundleActions() helper
- Added support for nesting bundleActions inside another bundle (needed for
  setting visibleCol during type change)
- In an unrelated tweak, when in debug-log in ActiveDoc, use a short representation of result.

Test Plan: Added a unittest for action bundling during type transform

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2655
2020-11-10 10:32:07 -05:00
..
AbstractWidget.js (core) move client code to core 2020-10-02 13:24:21 -04:00
BaseEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
CheckBox.css (core) move client code to core 2020-10-02 13:24:21 -04:00
CheckBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
CheckBoxEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DiffBox.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
EditorPlacement.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
ErrorDom.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.ts (core) Automatically finalize action bundles when unrelated actions/bundles come in. 2020-11-10 10:32:07 -05:00
FieldEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FormulaEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
HyperLinkEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
HyperLinkTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
NewAbstractWidget.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
NewBaseEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
NTextBox.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
NTextEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
NumericTextBox.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
PreviewModal.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
PreviewsWidget.css (core) move client code to core 2020-10-02 13:24:21 -04:00
PreviewsWidget.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ReferenceEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Switch.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Switch.js (core) move client code to core 2020-10-02 13:24:21 -04:00
TextBox.css (core) move client code to core 2020-10-02 13:24:21 -04:00
TextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
TextEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
TextEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
UserType.js (core) move client code to core 2020-10-02 13:24:21 -04:00
UserTypeImpl.js (core) move client code to core 2020-10-02 13:24:21 -04:00