π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
feat(guides): add snapshots table and Snapshot type
Luis Ortizd2542075b3c9
diff --git a/src/core/guides/db.ts b/src/core/guides/db.tsindex e9b2a21..b61402a 100644--- a/src/core/guides/db.ts+++ b/src/core/guides/db.ts@@ -1,10 +1,11 @@import Dexie, { type EntityTable } from 'dexie';-import type { Guide, Screenshot, Step } from './types';+import type { Guide, Screenshot, Snapshot, Step } from './types';export class MimikDB extends Dexie {guides!: EntityTable<Guide, 'id'>;steps!: EntityTable<Step, 'id'>;screenshots!: EntityTable<Screenshot, 'id'>;+ snapshots!: EntityTable<Snapshot, 'id'>;constructor() {super('mimik');@@ -13,6 +14,9 @@ export class MimikDB extends Dexie {steps: 'id, guideId, index',screenshots: 'id, stepId',});+ this.version(2).stores({+ snapshots: 'id, guideId, createdAt',+ });}}diff --git a/src/core/guides/types.ts b/src/core/guides/types.tsindex f2ff325..4c4dfb9 100644--- a/src/core/guides/types.ts+++ b/src/core/guides/types.ts@@ -65,3 +65,14 @@ export interface ElementMeta {devicePixelRatio: number;clickPoint?: { x: number; y: number };}++export interface Snapshot {+ id: string;+ guideId: string;+ createdAt: number;+ contentHash: string;+ title: string;+ stepIds: string[];+ steps: Step[];+ screenshots: Omit<Screenshot, 'blob'>[];+}