Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots 📖

feat(guides): report specific causes in the snapshot change summary

Luis Ortiz446e74d96254
diff --git a/src/core/guides/__tests__/snapshot-diff.test.ts b/src/core/guides/__tests__/snapshot-diff.test.ts
index 3f2fdce..847b8ff 100644
--- a/src/core/guides/__tests__/snapshot-diff.test.ts
+++ b/src/core/guides/__tests__/snapshot-diff.test.ts
@@ -1,13 +1,13 @@
import { describe, expect, it } from 'vitest';
-import type { ScreenshotEdits } from '@/core/screenshot/types';
+import type { Annotation, ScreenshotEdits } from '@/core/screenshot/types';
import { diffSnapshots, type SnapshotLike } from '../snapshot-diff';
import type { Snapshot } from '../types';
type StepInput = SnapshotLike['steps'][number];
type ShotInput = SnapshotLike['screenshots'][number];
-function step(id: string, description = `${id} description`, screenshotId?: string): StepInput {
- return screenshotId ? { id, description, screenshotId } : { id, description };
+function step(id: string, description = `${id} description`, screenshotId?: string, url?: string): StepInput {
+ return { id, description, ...(screenshotId ? { screenshotId } : {}), ...(url ? { url } : {}) };
}
function shot(id: string, stepId: string, edits?: ScreenshotEdits): ShotInput & { stepId: string } {
@@ -18,7 +18,25 @@ function like(steps: StepInput[], overrides: Partial<SnapshotLike> = {}): Snapsh
return { title: 'Guide', stepIds: steps.map((s) => s.id), steps, screenshots: [], ...overrides };
}
-const empty = { titleChanged: false, added: 0, removed: 0, reordered: false, edited: 0, images: 0 };
+const box: Annotation = { id: 'a1', type: 'box', x: 0, y: 0, w: 10, h: 10, color: '#000000' };
+const otherBox: Annotation = { id: 'a1', type: 'box', x: 4, y: 4, w: 10, h: 10, color: '#000000' };
+const arrow: Annotation = { id: 'a2', type: 'arrow', x1: 0, y1: 0, x2: 5, y2: 5, color: '#000000' };
+const redact: Annotation = { id: 'r1', type: 'redact', x: 0, y: 0, w: 5, h: 5, style: 'blur' };
+const otherRedact: Annotation = { id: 'r1', type: 'redact', x: 0, y: 0, w: 5, h: 5, style: 'solid' };
+
+const empty = {
+ titleChanged: false,
+ added: 0,
+ removed: 0,
+ reordered: false,
+ edited: 0,
+ urls: 0,
+ replaced: 0,
+ cropped: 0,
+ annotated: 0,
+ blurred: 0,
+ altEdited: false,
+};
describe('diffSnapshots', () => {
it('reports nothing for identical content', () => {
@@ -112,43 +130,180 @@ describe('diffSnapshots', () => {
expect(diffSnapshots(a, b)).toEqual({ ...empty, added: 1 });
});
- it('counts a repointed screenshot as an image change', () => {
+ it('resolves surviving steps by id even when the steps array order differs', () => {
+ const a = like([step('s1', 'One'), step('s2', 'Two')]);
+ const b = { ...like([step('s1', 'One'), step('s2', 'Two')]), steps: [step('s2', 'Two'), step('s1', 'One')] };
+
+ expect(diffSnapshots(a, b)).toEqual(empty);
+ });
+
+ it('counts steps whose url changed as link changes', () => {
+ const a = like([
+ step('s1', 'Same', undefined, 'https://a.test/one'),
+ step('s2', 'Same', undefined, 'https://a.test/two'),
+ ]);
+ const b = like([
+ step('s1', 'Same', undefined, 'https://b.test/one'),
+ step('s2', 'Same', undefined, 'https://a.test/two'),
+ ]);
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, urls: 1 });
+ });
+
+ it('does not count a description change as a link change', () => {
+ const a = like([step('s1', 'Old', undefined, 'https://a.test')]);
+ const b = like([step('s1', 'New', undefined, 'https://a.test')]);
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, edited: 1 });
+ });
+
+ it('does not count a link change as a description change', () => {
+ const a = like([step('s1', 'Same', undefined, 'https://a.test')]);
+ const b = like([step('s1', 'Same', undefined, 'https://b.test')]);
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, urls: 1 });
+ });
+
+ it('counts a repointed screenshot as replaced', () => {
const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1')] });
const b = like([step('s1', 'Same', 'sc2')], { screenshots: [shot('sc1', 's1'), shot('sc2', 's1')] });
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, replaced: 1 });
});
- it('counts a deleted screenshot as an image change', () => {
+ it('counts a deleted screenshot as replaced', () => {
const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1')] });
const b = like([step('s1', 'Same')], { screenshots: [shot('sc1', 's1')] });
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, replaced: 1 });
});
- it('counts a newly attached screenshot as an image change', () => {
+ it('counts a newly attached screenshot as replaced', () => {
const a = like([step('s1', 'Same')], { screenshots: [] });
const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1')] });
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, replaced: 1 });
});
- it('counts changed edits on the same screenshot row as an image change', () => {
- const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { alt: 'before' })] });
- const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { alt: 'after' })] });
+ it('does not count an edits-only change as replaced', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box] })] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [otherBox] })] });
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
});
- it('counts changed annotations as an image change', () => {
- const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [] })] });
+ it('counts a changed viewport as cropped', () => {
+ const a = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { viewport: { x: 0, y: 0, width: 100, height: 50 } })],
+ });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { viewport: { x: 10, y: 0, width: 80, height: 50 } })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, cropped: 1 });
+ });
+
+ it('does not count an annotation change as cropped', () => {
+ const a = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { viewport: { x: 0, y: 0, width: 100, height: 50 }, annotations: [box] })],
+ });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { viewport: { x: 0, y: 0, width: 100, height: 50 }, annotations: [otherBox] })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
+ });
+
+ it('counts changed non-redact annotations as annotated', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box] })] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box, arrow] })] });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
+ });
+
+ it('counts reordered annotations as annotated', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box, arrow] })] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [arrow, box] })] });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
+ });
+
+ it('counts a changed click target as annotated', () => {
+ const a = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [
+ shot('sc1', 's1', { target: { x: 1, y: 2, width: 3, height: 4, border: 'dashed', color: '#4F46E5' } }),
+ ],
+ });
const b = like([step('s1', 'Same', 'sc1')], {
screenshots: [
- shot('sc1', 's1', { annotations: [{ id: 'a1', type: 'redact', x: 0, y: 0, w: 2, h: 2, style: 'blur' }] }),
+ shot('sc1', 's1', { target: { x: 1, y: 2, width: 3, height: 4, border: 'solid', color: '#4F46E5' } }),
],
});
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
+ });
+
+ it('does not count a redact change as annotated', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box, redact] })] });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { annotations: [box, otherRedact] })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, blurred: 1 });
+ });
+
+ it('counts changed redact annotations as blurred', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [] })] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [redact] })] });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, blurred: 1 });
+ });
+
+ it('does not count a non-redact change as blurred', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [redact, box] })] });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { annotations: [redact, otherBox] })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
+ });
+
+ it('reports annotated and blurred separately when both partitions changed', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box, redact] })] });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { annotations: [otherBox, otherRedact] })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1, blurred: 1 });
+ });
+
+ it('ignores where a redact sits in the annotations array relative to other annotations', () => {
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [redact, box] })] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { annotations: [box, redact] })] });
+
+ expect(diffSnapshots(a, b)).toEqual(empty);
+ });
+
+ it('reports a changed alt text as a single boolean, not a count', () => {
+ const a = like([step('s1', 'Same', 'sc1'), step('s2', 'Same', 'sc2')], {
+ screenshots: [shot('sc1', 's1', { alt: 'one' }), shot('sc2', 's2', { alt: 'two' })],
+ });
+ const b = like([step('s1', 'Same', 'sc1'), step('s2', 'Same', 'sc2')], {
+ screenshots: [shot('sc1', 's1', { alt: 'ONE' }), shot('sc2', 's2', { alt: 'TWO' })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, altEdited: true });
+ });
+
+ it('does not report an alt change when only the annotations moved', () => {
+ const a = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { alt: 'same', annotations: [box] })],
+ });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [shot('sc1', 's1', { alt: 'same', annotations: [otherBox] })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, annotated: 1 });
});
it('treats absent edits and empty edits as the same', () => {
@@ -158,6 +313,41 @@ describe('diffSnapshots', () => {
expect(diffSnapshots(a, b)).toEqual(empty);
});
+ it('ignores the key order of the edits object', () => {
+ const before: ScreenshotEdits = {
+ viewport: { x: 0, y: 0, width: 10, height: 10 },
+ alt: 'a',
+ annotations: [box],
+ target: null,
+ };
+ const after: ScreenshotEdits = { ...before, target: null };
+ delete after.viewport;
+ delete after.alt;
+ const rebuilt: ScreenshotEdits = { target: null, annotations: [box] };
+
+ expect(JSON.stringify(after)).not.toBe(JSON.stringify(rebuilt));
+
+ const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', after)] });
+ const b = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', rebuilt)] });
+
+ expect(diffSnapshots(a, b)).toEqual(empty);
+ });
+
+ it('ignores the key order of nested annotation objects', () => {
+ const a = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [
+ shot('sc1', 's1', { annotations: [{ id: 'a1', type: 'box', x: 0, y: 0, w: 1, h: 1, color: '#000' }] }),
+ ],
+ });
+ const b = like([step('s1', 'Same', 'sc1')], {
+ screenshots: [
+ shot('sc1', 's1', { annotations: [{ color: '#000', h: 1, w: 1, y: 0, x: 0, type: 'box', id: 'a1' }] }),
+ ],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual(empty);
+ });
+
it('resolves the screenshot through the step pointer, not by stepId', () => {
const a = like([step('s1', 'Same', 'sc2')], {
screenshots: [shot('sc1', 's1', { alt: 'stale row' }), shot('sc2', 's1', { alt: 'live row' })],
@@ -169,13 +359,24 @@ describe('diffSnapshots', () => {
expect(diffSnapshots(a, b)).toEqual(empty);
});
- it('counts a step once when both its pointer and its edits changed', () => {
+ it('resolves screenshot rows by id even when the screenshots array order differs', () => {
+ const a = like([step('s1', 'Same', 'sc1'), step('s2', 'Same', 'sc2')], {
+ screenshots: [shot('sc1', 's1', { alt: 'one' }), shot('sc2', 's2', { alt: 'two' })],
+ });
+ const b = like([step('s1', 'Same', 'sc1'), step('s2', 'Same', 'sc2')], {
+ screenshots: [shot('sc2', 's2', { alt: 'two' }), shot('sc1', 's1', { alt: 'one' })],
+ });
+
+ expect(diffSnapshots(a, b)).toEqual(empty);
+ });
+
+ it('reports a replacement that also clears the edits on the new row', () => {
const a = like([step('s1', 'Same', 'sc1')], { screenshots: [shot('sc1', 's1', { alt: 'one' })] });
const b = like([step('s1', 'Same', 'sc2')], {
screenshots: [shot('sc1', 's1', { alt: 'one' }), shot('sc2', 's1', { alt: 'two' })],
});
- expect(diffSnapshots(a, b)).toEqual({ ...empty, images: 1 });
+ expect(diffSnapshots(a, b)).toEqual({ ...empty, replaced: 1, altEdited: true });
});
it('ignores screenshots belonging to steps present on only one side', () => {
@@ -186,14 +387,50 @@ describe('diffSnapshots', () => {
});
it('reports every dimension at once', () => {
- const a = like([step('s1', 'One', 'sc1'), step('s2', 'Two'), step('s3', 'Three')], {
- title: 'Before',
- screenshots: [shot('sc1', 's1', { alt: 'a' })],
- });
- const b = like([step('s3', 'Three'), step('s1', 'One edited', 'sc1'), step('s4', 'Four')], {
- title: 'After',
- screenshots: [shot('sc1', 's1', { alt: 'b' })],
- });
+ const a = like(
+ [
+ step('s1', 'Gone'),
+ step('s3', 'Old three'),
+ step('s4', 'Same', undefined, 'https://a.test'),
+ step('s5', 'Same', 'sc5a'),
+ step('s6', 'Same', 'sc6'),
+ step('s7', 'Same', 'sc7'),
+ step('s8', 'Same', 'sc8'),
+ step('s9', 'Same', 'sc9'),
+ ],
+ {
+ title: 'Before',
+ screenshots: [
+ shot('sc5a', 's5'),
+ shot('sc6', 's6', { viewport: { x: 0, y: 0, width: 100, height: 50 } }),
+ shot('sc7', 's7', { annotations: [box] }),
+ shot('sc8', 's8', { annotations: [redact] }),
+ shot('sc9', 's9', { alt: 'before' }),
+ ],
+ },
+ );
+ const b = like(
+ [
+ step('s2', 'New'),
+ step('s4', 'Same', undefined, 'https://b.test'),
+ step('s3', 'New three'),
+ step('s5', 'Same', 'sc5b'),
+ step('s6', 'Same', 'sc6'),
+ step('s7', 'Same', 'sc7'),
+ step('s8', 'Same', 'sc8'),
+ step('s9', 'Same', 'sc9'),
+ ],
+ {
+ title: 'After',
+ screenshots: [
+ shot('sc5b', 's5'),
+ shot('sc6', 's6', { viewport: { x: 5, y: 0, width: 90, height: 50 } }),
+ shot('sc7', 's7', { annotations: [otherBox] }),
+ shot('sc8', 's8', { annotations: [otherRedact] }),
+ shot('sc9', 's9', { alt: 'after' }),
+ ],
+ },
+ );
expect(diffSnapshots(a, b)).toEqual({
titleChanged: true,
@@ -201,7 +438,12 @@ describe('diffSnapshots', () => {
removed: 1,
reordered: true,
edited: 1,
- images: 1,
+ urls: 1,
+ replaced: 1,
+ cropped: 1,
+ annotated: 1,
+ blurred: 1,
+ altEdited: true,
});
});
diff --git a/src/core/guides/snapshot-diff.ts b/src/core/guides/snapshot-diff.ts
index 9abf78f..3bcf1fe 100644
--- a/src/core/guides/snapshot-diff.ts
+++ b/src/core/guides/snapshot-diff.ts
@@ -1,8 +1,9 @@
-import type { ScreenshotEdits } from '@/core/screenshot/types';
+import type { Annotation, ScreenshotEdits } from '@/core/screenshot/types';
interface DiffStep {
id: string;
description: string;
+ url?: string;
screenshotId?: string;
}
@@ -24,13 +25,40 @@ export interface SnapshotDiff {
removed: number;
reordered: boolean;
edited: number;
- images: number;
+ urls: number;
+ replaced: number;
+ cropped: number;
+ annotated: number;
+ blurred: number;
+ altEdited: boolean;
}
-function editsKey(snapshot: SnapshotLike, screenshotId: string | undefined): string {
- if (!screenshotId) return '{}';
- const row = snapshot.screenshots.find((r) => r.id === screenshotId);
- return JSON.stringify(row?.edits ?? {});
+function stableStringify(value: unknown): string {
+ if (value === undefined) return 'undefined';
+ if (value === null || typeof value !== 'object') return JSON.stringify(value);
+ if (Array.isArray(value)) return `[${value.map(stableStringify).join(',')}]`;
+ const record = value as Record<string, unknown>;
+ const keys = Object.keys(record)
+ .filter((key) => record[key] !== undefined)
+ .sort();
+ return `{${keys.map((key) => `${JSON.stringify(key)}:${stableStringify(record[key])}`).join(',')}}`;
+}
+
+function editsFor(snapshot: SnapshotLike, screenshotId: string | undefined): ScreenshotEdits {
+ if (!screenshotId) return {};
+ return snapshot.screenshots.find((row) => row.id === screenshotId)?.edits ?? {};
+}
+
+function redactions(edits: ScreenshotEdits): Annotation[] {
+ return (edits.annotations ?? []).filter((annotation) => annotation.type === 'redact');
+}
+
+function drawings(edits: ScreenshotEdits): Annotation[] {
+ return (edits.annotations ?? []).filter((annotation) => annotation.type !== 'redact');
+}
+
+function differs(before: unknown, after: unknown): boolean {
+ return stableStringify(before) !== stableStringify(after);
}
export function diffSnapshots(from: SnapshotLike, to: SnapshotLike): SnapshotDiff {
@@ -46,14 +74,42 @@ export function diffSnapshots(from: SnapshotLike, to: SnapshotLike): SnapshotDif
const fromSteps = new Map(from.steps.map((s) => [s.id, s]));
let edited = 0;
- let images = 0;
+ let urls = 0;
+ let replaced = 0;
+ let cropped = 0;
+ let annotated = 0;
+ let blurred = 0;
+ let altEdited = false;
+
for (const step of to.steps) {
const before = fromSteps.get(step.id);
if (!before) continue;
+
if (before.description !== step.description) edited++;
- if (before.screenshotId !== step.screenshotId) images++;
- else if (editsKey(from, before.screenshotId) !== editsKey(to, step.screenshotId)) images++;
+ if (before.url !== step.url) urls++;
+ if (before.screenshotId !== step.screenshotId) replaced++;
+
+ const beforeEdits = editsFor(from, before.screenshotId);
+ const afterEdits = editsFor(to, step.screenshotId);
+
+ if (differs(beforeEdits.viewport, afterEdits.viewport)) cropped++;
+ if (differs(drawings(beforeEdits), drawings(afterEdits)) || differs(beforeEdits.target, afterEdits.target))
+ annotated++;
+ if (differs(redactions(beforeEdits), redactions(afterEdits))) blurred++;
+ if (differs(beforeEdits.alt, afterEdits.alt)) altEdited = true;
}
- return { titleChanged: from.title !== to.title, added, removed, reordered, edited, images };
+ return {
+ titleChanged: from.title !== to.title,
+ added,
+ removed,
+ reordered,
+ edited,
+ urls,
+ replaced,
+ cropped,
+ annotated,
+ blurred,
+ altEdited,
+ };
}
diff --git a/src/locales/de.yml b/src/locales/de.yml
index 65bf916..13b1d99 100644
--- a/src/locales/de.yml
+++ b/src/locales/de.yml
@@ -187,8 +187,17 @@ history:
changeStepEdited: "$1 Schritt bearbeitet"
changeStepsEdited: "$1 Schritte bearbeitet"
changeStepReordered: Schritte neu sortiert
- changeImage: "$1 Bild geändert"
- changeImages: "$1 Bilder geändert"
+ changeLink: "$1 Link geändert"
+ changeLinks: "$1 Links geändert"
+ changeImageReplaced: "$1 Bild ersetzt"
+ changeImagesReplaced: "$1 Bilder ersetzt"
+ changeImageCropped: "$1 Bild zugeschnitten"
+ changeImagesCropped: "$1 Bilder zugeschnitten"
+ changeImageAnnotated: "$1 Bild kommentiert"
+ changeImagesAnnotated: "$1 Bilder kommentiert"
+ changeImageBlurred: "$1 Bild unkenntlich gemacht"
+ changeImagesBlurred: "$1 Bilder unkenntlich gemacht"
+ changeAltText: Alternativtext bearbeitet
emptyGuide:
title: Diese Anleitung ist leer
diff --git a/src/locales/en.yml b/src/locales/en.yml
index 9d62265..a81ac55 100644
--- a/src/locales/en.yml
+++ b/src/locales/en.yml
@@ -187,8 +187,17 @@ history:
changeStepEdited: "$1 step edited"
changeStepsEdited: "$1 steps edited"
changeStepReordered: Steps reordered
- changeImage: "$1 image changed"
- changeImages: "$1 images changed"
+ changeLink: "$1 link changed"
+ changeLinks: "$1 links changed"
+ changeImageReplaced: "$1 image replaced"
+ changeImagesReplaced: "$1 images replaced"
+ changeImageCropped: "$1 image cropped"
+ changeImagesCropped: "$1 images cropped"
+ changeImageAnnotated: "$1 image annotated"
+ changeImagesAnnotated: "$1 images annotated"
+ changeImageBlurred: "$1 image blurred"
+ changeImagesBlurred: "$1 images blurred"
+ changeAltText: Alt text edited
emptyGuide:
title: This guide is empty
diff --git a/src/locales/es.yml b/src/locales/es.yml
index 5df47d9..0b81b19 100644
--- a/src/locales/es.yml
+++ b/src/locales/es.yml
@@ -187,8 +187,17 @@ history:
changeStepEdited: "$1 paso editado"
changeStepsEdited: "$1 pasos editados"
changeStepReordered: Pasos reordenados
- changeImage: "$1 imagen cambiada"
- changeImages: "$1 imágenes cambiadas"
+ changeLink: "$1 enlace cambiado"
+ changeLinks: "$1 enlaces cambiados"
+ changeImageReplaced: "$1 imagen reemplazada"
+ changeImagesReplaced: "$1 imágenes reemplazadas"
+ changeImageCropped: "$1 imagen recortada"
+ changeImagesCropped: "$1 imágenes recortadas"
+ changeImageAnnotated: "$1 imagen anotada"
+ changeImagesAnnotated: "$1 imágenes anotadas"
+ changeImageBlurred: "$1 imagen desenfocada"
+ changeImagesBlurred: "$1 imágenes desenfocadas"
+ changeAltText: Texto alternativo editado
emptyGuide:
title: Esta guía está vacía
diff --git a/src/locales/fr.yml b/src/locales/fr.yml
index fbb6559..5b0fb34 100644
--- a/src/locales/fr.yml
+++ b/src/locales/fr.yml
@@ -187,8 +187,17 @@ history:
changeStepEdited: "$1 étape modifiée"
changeStepsEdited: "$1 étapes modifiées"
changeStepReordered: Étapes réordonnées
- changeImage: "$1 image modifiée"
- changeImages: "$1 images modifiées"
+ changeLink: "$1 lien modifié"
+ changeLinks: "$1 liens modifiés"
+ changeImageReplaced: "$1 image remplacée"
+ changeImagesReplaced: "$1 images remplacées"
+ changeImageCropped: "$1 image recadrée"
+ changeImagesCropped: "$1 images recadrées"
+ changeImageAnnotated: "$1 image annotée"
+ changeImagesAnnotated: "$1 images annotées"
+ changeImageBlurred: "$1 image floutée"
+ changeImagesBlurred: "$1 images floutées"
+ changeAltText: Texte alternatif modifié
emptyGuide:
title: Ce guide est vide
diff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.yml
index 0b35afe..74aa7ce 100644
--- a/src/locales/pt-BR.yml
+++ b/src/locales/pt-BR.yml
@@ -187,8 +187,17 @@ history:
changeStepEdited: "$1 passo editado"
changeStepsEdited: "$1 passos editados"
changeStepReordered: Passos reordenados
- changeImage: "$1 imagem alterada"
- changeImages: "$1 imagens alteradas"
+ changeLink: "$1 link alterado"
+ changeLinks: "$1 links alterados"
+ changeImageReplaced: "$1 imagem substituída"
+ changeImagesReplaced: "$1 imagens substituídas"
+ changeImageCropped: "$1 imagem recortada"
+ changeImagesCropped: "$1 imagens recortadas"
+ changeImageAnnotated: "$1 imagem anotada"
+ changeImagesAnnotated: "$1 imagens anotadas"
+ changeImageBlurred: "$1 imagem desfocada"
+ changeImagesBlurred: "$1 imagens desfocadas"
+ changeAltText: Texto alternativo editado
emptyGuide:
title: Esse guia tá vazio