mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
1e42871cc9
Summary: Adds attachment and data size to the usage section of the raw data page. Also makes in-document usage banners update as user actions are applied, causing them to be hidden/shown or updated based on the current state of the document. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3395
29 lines
957 B
TypeScript
29 lines
957 B
TypeScript
import {ActionSummary} from 'app/common/ActionSummary';
|
|
|
|
/**
|
|
* This is the action representation the client works with, for the purposes of undos/redos.
|
|
*/
|
|
export interface MinimalActionGroup {
|
|
actionNum: number;
|
|
actionHash: string;
|
|
fromSelf: boolean;
|
|
linkId: number;
|
|
otherId: number;
|
|
rowIdHint: number; // If non-zero, this is a rowId that would be a good place to put
|
|
// the cursor after an undo.
|
|
isUndo: boolean; // True if the first user action is ApplyUndoActions.
|
|
}
|
|
|
|
/**
|
|
* This is the action representation the client works with, for the purposes of document
|
|
* history and undos/redos.
|
|
*/
|
|
export interface ActionGroup extends MinimalActionGroup {
|
|
desc?: string;
|
|
actionSummary: ActionSummary;
|
|
time: number;
|
|
user: string;
|
|
primaryAction: string; // The name of the first user action in the ActionGroup.
|
|
internal: boolean; // True if it is inappropriate to log/undo the action.
|
|
}
|