Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Add meetings: Yogurt's own checkboxes, the folder in the title, and a neutral disabled button

Eric Brownrout66ac9056766e
diff --git a/app/e2e/folders.spec.ts b/app/e2e/folders.spec.ts
index 91fbded8..dedd490d 100644
--- a/app/e2e/folders.spec.ts
+++ b/app/e2e/folders.spec.ts
@@ -132,15 +132,26 @@ for (const theme of ['light', 'dark'] as const) test(`add existing meetings from
await newFolder(page, 'Reviews')
const header = page.locator('.folder-page-heading').getByRole('button', { name: 'Add meetings' })
const empty = page.getByTestId('folder-empty').getByRole('button', { name: 'Add meetings' })
- const dialog = page.getByRole('dialog', { name: 'Add meetings' })
+ const dialog = page.getByRole('dialog', { name: 'Add meetings to Reviews', exact: true })
const search = dialog.getByRole('textbox', { name: 'Search' })
const mod = process.platform === 'darwin' ? 'Meta' : 'Control'
await empty.press('Enter')
+ const inactive = dialog.getByRole('button', { name: 'Add meetings', exact: true })
+ await expect(inactive).toBeDisabled()
+ await expect(inactive).toHaveCSS('background-color', theme === 'dark' ? 'rgb(51, 51, 53)' : 'rgb(236, 236, 238)')
await expect(search).toBeFocused()
await search.press(mod + '+j')
await search.press(mod + '+n')
await expect(search).toBeFocused()
- await expect(dialog.getByText(longTitle, { exact: true })).toBeVisible()
+ const title = dialog.getByText(longTitle, { exact: true })
+ await expect(title).toBeVisible()
+ const titleRow = dialog.locator('label').filter({ hasText: longTitle })
+ await title.hover()
+ await expect(titleRow).toHaveCSS('background-color', theme === 'dark' ? 'rgb(59, 59, 62)' : 'rgb(228, 228, 231)')
+ await title.click()
+ await expect(titleRow.getByRole('checkbox')).toBeChecked()
+ await title.click()
+ await expect(inactive).toBeDisabled()
expect(await dialog.evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true)
const list = dialog.getByRole('group', { name: 'Meetings' })
expect(await list.evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true)
@@ -158,6 +169,7 @@ for (const theme of ['light', 'dark'] as const) test(`add existing meetings from
await page.keyboard.press('Tab')
const confirm = dialog.getByRole('button', { name: 'Add 2 meetings to folder' })
await expect(confirm).toBeFocused()
+ await expect(confirm).toHaveCSS('background-color', 'rgb(111, 0, 255)')
await confirm.press('Enter')
await expect(dialog).toHaveCount(0)
await expect(header).toBeFocused()
diff --git a/app/src/renderer/src/components/AddMeetingsDialog.tsx b/app/src/renderer/src/components/AddMeetingsDialog.tsx
index dbfe0b76..e3fb0b67 100644
--- a/app/src/renderer/src/components/AddMeetingsDialog.tsx
+++ b/app/src/renderer/src/components/AddMeetingsDialog.tsx
@@ -1,6 +1,8 @@
import { useEffect, useMemo, useRef, useState, type KeyboardEvent } from 'react'
import type { Folder, FolderMeetingChoice } from '../../../shared/types'
import { language, t } from '../../../shared/i18n'
+import { Checkbox } from './Checkbox'
+import { ScrollFade } from './ScrollFade'
import { Search } from './Icons'
import { InlineError } from './InlineError'
import { Modal, ModalClose } from './Modal'
@@ -57,18 +59,18 @@ export function AddMeetingsDialog({ folder, onDone }: { folder: Folder; onDone(a
saving.current = false; setBusy(false); setSaveFailed(true); setAttempt(n => n + 1)
}
}
- return <Modal testId="folder-add-meetings" title={t('Add meetings')} description={folder.name}
+ return <Modal testId="folder-add-meetings" title={t('Add meetings to {folder}', { folder: folder.name })}
closing={added} busy={busy} onCancel={() => onDone(added)}>
<label className="shortcuts-search"><Search size={16} aria-hidden="true" />
<input data-dialog-focus aria-label={t('Search')} placeholder={t('Search')} value={query} disabled={busy}
onChange={e => setQuery(e.target.value)} onKeyDown={arrows} />
</label>
- <div ref={list} role="group" aria-label={t('Meetings')} className="folder-meeting-choices" onKeyDown={arrows}>
+ <ScrollFade><div ref={list} role="group" aria-label={t('Meetings')} className="folder-meeting-choices" onKeyDown={arrows}>
{loadFailed ? <InlineError testId="folder-meetings-error" retry={() => setAttempt(n => n + 1)} />
: !rows ? <p role="status">{t('Loading…')}</p>
: !visible.length ? <p role="status">{needle ? t('Nothing found for “{query}”.', { query: query.trim() }) : t('No meetings here yet')}</p>
- : visible.map(row => <label key={row.id} className="folder-meeting-choice settings-calendar-choice">
- <input type="checkbox" checked={row.inFolder || chosen.has(row.id)} disabled={row.inFolder || busy}
+ : visible.map(row => <label key={row.id} className="folder-meeting-choice">
+ <Checkbox checked={row.inFolder || chosen.has(row.id)} disabled={row.inFolder || busy}
tabIndex={row.id === tabStop?.id ? 0 : -1} onFocus={() => setFocused(row.id)}
onChange={e => { const checked = e.target.checked; setChosen(previous => {
const next = new Set(previous)
@@ -79,7 +81,7 @@ export function AddMeetingsDialog({ folder, onDone }: { folder: Folder; onDone(a
<span className="min-w-0"><span className="block [overflow-wrap:anywhere]">{row.title || t('Untitled meeting')}</span>
<small>{date.format(row.startedAt)}{row.inFolder && <> · {t('In this folder')}</>}</small></span>
</label>)}
- </div>
+ </div></ScrollFade>
{saveFailed && <p className="modal-error" role="alert">{t("Yogurt couldn't make that change. Try again.")}</p>}
<div className="modal-actions">
<button className="modal-button primary" disabled={busy || loadFailed || !selected.length} onClick={() => void save()}>
diff --git a/app/src/renderer/src/components/CalendarSettings.tsx b/app/src/renderer/src/components/CalendarSettings.tsx
index a0bd4844..0177e1ad 100644
--- a/app/src/renderer/src/components/CalendarSettings.tsx
+++ b/app/src/renderer/src/components/CalendarSettings.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useRef, useState } from 'react'
+import { Checkbox } from './Checkbox'
import { ChevronDown } from './Icons'
import { Loading } from './Loading'
import { LoadingContent } from './LoadingContent'
@@ -82,7 +83,7 @@ export function CalendarSettings({ connect = false }: { connect?: boolean } = {}
{view.calendars.map((c) => <label key={c.id} data-testid="calendar-choice" className="settings-row settings-calendar-choice">
<span className="settings-calendar-dot" style={{ backgroundColor: c.color }} aria-hidden="true" />
<span className="settings-row-copy"><span className="settings-label">{c.name}</span><span className="settings-description block">{c.source}</span></span>
- <input type="checkbox" checked={c.enabled} disabled={busy} onChange={(e) => void choose(c.id, e.target.checked)} />
+ <Checkbox checked={c.enabled} disabled={busy} onChange={(e) => void choose(c.id, e.target.checked)} />
{c.link && <button type="button" data-testid="calendar-link-remove" className="workspace-button shrink-0" disabled={busy} onClick={(e) => { e.preventDefault(); void removeLink(c.id) }}>{t('Remove')}</button>}
</label>)}</>}</LoadingContent>
{view && view.status !== 'error' && <div className="settings-calendar-add">
diff --git a/app/src/renderer/src/components/Checkbox.tsx b/app/src/renderer/src/components/Checkbox.tsx
new file mode 100644
index 00000000..2306c86d
--- /dev/null
+++ b/app/src/renderer/src/components/Checkbox.tsx
@@ -0,0 +1,9 @@
+import type { ComponentPropsWithoutRef } from 'react'
+import { Check } from './Icons'
+
+export function Checkbox(props: Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'className'>) {
+ return <span className="ui-checkbox">
+ <input {...props} type="checkbox" />
+ <Check size={12} aria-hidden="true" />
+ </span>
+}
diff --git a/app/src/renderer/src/setup.css b/app/src/renderer/src/setup.css
index bb0fbcb5..7dec3b2f 100644
--- a/app/src/renderer/src/setup.css
+++ b/app/src/renderer/src/setup.css
@@ -152,7 +152,6 @@
/* Calendar options close the list as their own module, divided from the calendars above */
.settings-calendar-actions>.settings-row { position:relative; }
.settings-calendar-actions>.settings-row::before { content:"";position:absolute;inset-block-start:0;inset-inline:20px;height:1px;background:var(--line); }
-.settings-calendar-choice input { width:15px;height:15px;flex:none;accent-color:var(--primary); }
.finish-setup-header { display:flex;justify-content:space-between;align-items:center;height:40px;padding:0 12px;border-bottom:1px solid var(--line); }
.finish-setup-header h2 { font-size:13px;line-height:18px;font-weight:600;color:var(--ink); }
diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.css
index 60d992dd..9a9c5643 100644
--- a/app/src/renderer/src/styles.css
+++ b/app/src/renderer/src/styles.css
@@ -1054,11 +1054,27 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {
[data-quiet-focus]:focus-visible { outline-style:none !important; }
:where([data-focus-ring]:not(:focus-visible)) { outline:2px solid var(--focus);outline-offset:2px; }
+.ui-checkbox { position:relative;display:inline-grid;place-items:center;flex:none;width:16px;height:16px; }
+.ui-checkbox input { appearance:none;width:100%;height:100%;margin:0;border:1px solid var(--muted);border-radius:4px;background:transparent;cursor:inherit; }
+.ui-checkbox input:checked { background:var(--primary);border-color:var(--primary); }
+.ui-checkbox svg { position:absolute;pointer-events:none;visibility:hidden;color:#fff; }
+.ui-checkbox input:checked + svg { visibility:visible; }
+.ui-checkbox input:disabled { cursor:default; }
+.ui-checkbox input:checked:disabled { background:var(--selected);border-color:var(--muted); }
+.ui-checkbox input:checked:disabled + svg { color:var(--written); }
+.ui-checkbox input:is([data-focus-ring],:focus-visible) { outline:2px solid var(--focus);outline-offset:2px; }
+@media (forced-colors:active) {
+ .ui-checkbox input { appearance:auto; }
+ .ui-checkbox svg { display:none; }
+}
+
+button.primary:disabled { background:var(--control);border-color:transparent;box-shadow:none;color:var(--muted);opacity:1; }
+
.app-modal[data-testid=folder-add-meetings] { width:min(440px,calc(100vw - 40px));display:flex;flex-direction:column;overscroll-behavior:contain; }
-.app-modal[data-testid=folder-add-meetings] .modal-copy p { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere; }
-.folder-meeting-choices { min-height:0;max-height:42vh;overflow-y:auto;overscroll-behavior:contain;margin:0 12px 12px;padding:2px 0; }
+.app-modal[data-testid=folder-add-meetings] .modal-copy h2 { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere; }
+.folder-meeting-choices { min-height:0;max-height:42vh;overflow-y:auto;scroll-padding-block:20px;overscroll-behavior:contain;margin:0 12px 12px;padding:2px 0; }
.folder-meeting-choices>p { padding:8px 12px;color:var(--muted);font-size:13px; }
-.folder-meeting-choice { display:flex;align-items:center;gap:10px;border-radius:6px;min-height:36px;padding:6px 12px;font-size:13px;line-height:18px; }
+.folder-meeting-choice { cursor:pointer;display:flex;align-items:center;gap:10px;border-radius:6px;min-height:36px;padding:6px 12px;font-size:13px;line-height:18px; }
.folder-meeting-choice small { color:var(--muted);font-size:11px; }
.folder-meeting-choice:has(:disabled) { cursor:default; }
.folder-meeting-choice:focus-within { background:var(--selected); }
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 88b08739..ccca9f77 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -719,6 +719,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "يمكنك نسخ الاجتماعات والملاحظات والنصوص والصوت المحفوظ احتياطيًا في ملف واحد.",
"You can get a reminder when Yogurt detects a call.": "يمكنك تلقي تذكير عندما يكتشف Yogurt مكالمة.",
"Add meetings": "إضافة اجتماعات",
+ "Add meetings to {folder}": "إضافة اجتماعات إلى {folder}",
"New note": "ملاحظة جديدة",
"In this folder": "في هذا المجلد",
"Notes and recordings started here are saved in this folder.": "تُحفظ الملاحظات والتسجيلات التي تبدأها هنا في هذا المجلد.",
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 5bcf65a5..59961da8 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -651,6 +651,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "মিটিং, নোট, প্রতিলিপি ও রাখা অডিও একটি ফাইলে ব্যাকআপ নিতে পারেন।",
"You can get a reminder when Yogurt detects a call.": "Yogurt কল শনাক্ত করলে অনুস্মারক পেতে পারেন।",
"Add meetings": "মিটিং যোগ করুন",
+ "Add meetings to {folder}": "{folder}-এ মিটিং যোগ করুন",
"New note": "নতুন নোট",
"In this folder": "এই ফোল্ডারে আছে",
"Notes and recordings started here are saved in this folder.": "এখানে শুরু করা নোট ও রেকর্ডিং এই ফোল্ডারে সংরক্ষিত হয়।",
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 1c1038d7..ad1f5dc4 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -694,6 +694,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Schůzky, poznámky, přepisy a uložený zvuk můžete zálohovat do jednoho souboru.",
"You can get a reminder when Yogurt detects a call.": "Můžete dostat připomenutí, když Yogurt rozpozná hovor.",
"Add meetings": "Přidat schůzky",
+ "Add meetings to {folder}": "Přidat schůzky do složky {folder}",
"New note": "Nová poznámka",
"In this folder": "V této složce",
"Notes and recordings started here are saved in this folder.": "Poznámky a nahrávky, které zde začnete, se uloží do této složky.",
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index 41618fca..c925a0a8 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan sikkerhedskopiere møder, noter, transskriptioner og gemt lyd i én fil.",
"You can get a reminder when Yogurt detects a call.": "Du kan få en påmindelse, når Yogurt opdager et opkald.",
"Add meetings": "Tilføj møder",
+ "Add meetings to {folder}": "Føj møder til {folder}",
"New note": "Ny note",
"In this folder": "I denne mappe",
"Notes and recordings started here are saved in this folder.": "Noter og optagelser, du starter her, gemmes i denne mappe.",
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 3a0d83a4..d5088321 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Du kannst Meetings, Notizen, Transkripte und gespeichertes Audio in einer Datei sichern.",
"You can get a reminder when Yogurt detects a call.": "Du kannst dich erinnern lassen, wenn Yogurt einen Anruf erkennt.",
"Add meetings": "Meetings hinzufügen",
+ "Add meetings to {folder}": "Besprechungen zu {folder} hinzufügen",
"New note": "Neue Notiz",
"In this folder": "In diesem Ordner",
"Notes and recordings started here are saved in this folder.": "Notizen und Aufnahmen, die du hier beginnst, werden in diesem Ordner gespeichert.",
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 0713a00a..b82372f8 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -666,6 +666,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Μπορείτε να αποθηκεύσετε συσκέψεις, σημειώσεις, απομαγνητοφωνήσεις και αποθηκευμένο ήχο σε ένα αρχείο.",
"You can get a reminder when Yogurt detects a call.": "Μπορείτε να λαμβάνετε υπενθύμιση όταν το Yogurt εντοπίζει κλήση.",
"Add meetings": "Προσθήκη συναντήσεων",
+ "Add meetings to {folder}": "Προσθήκη συναντήσεων στον φάκελο {folder}",
"New note": "Νέα σημείωση",
"In this folder": "Σε αυτόν τον φάκελο",
"Notes and recordings started here are saved in this folder.": "Οι σημειώσεις και οι εγγραφές που ξεκινάτε εδώ αποθηκεύονται σε αυτόν τον φάκελο.",
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index 5d98c968..db5f048f 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -212,6 +212,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "You can back up meetings, notes, transcripts and saved audio in one file.",
"You can get a reminder when Yogurt detects a call.": "You can get a reminder when Yogurt detects a call.",
"Add meetings": "Add meetings",
+ "Add meetings to {folder}": "Add meetings to {folder}",
"New note": "New note",
"In this folder": "In this folder",
"Notes and recordings started here are saved in this folder.": "Notes and recordings started here are saved in this folder.",
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 720f6d36..8d6d5a8d 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -676,6 +676,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Puedes guardar reuniones, notas, transcripciones y audio conservado en un archivo.",
"You can get a reminder when Yogurt detects a call.": "Puedes recibir un aviso cuando Yogurt detecte una llamada.",
"Add meetings": "Añadir reuniones",
+ "Add meetings to {folder}": "Añadir reuniones a {folder}",
"New note": "Nueva nota",
"In this folder": "En esta carpeta",
"Notes and recordings started here are saved in this folder.": "Las notas y grabaciones que empieces aquí se guardan en esta carpeta.",
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index 0dcb2dd7..a82ab436 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -669,6 +669,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Voit varmuuskopioida kokoukset, muistiinpanot, litteroinnit ja säilytetyn äänen yhteen tiedostoon.",
"You can get a reminder when Yogurt detects a call.": "Voit saada muistutuksen, kun Yogurt havaitsee puhelun.",
"Add meetings": "Lisää kokouksia",
+ "Add meetings to {folder}": "Lisää kokouksia kansioon {folder}",
"New note": "Uusi muistiinpano",
"In this folder": "Tässä kansiossa",
"Notes and recordings started here are saved in this folder.": "Täällä aloitetut muistiinpanot ja tallenteet tallennetaan tähän kansioon.",
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 23a627ff..4e51d1af 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Puwede mong i-backup ang mga meeting, tala, transcript at na-save na audio sa isang file.",
"You can get a reminder when Yogurt detects a call.": "Puwede kang makatanggap ng paalala kapag may natukoy na tawag ang Yogurt.",
"Add meetings": "Magdagdag ng mga meeting",
+ "Add meetings to {folder}": "Magdagdag ng mga meeting sa {folder}",
"New note": "Bagong tala",
"In this folder": "Nasa folder na ito",
"Notes and recordings started here are saved in this folder.": "Dito sa folder na ito mase-save ang mga tala at recording na sisimulan mo rito.",
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 85efeb5f..fd8868da 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -679,6 +679,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Vous pouvez sauvegarder réunions, notes, transcriptions et audio conservé dans un fichier.",
"You can get a reminder when Yogurt detects a call.": "Vous pouvez recevoir un rappel quand Yogurt détecte un appel.",
"Add meetings": "Ajouter des réunions",
+ "Add meetings to {folder}": "Ajouter des réunions à {folder}",
"New note": "Nouvelle note",
"In this folder": "Dans ce dossier",
"Notes and recordings started here are saved in this folder.": "Les notes et les enregistrements que vous commencez ici sont enregistrés dans ce dossier.",
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 505413a9..20c3786f 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -673,6 +673,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "אפשר לגבות פגישות, הערות, תמלילים ושמע שנשמר בקובץ אחד.",
"You can get a reminder when Yogurt detects a call.": "אפשר לקבל תזכורת כש-Yogurt מזהה שיחה.",
"Add meetings": "הוספת פגישות",
+ "Add meetings to {folder}": "הוספת פגישות אל {folder}",
"New note": "הערה חדשה",
"In this folder": "בתיקייה הזו",
"Notes and recordings started here are saved in this folder.": "הערות והקלטות שמתחילים כאן נשמרות בתיקייה הזו.",
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index 20296421..624f2547 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -651,6 +651,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "आप मीटिंग, नोट्स, ट्रांसक्रिप्ट और सहेजे ऑडियो का एक फ़ाइल में बैकअप ले सकते हैं।",
"You can get a reminder when Yogurt detects a call.": "Yogurt को कॉल मिलने पर आप रिमाइंडर पा सकते हैं।",
"Add meetings": "मीटिंग जोड़ें",
+ "Add meetings to {folder}": "{folder} में मीटिंग जोड़ें",
"New note": "नया नोट",
"In this folder": "इस फ़ोल्डर में",
"Notes and recordings started here are saved in this folder.": "यहाँ शुरू किए गए नोट और रिकॉर्डिंग इसी फ़ोल्डर में सहेजे जाते हैं।",
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 91fc2dad..2ab17af1 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -651,6 +651,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Egy fájlba mentheted a megbeszéléseket, jegyzeteket, átiratokat és megőrzött hangot.",
"You can get a reminder when Yogurt detects a call.": "Kérhetsz emlékeztetőt, amikor a Yogurt hívást észlel.",
"Add meetings": "Megbeszélések hozzáadása",
+ "Add meetings to {folder}": "Megbeszélések hozzáadása a következő mappához: {folder}",
"New note": "Új jegyzet",
"In this folder": "Ebben a mappában",
"Notes and recordings started here are saved in this folder.": "Az itt elkezdett jegyzetek és felvételek ebbe a mappába kerülnek.",
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 76351e7d..12dfe174 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Anda dapat mencadangkan rapat, catatan, transkrip, dan audio tersimpan dalam satu file.",
"You can get a reminder when Yogurt detects a call.": "Anda dapat menerima pengingat saat Yogurt mendeteksi panggilan.",
"Add meetings": "Tambahkan rapat",
+ "Add meetings to {folder}": "Tambahkan rapat ke {folder}",
"New note": "Catatan baru",
"In this folder": "Di folder ini",
"Notes and recordings started here are saved in this folder.": "Catatan dan rekaman yang Anda mulai di sini disimpan di folder ini.",
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 1e171c8b..abf4de39 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -682,6 +682,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Puoi salvare riunioni, note, trascrizioni e audio conservato in un solo file.",
"You can get a reminder when Yogurt detects a call.": "Puoi ricevere un promemoria quando Yogurt rileva una chiamata.",
"Add meetings": "Aggiungi riunioni",
+ "Add meetings to {folder}": "Aggiungi riunioni a {folder}",
"New note": "Nuova nota",
"In this folder": "In questa cartella",
"Notes and recordings started here are saved in this folder.": "Le note e le registrazioni che inizi qui vengono salvate in questa cartella.",
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index 761a271b..35b3ddf8 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "会議、ノート、文字起こし、保存済み音声を1つのファイルにバックアップできます。",
"You can get a reminder when Yogurt detects a call.": "Yogurtが通話を検出したときに通知を受け取れます。",
"Add meetings": "ミーティングを追加",
+ "Add meetings to {folder}": "{folder} に会議を追加",
"New note": "新規ノート",
"In this folder": "このフォルダに追加済み",
"Notes and recordings started here are saved in this folder.": "ここで作成したノートや開始した録音は、このフォルダに保存されます。",
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index 9549c05e..61055863 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "회의, 노트, 녹취록과 저장된 오디오를 한 파일에 백업할 수 있어요.",
"You can get a reminder when Yogurt detects a call.": "Yogurt가 통화를 감지하면 알림을 받을 수 있어요.",
"Add meetings": "회의 추가",
+ "Add meetings to {folder}": "{folder}에 회의 추가",
"New note": "새 노트",
"In this folder": "이 폴더에 있음",
"Notes and recordings started here are saved in this folder.": "여기에서 시작한 노트와 녹음은 이 폴더에 저장됩니다.",
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index c3c4c1fe..9c629ae6 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Anda boleh menyandarkan mesyuarat, nota, transkrip dan audio tersimpan dalam satu fail.",
"You can get a reminder when Yogurt detects a call.": "Anda boleh menerima peringatan apabila Yogurt mengesan panggilan.",
"Add meetings": "Tambah mesyuarat",
+ "Add meetings to {folder}": "Tambah mesyuarat ke {folder}",
"New note": "Nota baharu",
"In this folder": "Dalam folder ini",
"Notes and recordings started here are saved in this folder.": "Nota dan rakaman yang anda mulakan di sini disimpan dalam folder ini.",
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index b3c1c1bf..28238713 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan sikkerhetskopiere møter, notater, transkripsjoner og lagret lyd i én fil.",
"You can get a reminder when Yogurt detects a call.": "Du kan få en påminnelse når Yogurt oppdager en samtale.",
"Add meetings": "Legg til møter",
+ "Add meetings to {folder}": "Legg til møter i {folder}",
"New note": "Nytt notat",
"In this folder": "I denne mappen",
"Notes and recordings started here are saved in this folder.": "Notater og opptak du starter her, lagres i denne mappen.",
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index d7aea3a3..51c4f96b 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Je kunt meetings, notities, transcripten en bewaarde audio in één bestand opslaan.",
"You can get a reminder when Yogurt detects a call.": "Je kunt een herinnering krijgen als Yogurt een gesprek herkent.",
"Add meetings": "Vergaderingen toevoegen",
+ "Add meetings to {folder}": "Vergaderingen toevoegen aan {folder}",
"New note": "Nieuwe notitie",
"In this folder": "In deze map",
"Notes and recordings started here are saved in this folder.": "Notities en opnamen die je hier begint, worden in deze map opgeslagen.",
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index 86b9c68e..cc24bee7 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -699,6 +699,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Możesz zapisać spotkania, notatki, transkrypcje i zachowany dźwięk w jednym pliku.",
"You can get a reminder when Yogurt detects a call.": "Możesz otrzymać przypomnienie, gdy Yogurt wykryje rozmowę.",
"Add meetings": "Dodaj spotkania",
+ "Add meetings to {folder}": "Dodaj spotkania do folderu {folder}",
"New note": "Nowa notatka",
"In this folder": "W tym folderze",
"Notes and recordings started here are saved in this folder.": "Notatki i nagrania rozpoczęte tutaj zapisują się w tym folderze.",
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 87ba176f..6b31f9be 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -679,6 +679,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Você pode salvar reuniões, notas, transcrições e áudio guardado em um só arquivo.",
"You can get a reminder when Yogurt detects a call.": "Você pode receber um lembrete quando o Yogurt detectar uma chamada.",
"Add meetings": "Adicionar reuniões",
+ "Add meetings to {folder}": "Adicionar reuniões a {folder}",
"New note": "Nova nota",
"In this folder": "Nesta pasta",
"Notes and recordings started here are saved in this folder.": "As notas e gravações que você iniciar aqui serão salvas nesta pasta.",
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 5cee4f46..04a16838 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -680,6 +680,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Puteți salva întâlnirile, notele, transcrierile și sunetul păstrat într-un singur fișier.",
"You can get a reminder when Yogurt detects a call.": "Puteți primi un memento când Yogurt detectează un apel.",
"Add meetings": "Adaugă întâlniri",
+ "Add meetings to {folder}": "Adaugă întâlniri în {folder}",
"New note": "Notă nouă",
"In this folder": "În acest dosar",
"Notes and recordings started here are saved in this folder.": "Notițele și înregistrările pe care le începi aici se salvează în acest dosar.",
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index a8870482..bf4ed9b6 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -691,6 +691,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Можно сохранить встречи, заметки, расшифровки и сохранённое аудио в один файл.",
"You can get a reminder when Yogurt detects a call.": "Можно получать напоминание, когда Yogurt обнаруживает звонок.",
"Add meetings": "Добавить встречи",
+ "Add meetings to {folder}": "Добавить встречи в папку {folder}",
"New note": "Новая заметка",
"In this folder": "В этой папке",
"Notes and recordings started here are saved in this folder.": "Заметки и записи, которые вы начнёте здесь, сохранятся в этой папке.",
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index b2c5662c..98c4ab34 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -663,6 +663,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan säkerhetskopiera möten, anteckningar, transkriptioner och sparat ljud i en fil.",
"You can get a reminder when Yogurt detects a call.": "Du kan få en påminnelse när Yogurt upptäcker ett samtal.",
"Add meetings": "Lägg till möten",
+ "Add meetings to {folder}": "Lägg till möten i {folder}",
"New note": "Ny anteckning",
"In this folder": "I den här mappen",
"Notes and recordings started here are saved in this folder.": "Anteckningar och inspelningar som du påbörjar här sparas i den här mappen.",
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index f4248a44..ebe11891 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "คุณสำรองการประชุม โน้ต ข้อความถอดเสียง และเสียงที่เก็บไว้ในไฟล์เดียวได้",
"You can get a reminder when Yogurt detects a call.": "คุณรับการเตือนได้เมื่อ Yogurt ตรวจพบสาย",
"Add meetings": "เพิ่มการประชุม",
+ "Add meetings to {folder}": "เพิ่มการประชุมไปยัง {folder}",
"New note": "โน้ตใหม่",
"In this folder": "อยู่ในโฟลเดอร์นี้",
"Notes and recordings started here are saved in this folder.": "โน้ตและการบันทึกที่คุณเริ่มที่นี่จะถูกเก็บไว้ในโฟลเดอร์นี้",
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 91cdb6bc..f130be1f 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -651,6 +651,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Toplantıları, notları, dökümleri ve saklanan sesi tek dosyada yedekleyebilirsiniz.",
"You can get a reminder when Yogurt detects a call.": "Yogurt bir görüşme algıladığında hatırlatma alabilirsiniz.",
"Add meetings": "Toplantı ekle",
+ "Add meetings to {folder}": "{folder} klasörüne toplantı ekle",
"New note": "Yeni not",
"In this folder": "Bu klasörde",
"Notes and recordings started here are saved in this folder.": "Burada başlattığınız notlar ve kayıtlar bu klasöre kaydedilir.",
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index 1ac3e942..7c3cb59d 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -691,6 +691,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Можна зберегти зустрічі, нотатки, розшифровки й збережене аудіо в одному файлі.",
"You can get a reminder when Yogurt detects a call.": "Можна отримувати нагадування, коли Yogurt виявляє дзвінок.",
"Add meetings": "Додати зустрічі",
+ "Add meetings to {folder}": "Додати зустрічі до папки {folder}",
"New note": "Нова нотатка",
"In this folder": "У цій папці",
"Notes and recordings started here are saved in this folder.": "Нотатки й записи, які ви почнете тут, зберігатимуться в цій папці.",
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index 7d9d44fc..b9135c72 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "Bạn có thể sao lưu cuộc họp, ghi chú, bản chép lời và âm thanh đã lưu vào một tệp.",
"You can get a reminder when Yogurt detects a call.": "Bạn có thể nhận lời nhắc khi Yogurt phát hiện cuộc gọi.",
"Add meetings": "Thêm cuộc họp",
+ "Add meetings to {folder}": "Thêm cuộc họp vào {folder}",
"New note": "Ghi chú mới",
"In this folder": "Trong thư mục này",
"Notes and recordings started here are saved in this folder.": "Ghi chú và bản ghi âm bạn bắt đầu ở đây sẽ được lưu vào thư mục này.",
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index 495f8564..fd0fec67 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "你可以将会议、笔记、转录和已保存的音频备份到一个文件中。",
"You can get a reminder when Yogurt detects a call.": "你可以在 Yogurt 检测到通话时收到提醒。",
"Add meetings": "添加会议",
+ "Add meetings to {folder}": "将会议添加到{folder}",
"New note": "新建笔记",
"In this folder": "已在此文件夹中",
"Notes and recordings started here are saved in this folder.": "在此处创建的笔记和开始的录音都会保存到此文件夹。",
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index 71b0eec8..c74fe327 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -621,6 +621,7 @@
"You can back up meetings, notes, transcripts and saved audio in one file.": "你可以將會議、筆記、逐字稿和已儲存的音訊備份到一個檔案中。",
"You can get a reminder when Yogurt detects a call.": "你可以在 Yogurt 偵測到通話時收到提醒。",
"Add meetings": "加入會議",
+ "Add meetings to {folder}": "將會議加入{folder}",
"New note": "新增筆記",
"In this folder": "已在此資料夾中",
"Notes and recordings started here are saved in this folder.": "在這裡建立的筆記和開始的錄音都會儲存在此資料夾。",
diff --git a/app/test/addMeetingsDialog.test.ts b/app/test/addMeetingsDialog.test.ts
index 87a0c9f1..9570ae9e 100644
--- a/app/test/addMeetingsDialog.test.ts
+++ b/app/test/addMeetingsDialog.test.ts
@@ -1,6 +1,7 @@
import { afterEach, expect, it, vi } from 'vitest'
import { isValidElement, type ReactNode, type ReactElement } from 'react'
import { renderToStaticMarkup } from 'react-dom/server'
+import { Checkbox } from '../src/renderer/src/components/Checkbox'
import { AddMeetingsDialog } from '../src/renderer/src/components/AddMeetingsDialog'
import type { Folder, FolderMeetingChoice } from '../src/shared/types'
@@ -30,18 +31,19 @@ it('keeps selections across searches and a failed save, and skips meetings alrea
const addMany = vi.fn().mockResolvedValueOnce(false).mockResolvedValueOnce(true)
const onChange = () => () => {}
vi.stubGlobal('window', { yogurt: { folders: { meetingChoices: async () => rows, addMany, onChange }, meetings: { onChange } } })
- const choices = () => controls(render()).filter(el => el.props.type === 'checkbox')
+ const choices = () => controls(render()).filter(el => el.type === Checkbox)
const search = () => controls(render()).find(el => el.props['data-dialog-focus'])!
const confirm = () => controls(render()).find(el => el.type === 'button' && el.props.className === 'modal-button primary')!
const refresh = async () => { render(); hooks.load(); await Promise.resolve() }
const save = async () => { (confirm().props.onClick as () => void)(); await Promise.resolve() }
await refresh()
+ expect(render().props.title).toBe('Add meetings to Reviews')
expect(choices()).toHaveLength(0)
expect(confirm().props.disabled).toBe(true)
rows = [{ id: '0', title: 'A'.repeat(200), startedAt: 0, inFolder: true }]
await refresh()
expect(choices()[0].props).toMatchObject({ checked: true, disabled: true, tabIndex: -1 })
- expect(renderToStaticMarkup(controls(render()).find(el => el.props.className === 'folder-meeting-choice settings-calendar-choice')!.props.children as ReactNode)).toContain(rows[0].title)
+ expect(renderToStaticMarkup(controls(render()).find(el => el.props.className === 'folder-meeting-choice')!.props.children as ReactNode)).toContain(rows[0].title)
rows.push(...Array.from({ length: 199 }, (_, i) => ({ id: String(i + 1), title: 'Review ' + (i + 1), startedAt: i, inFolder: false })))
await refresh()
expect(choices()).toHaveLength(200)
diff --git a/app/test/calendarLinkForm.test.ts b/app/test/calendarLinkForm.test.ts
index 07a11d8a..fd0d4c15 100644
--- a/app/test/calendarLinkForm.test.ts
+++ b/app/test/calendarLinkForm.test.ts
@@ -1,6 +1,7 @@
import {useState,useEffect,useRef,type ReactNode,type ReactElement} from 'react'
import {afterEach,expect,it,vi} from 'vitest'
import {CalendarLinkForm} from '../src/renderer/src/components/CalendarLinkForm'
+import {Checkbox} from '../src/renderer/src/components/Checkbox'
import {CalendarSettings} from '../src/renderer/src/components/CalendarSettings'
import {capabilities} from '../src/shared/platform'
import {calendarAddress} from '../src/shared/calendarLink'
@@ -124,7 +125,7 @@ it.each([false,true])('keeps per-calendar controls without a bulk disconnect (li
expect(h.get('calendar-disconnect')).toBeUndefined();expect(h.get('calendar-disconnect-all')).toBeUndefined()
expect(h.all().some(e=>e.props.children==='Add a calendar by link')).toBe(true)
expect(h.all().some(e=>e.props.children==="Calendars from the Mac's Calendar app appear above automatically.")).toBe(!link)
- h.type('input').props.onChange({target:{checked:false}});await Promise.resolve();h.run()
+ h.type(Checkbox).props.onChange({target:{checked:false}});await Promise.resolve();h.run()
expect(setEnabled).toHaveBeenCalledWith('link:sample',false);expect(removeLink).not.toHaveBeenCalled()
h.get('calendar-link-remove').props.onClick({preventDefault(){}});await Promise.resolve();h.run()
expect(removeLink).toHaveBeenCalledWith('link:sample');expect(setEnabled).toHaveBeenCalledTimes(1)