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.

Settings: the notes model link is remembered like the recordings one

Eric Brownroutb6631dc5a6a4
diff --git a/app/src/shared/routes.ts b/app/src/shared/routes.ts
index d8848954..5075f9df 100644
--- a/app/src/shared/routes.ts
+++ b/app/src/shared/routes.ts
@@ -1,3 +1,3 @@
/** The renderer can navigate only within this workspace. */
export const isAppRoute = (route: unknown): route is string => typeof route === 'string' &&
- (['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings'].includes(route) || /^\/(?:note|chat|folder)\/[\w-]+$/.test(route))
+ (['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings', '/settings/notes-model'].includes(route) || /^\/(?:note|chat|folder)\/[\w-]+$/.test(route))
diff --git a/app/test/workspace.test.ts b/app/test/workspace.test.ts
index 4d5f3ce9..e8ec0d7c 100644
--- a/app/test/workspace.test.ts
+++ b/app/test/workspace.test.ts
@@ -4,7 +4,7 @@ import { shiftDay, weekDates, eventPhase } from '../src/renderer/src/agenda'
describe('workspace routes', () => {
it('accepts only local destinations and meeting IDs', () => {
- for (const route of ['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings', '/note/a-123', '/chat/c-123', '/folder/b-456']) expect(isAppRoute(route)).toBe(true)
+ for (const route of ['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings', '/settings/notes-model', '/note/a-123', '/chat/c-123', '/folder/b-456']) expect(isAppRoute(route)).toBe(true)
for (const route of [null, 1, '/note/', '/note/../secrets', '/note/a?x=1', '/folder/', '/folder/../x', '/folders', '/settings/unknown', 'https://example.com', '/other']) expect(isAppRoute(route)).toBe(false)
})
})