mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
02e69fb685
Summary: Add rowCount returned from sandbox when applying user actions to ActionGroup which is broadcast to clients. Add rowCount to ActiveDoc and update it after applying user actions. Add rowCount to OpenLocalDocResult using ActiveDoc value, to show when a client opens a doc before any user actions happen. Add rowCount observable to DocPageModel which is set when the doc is opened and when action groups are received. Add crude UI (commented out) in Tool.ts showing the row count and the limit in AppModel.currentFeatures. The actual UI doesn't have a place to go yet. Followup tasks: - Real, pretty UI - Counts per table - Keep count(s) secret from users with limited access? - Data size indicator? - Banner when close to or above limit - Measure row counts outside of sandbox to avoid spoofing with formula - Handle changes to the limit when the plan is changed or extra rows are purchased Test Plan: Tested UI manually, including with free team site, opening a fresh doc, opening an initialised doc, adding rows, undoing, and changes from another tab. Automated tests seem like they should wait for a proper UI. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3318 |
||
---|---|---|
.. | ||
entities | ||
AppModel.ts | ||
BaseRowModel.js | ||
BillingModel.ts | ||
ClientColumnGetters.ts | ||
ColumnACIndexes.ts | ||
ColumnCache.ts | ||
ColumnFilter.ts | ||
ColumnFilterMenuModel.ts | ||
ColumnToMap.ts | ||
ConnectState.ts | ||
DataRowModel.ts | ||
DataTableModel.js | ||
DataTableModelWithDiff.ts | ||
DocData.ts | ||
DocModel.ts | ||
DocPageModel.ts | ||
errors.ts | ||
gristConfigCache.ts | ||
gristUrlState.ts | ||
HomeModel.ts | ||
MetaRowModel.js | ||
MetaTableModel.js | ||
modelUtil.js | ||
NotifyModel.ts | ||
QuerySet.ts | ||
rowset.ts | ||
rowuid.js | ||
SearchModel.ts | ||
SectionFilter.ts | ||
TableData.ts | ||
TableModel.js | ||
TreeModel.ts | ||
UserManagerModel.ts | ||
UserPrefs.ts | ||
WorkspaceInfo.ts |