Skip to content

Commit

Permalink
[Editor] Add a missing parameter in the telemetry for the new alt tex…
Browse files Browse the repository at this point in the history
…t flow (bug 1914480)
  • Loading branch information
calixteman committed Aug 25, 2024
1 parent 584fef5 commit e8763a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/display/editor/stamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class StampEditor extends AnnotationEditor {
) {
this._reportTelemetry({
action: "pdfjs.image.image_added",
data: { alt_text_modal: false },
data: { alt_text_modal: false, alt_text_type: "empty" },
});
try {
// The alt-text dialog isn't opened but we still want to guess the alt
Expand Down
7 changes: 5 additions & 2 deletions web/new_alt_text_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class NewAltTextManager {
});
this.#currentEditor._reportTelemetry({
action: "pdfjs.image.image_added",
data: { alt_text_modal: false },
data: { alt_text_modal: true, alt_text_type: "skipped" },
});
this.#finish();
}
Expand Down Expand Up @@ -464,7 +464,10 @@ class NewAltTextManager {
}
this.#currentEditor._reportTelemetry({
action: "pdfjs.image.image_added",
data: { alt_text_modal: true },
data: {
alt_text_modal: true,
alt_text_type: altText ? "present" : "empty",
},
});

this.#currentEditor._reportTelemetry({
Expand Down

0 comments on commit e8763a0

Please sign in to comment.