π¬ 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
chore(guides): declare the transcript table and the spoken original
davbio1ffe7f8d643c
diff --git a/src/core/guides/db.ts b/src/core/guides/db.tsindex 3236b9a..4ca63db 100644--- a/src/core/guides/db.ts+++ b/src/core/guides/db.ts@@ -1,5 +1,5 @@import Dexie, { type EntityTable } from 'dexie';-import type { Guide, Screenshot, Snapshot, Step, VoiceClip } from './types';+import type { Guide, GuideTranscript, Screenshot, Snapshot, Step, VoiceClip } from './types';export class MimikDB extends Dexie {guides!: EntityTable<Guide, 'id'>;@@ -7,6 +7,7 @@ export class MimikDB extends Dexie {screenshots!: EntityTable<Screenshot, 'id'>;snapshots!: EntityTable<Snapshot, 'id'>;voiceClips!: EntityTable<VoiceClip, 'id'>;+ transcripts!: EntityTable<GuideTranscript, 'id'>;constructor() {super('mimik');@@ -21,6 +22,9 @@ export class MimikDB extends Dexie {this.version(3).stores({voiceClips: 'id, createdAt',});+ this.version(4).stores({+ transcripts: 'id, guideId, [guideId+epochMs]',+ });}}diff --git a/src/core/guides/types.ts b/src/core/guides/types.tsindex 2eee352..a9ceffc 100644--- a/src/core/guides/types.ts+++ b/src/core/guides/types.ts@@ -1,6 +1,7 @@import type { AIApiKeys } from '@/core/capture/ai/keys';import type { AIProviderKey } from '@/core/capture/ai/models';import type { VoiceProvider } from '@/core/capture/voice/transcribe';+import type { TranscriptLine } from '@/core/capture/voice/types';import type { BrandLogo } from '@/core/export/branding';import type { ExportOptions } from '@/core/export/options';import type { VoiceoverApiKeys } from '@/core/export/voiceover/config';@@ -38,6 +39,7 @@ export interface Step {elementMeta?: ElementMeta;inputValue?: string;descriptionSource?: DescriptionSource;+ narratedDescription?: string;aiPending?: boolean;blockType?: BlockType;calloutVariant?: CalloutVariant;@@ -112,6 +114,14 @@ export interface ElementMeta {clickPoint?: { x: number; y: number };}+export interface GuideTranscript {+ id: string;+ guideId: string;+ epochMs: number;+ createdAt: number;+ lines: TranscriptLine[];+}+export interface VoiceClip {id: string;bytes: ArrayBuffer;