gristlabs_grist-core/app/client/models
Dmitry S 48e90c4998 (core) Change how formula columns can be converted to data.
Summary:
- No longer convert data columns to formula by typing a leading "=". Instead,
  show a tooltip with a link to click if the conversion was intended.
- No longer convert a formula column to data by deleting its formula. Leave the
  column empty instead.
- Offer the option "Convert formula to data" in column menu for formulas.
- Offer the option to "Clear column"
- If a subset of rows is shown, offer "Clear values" and "Clear entire column".

- Add logic to detect when a view shows a subset of all rows.
- Factor out showTooltip() from showTransientTooltip().

- Add a bunch of test cases to cover various combinations (there are small
  variations in options depending on whether all rows are shown, on whether
  multiple columns are selected, and whether columns include data columns).

Test Plan: Added a bunch of test cases.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2746
2021-03-05 12:42:57 -05:00
..
entities (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
AppModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
BaseRowModel.js (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
BillingModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
ClientColumnGetters.ts (core) hide long sequences of unchanged rows in diffs 2020-11-19 18:19:54 -05:00
ColumnACIndexes.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
ColumnFilter.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
ConnectState.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
DataRowModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
DataTableModel.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DataTableModelWithDiff.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
DocData.ts (core) Checks that an ACL formula can be parsed, and prevent saving unparsable ACL rules. 2020-12-15 09:43:37 -05:00
DocModel.ts (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
DocPageModel.ts (core) granular access control in the presence of schema changes 2021-03-01 13:49:31 -05:00
errors.ts (core) granular access control in the presence of schema changes 2021-03-01 13:49:31 -05:00
gristConfigCache.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
gristUrlState.ts (core) Implement much of the general AccessRules UI. 2020-12-07 14:48:41 -05:00
HomeModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
MetaRowModel.js (core) move client code to core 2020-10-02 13:24:21 -04:00
MetaTableModel.js (core) move client code to core 2020-10-02 13:24:21 -04:00
modelUtil.js (core) move client code to core 2020-10-02 13:24:21 -04:00
NotifyModel.ts (core) give more detailed reasons for access denied when memos are present 2021-02-15 17:02:24 -05:00
QuerySet.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
rowset.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
rowuid.js (core) move client code to core 2020-10-02 13:24:21 -04:00
SearchModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
SectionFilter.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
TableData.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
TableModel.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
TreeModel.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
UserManagerModel.ts (core) Add a Users dropdown to AccessRules page. 2021-01-22 09:20:40 -05:00
UserPrefs.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
WorkspaceInfo.ts (core) move client code to core 2020-10-02 13:24:21 -04:00