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 πŸ“–

chore(voice): log how each step's description gets settled

Luis Ortizdc2e1d7661f6
diff --git a/src/entrypoints/background/describe-unnarrated.ts b/src/entrypoints/background/describe-unnarrated.ts
index b3a0057..b04b62e 100644
--- a/src/entrypoints/background/describe-unnarrated.ts
+++ b/src/entrypoints/background/describe-unnarrated.ts
@@ -1,13 +1,19 @@
import { applyAiDescription, clearStepAiPending } from '@/core/guides/service';
+import { logger } from '@/lib/logger';
import { generateAiDescription } from './ai-description';
import { takeDeferredDescription, takeDeferredDescriptions } from './deferred-descriptions';
import { queueDescription } from './description-queue';
export function describeStepNow(guideId: string, stepId: string): void {
const domContext = takeDeferredDescription(guideId, stepId);
+ logger.info('voice: nothing was said for this step, describing it instead', {
+ stepId,
+ hasDomContext: !!domContext,
+ });
queueDescription(guideId, async () => {
const description = domContext ? await generateAiDescription(domContext) : undefined;
await clearStepAiPending(stepId, description);
+ logger.info('voice: step description settled', { stepId, wroteAi: !!description });
});
}