diff --git a/docs/METRICS.md b/docs/METRICS.md index 641a40f89a..10629d070c 100644 --- a/docs/METRICS.md +++ b/docs/METRICS.md @@ -397,6 +397,11 @@ The hashed page ID (`{hash}`) is a simple SHA1(path), with no additional randomn 9. [x] Select a color from the color board: `web/{color}-select/annotation-color-board` 7. [x] Use pen tool: `web/draw/pen` 8. [x] Use highlight tool: `web/draw/highlight` +1. [x] Undo edit: `web/undo/annotation-toolbar` +1. [x] Redo edit: `web/redo/annotation-toolbar` +1. [x] Select text tool from annotation toolbar: `web/text-select/annotation-toolbar` +1. [x] Confirm text edit: `web/confirm-text/text-toolbar` +1. [x] Cancel text edit: `web/cancel-text/text-toolbar` #### General Google Analytics information diff --git a/server/src/pages/shot/editor.js b/server/src/pages/shot/editor.js index b3bd9a33aa..ff0893acf8 100644 --- a/server/src/pages/shot/editor.js +++ b/server/src/pages/shot/editor.js @@ -308,6 +308,7 @@ exports.Editor = class Editor extends React.Component { e.target.blur(); this.applyHistory(this.history.undo(this.imageCanvas)); this.deriveButtonStates(); + sendEvent("undo", "annotation-toolbar"); } onRedo(e) { @@ -317,6 +318,7 @@ exports.Editor = class Editor extends React.Component { e.target.blur(); this.applyHistory(this.history.redo(this.imageCanvas)); this.deriveButtonStates(); + sendEvent("redo", "annotation-toolbar"); } applyHistory(record) {