Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(export): include meeting participants (#1274)

Henry Suc991ee7d5467
diff --git a/src/helpers/transcriptFormatter.js b/src/helpers/transcriptFormatter.js
index 2066f182c..c4ecf2a17 100644
--- a/src/helpers/transcriptFormatter.js
+++ b/src/helpers/transcriptFormatter.js
@@ -59,7 +59,7 @@ function extractMetadata(note) {
let participants = [];
try {
const parsed = JSON.parse(note.participants || "[]");
- participants = parsed.map((p) => p.name).filter(Boolean);
+ participants = parsed.map((p) => p.displayName || p.email).filter(Boolean);
} catch {}
return { title, dateStr, participants };
@@ -70,7 +70,8 @@ function formatTxt(note, segments, speakerMappings) {
const { title, dateStr, participants } = extractMetadata(note);
const lines = [title, dateStr];
- if (participants.length) lines.push(`Participants: ${participants.join(", ")}`);
+ if (participants.length)
+ lines.push(`${i18nMain.t("notes.editor.participants")}: ${participants.join(", ")}`);
lines.push("", "──────────────────────────────────", "");
for (const seg of merged) {
lines.push(`[${formatTimestamp(seg.timestamp)}] ${resolveSpeaker(seg, speakerMappings)}:`);
@@ -128,7 +129,8 @@ function formatMd(note, segments, speakerMappings) {
const { title, dateStr, participants } = extractMetadata(note);
const lines = [`# ${title}`, "", `**Date:** ${dateStr}`];
- if (participants.length) lines.push(`**Participants:** ${participants.join(", ")}`);
+ if (participants.length)
+ lines.push(`**${i18nMain.t("notes.editor.participants")}:** ${participants.join(", ")}`);
lines.push("", "---", "");
for (const seg of merged) {
lines.push(`**${resolveSpeaker(seg, speakerMappings)}** \`${formatTimestamp(seg.timestamp)}\``);
diff --git a/test/helpers/transcriptFormatter.test.js b/test/helpers/transcriptFormatter.test.js
index ae53eedf3..50b66eb92 100644
--- a/test/helpers/transcriptFormatter.test.js
+++ b/test/helpers/transcriptFormatter.test.js
@@ -1,7 +1,39 @@
const test = require("node:test");
const assert = require("node:assert/strict");
-const { formatSrt, formatJson } = require("../../src/helpers/transcriptFormatter");
+const {
+ formatTxt,
+ formatSrt,
+ formatJson,
+ formatMd,
+} = require("../../src/helpers/transcriptFormatter");
+
+test("TXT and Markdown exports include participant display names", () => {
+ const note = {
+ title: "Planning",
+ created_at: "2026-01-01T00:00:00Z",
+ participants: JSON.stringify([
+ { displayName: "Ada Lovelace", email: "[email protected]" },
+ { displayName: "Grace Hopper", email: "[email protected]" },
+ ]),
+ };
+
+ assert.match(formatTxt(note, [], {}), /Participants: Ada Lovelace, Grace Hopper/);
+ assert.match(formatMd(note, [], {}), /\*\*Participants:\*\* Ada Lovelace, Grace Hopper/);
+});
+
+test("participants without a display name fall back to their email", () => {
+ const note = {
+ title: "Planning",
+ created_at: "2026-01-01T00:00:00Z",
+ participants: JSON.stringify([
+ { displayName: null, email: "[email protected]" },
+ { displayName: "Ada Lovelace", email: "[email protected]" },
+ ]),
+ };
+
+ assert.match(formatTxt(note, [], {}), /Participants: [email protected], Ada Lovelace/);
+});
test("merged same-speaker SRT cues keep the first segment's start time", () => {
const output = formatSrt(