Skip to content

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

fix: command search — input styling, note type icons, sidebar spacing, deleted_at column

Gabriel Stein19b703462016
diff --git a/package-lock.json b/package-lock.json
index 3cb0b9962..def292fe0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2485,22 +2485,6 @@
}
}
},
- "node_modules/@neondatabase/auth-ui/node_modules/better-sqlite3": {
- "version": "12.6.2",
- "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-12.6.2.tgz",
- "integrity": "sha512-8VYKM3MjCa9WcaSAI3hzwhmyHVlH8tiGFwf0RlTsZPWJ1I5MkzjiudCo4KC4DxOaL/53A5B1sI/IbldNFDbsKA==",
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "peer": true,
- "dependencies": {
- "bindings": "^1.5.0",
- "prebuild-install": "^7.1.1"
- },
- "engines": {
- "node": "20.x || 22.x || 23.x || 24.x || 25.x"
- }
- },
"node_modules/@neondatabase/auth-ui/node_modules/lucide-react": {
"version": "0.555.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.555.0.tgz",
@@ -2510,54 +2494,6 @@
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
- "node_modules/@neondatabase/auth-ui/node_modules/pg": {
- "version": "8.18.0",
- "resolved": "https://registry.npmjs.org/pg/-/pg-8.18.0.tgz",
- "integrity": "sha512-xqrUDL1b9MbkydY/s+VZ6v+xiMUmOUk7SS9d/1kpyQxoJ6U9AO1oIJyUWVZojbfe5Cc/oluutcgFG4L9RDP1iQ==",
- "license": "MIT",
- "optional": true,
- "peer": true,
- "dependencies": {
- "pg-connection-string": "^2.11.0",
- "pg-pool": "^3.11.0",
- "pg-protocol": "^1.11.0",
- "pg-types": "2.2.0",
- "pgpass": "1.0.5"
- },
- "engines": {
- "node": ">= 16.0.0"
- },
- "optionalDependencies": {
- "pg-cloudflare": "^1.3.0"
- },
- "peerDependencies": {
- "pg-native": ">=3.0.1"
- },
- "peerDependenciesMeta": {
- "pg-native": {
- "optional": true
- }
- }
- },
- "node_modules/@neondatabase/auth-ui/node_modules/pg-pool": {
- "version": "3.11.0",
- "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.11.0.tgz",
- "integrity": "sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w==",
- "license": "MIT",
- "optional": true,
- "peer": true,
- "peerDependencies": {
- "pg": ">=8.0"
- }
- },
- "node_modules/@neondatabase/auth-ui/node_modules/pg-protocol": {
- "version": "1.11.0",
- "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.11.0.tgz",
- "integrity": "sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==",
- "license": "MIT",
- "optional": true,
- "peer": true
- },
"node_modules/@neondatabase/auth-ui/node_modules/zod": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
diff --git a/src/components/CommandSearch.tsx b/src/components/CommandSearch.tsx
index 930740a12..15bd3b140 100644
--- a/src/components/CommandSearch.tsx
+++ b/src/components/CommandSearch.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect, useCallback, useMemo, useRef } from "react";
import { useTranslation } from "react-i18next";
import * as DialogPrimitive from "@radix-ui/react-dialog";
-import { Search, FileText, Mic, Folder } from "lucide-react";
+import { Search, FileText, Mic, Folder, Users, Upload } from "lucide-react";
import { cn } from "./lib/utils";
import type { NoteItem, FolderItem, TranscriptionItem } from "../types/electron.js";
import { normalizeDbDate } from "../utils/dateFormatting";
@@ -213,7 +213,14 @@ export default function CommandSearch({
onKeyDown={handleKeyDown}
placeholder={t("commandSearch.placeholder")}
autoFocus
- className="flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/40 outline-none"
+ className="flex-1 text-sm text-foreground placeholder:text-muted-foreground/40"
+ style={{
+ background: "transparent",
+ border: "none",
+ outline: "none",
+ boxShadow: "none",
+ padding: 0,
+ }}
/>
{query && (
<button
@@ -332,6 +339,8 @@ function NoteRow({
t: (key: string, opts?: Record<string, unknown>) => string;
}) {
const preview = stripMarkdownPreview(note.content).slice(0, 90);
+ const NoteIcon =
+ note.note_type === "meeting" ? Users : note.note_type === "upload" ? Upload : FileText;
return (
<button
type="button"
@@ -345,7 +354,7 @@ function NoteRow({
: "hover:bg-foreground/4 dark:hover:bg-white/4"
)}
>
- <FileText
+ <NoteIcon
size={13}
className={cn(
"shrink-0 mt-px transition-colors",
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index f0bceab04..0af1edaa4 100644
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@ -90,7 +90,7 @@ export default function ControlPanelSidebar({
/>
{onOpenSearch && (
- <div className="px-2 pb-1">
+ <div className="px-2 pt-2 pb-1">
<button
onClick={onOpenSearch}
className="group flex items-center w-full h-7 px-2.5 rounded-md border border-border/25 dark:border-white/8 bg-foreground/3 dark:bg-white/3 hover:bg-foreground/5 dark:hover:bg-white/5 transition-colors gap-2 outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
diff --git a/src/helpers/database.js b/src/helpers/database.js
index 00b43622d..076c07b64 100644
--- a/src/helpers/database.js
+++ b/src/helpers/database.js
@@ -593,7 +593,6 @@ class DatabaseManager {
FROM notes n
JOIN notes_fts ON notes_fts.rowid = n.id
WHERE notes_fts MATCH ?
- AND n.deleted_at IS NULL
ORDER BY notes_fts.rank
LIMIT ?
`