Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"gen:schema": "tsx src/devtool/seed/script.ts"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "^3.0.49",
"@ai-sdk/anthropic": "^2.0.39",
"@ai-sdk/azure": "^2.0.59",
"@ai-sdk/google": "^2.0.25",
"@ai-sdk/google-vertex": "^3.0.55",
"@ai-sdk/openai": "^2.0.58",
"@ai-sdk/openai-compatible": "^1.0.24",
"@ai-sdk/react": "^2.0.82",
"@electric-sql/client": "^1.1.1",
"@ai-sdk/amazon-bedrock": "^3.0.51",
"@ai-sdk/anthropic": "^2.0.41",
"@ai-sdk/azure": "^2.0.63",
"@ai-sdk/google": "^2.0.28",
"@ai-sdk/google-vertex": "^3.0.58",
"@ai-sdk/openai": "^2.0.62",
"@ai-sdk/openai-compatible": "^1.0.26",
"@ai-sdk/react": "^2.0.87",
"@electric-sql/client": "^1.1.3",
"@floating-ui/react": "^0.27.16",
"@huggingface/languages": "^1.0.0",
"@hypr/codemirror": "workspace:^",
Expand All @@ -41,18 +41,18 @@
"@hypr/tiptap": "workspace:^",
"@hypr/ui": "workspace:^",
"@hypr/utils": "workspace:^",
"@iconify-icon/react": "^3.0.2",
"@iconify-icon/react": "^3.0.3",
"@lobehub/icons": "^2.43.1",
"@openrouter/ai-sdk-provider": "^1.2.0",
"@orama/highlight": "^0.1.9",
"@orama/orama": "^3.1.16",
"@orama/plugin-qps": "^3.1.16",
"@sentry/react": "^8.55.0",
"@supabase/supabase-js": "^2.77.0",
"@supabase/supabase-js": "^2.79.0",
"@t3-oss/env-core": "^0.13.8",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-router": "^1.133.36",
"@tanstack/react-query": "^5.90.6",
"@tanstack/react-router": "^1.134.12",
"@tanstack/react-virtual": "^3.13.12",
"@tauri-apps/api": "^2.9.0",
"@tauri-apps/plugin-autostart": "^2.5.1",
Expand All @@ -68,12 +68,12 @@
"@wavesurfer/react": "^1.0.11",
"@xstate/react": "^6.0.0",
"@xstate/store": "^3.11.2",
"ai": "^5.0.82",
"ai": "^5.0.87",
"chroma-js": "^3.1.2",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"dompurify": "^3.3.0",
"effect": "^3.18.4",
"effect": "^3.19.0",
"json5": "^2.2.3",
"lucide-react": "^0.544.0",
"motion": "^11.18.2",
Expand All @@ -87,18 +87,18 @@
"tinybase": "^6.7.2",
"tinytick": "^1.2.8",
"wavesurfer.js": "^7.11.1",
"xstate": "^5.23.0",
"xstate": "^5.24.0",
"zod": "^4.1.12",
"zustand": "^5.0.8"
},
"devDependencies": {
"@faker-js/faker": "^10.1.0",
"@tanstack/react-router-devtools": "^1.133.36",
"@tanstack/router-plugin": "^1.133.36",
"@tauri-apps/cli": "^2.9.2",
"@tanstack/react-router-devtools": "^1.134.12",
"@tanstack/router-plugin": "^1.134.12",
"@tauri-apps/cli": "^2.9.3",
"@types/chroma-js": "^3.1.2",
"@types/json5": "^2.2.0",
"@types/node": "^24.9.2",
"@types/node": "^24.10.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@types/stopword": "^2.0.3",
Expand Down
6 changes: 4 additions & 2 deletions apps/desktop/src/components/main/body/empty/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FileIcon } from "lucide-react";
import { ArrowUpRight, FileIcon } from "lucide-react";

import { Kbd, KbdGroup } from "@hypr/ui/components/ui/kbd";
import { cn } from "@hypr/utils";
Expand Down Expand Up @@ -75,14 +75,16 @@ function ActionItem({
])}
>
<span>{label}</span>
{shortcut && shortcut.length > 0 && (
{shortcut && shortcut.length > 0 ? (
<KbdGroup>
{shortcut.map((key, index) => (
<Kbd key={index} className="bg-neutral-200">
{key}
</Kbd>
))}
</KbdGroup>
) : (
<ArrowUpRight className="w-4 h-4 text-neutral-400" />
)}
</button>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useCallback, useState } from "react";

import { commands as windowsCommands } from "@hypr/plugin-windows";
import { Popover, PopoverContent, PopoverTrigger } from "@hypr/ui/components/ui/popover";
import { Tooltip, TooltipContent, TooltipTrigger } from "@hypr/ui/components/ui/tooltip";
import { cn } from "@hypr/utils";
import { AlertCircleIcon, RefreshCcwIcon, SparklesIcon } from "lucide-react";
import { useListener } from "../../../../../contexts/listener";
Expand Down Expand Up @@ -48,7 +49,7 @@ function HeaderTabEnhanced(
},
) {
const [open, setOpen] = useState(false);
const { templates, isGenerating, isError, onRegenerate } = useEnhanceLogic(sessionId);
const { templates, isGenerating, isError, error, onRegenerate } = useEnhanceLogic(sessionId);

const handleTabClick = useCallback(() => {
if (!isActive) {
Expand Down Expand Up @@ -87,16 +88,25 @@ function HeaderTabEnhanced(
<span className="flex items-center gap-1">
<span>Summary</span>
{isActive && (
<PopoverTrigger asChild>
<span
className={cn([
"p-0.5 rounded hover:bg-neutral-200 transition-colors cursor-pointer",
isError && "text-red-600 hover:bg-red-50",
])}
>
{isError ? <AlertCircleIcon size={12} /> : <RefreshCcwIcon size={12} />}
</span>
</PopoverTrigger>
<Tooltip delayDuration={0}>
<TooltipTrigger asChild>
<PopoverTrigger asChild>
<span
className={cn([
"p-0.5 rounded hover:bg-neutral-200 transition-colors cursor-pointer",
isError && "text-red-600 hover:bg-red-50",
])}
>
{isError ? <AlertCircleIcon size={12} /> : <RefreshCcwIcon size={12} />}
</span>
</PopoverTrigger>
</TooltipTrigger>
{isError && error && (
<TooltipContent side="bottom">
<p className="text-xs max-w-xs">{error instanceof Error ? error.message : String(error)}</p>
</TooltipContent>
)}
</Tooltip>
)}
</span>
</button>
Expand Down
28 changes: 1 addition & 27 deletions apps/desktop/src/routes/app/main/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,12 @@ export const Route = createFileRoute("/app/main/_layout")({

function Component() {
const { persistedStore, aiTaskStore, toolRegistry } = useRouteContext({ from: "__root__" });
const { registerOnClose, registerOnEmpty, currentTab, openNew, invalidateResource } = useTabs();
const { registerOnEmpty, currentTab, openNew } = useTabs();

const openDefaultEmptyTab = useCallback(() => {
openNew({ type: "empty" });
}, [openNew]);

useEffect(() => {
registerOnClose((tab) => {
if (tab.type === "sessions" && persistedStore) {
const row = persistedStore.getRow("sessions", tab.id);
if (!row) {
return;
}

if (!row.title && !row.raw_md && !row.enhanced_md) {
let hasTranscript = false;
persistedStore.forEachRow("transcripts", (transcriptId, _forEachCell) => {
const sessionId = persistedStore.getCell("transcripts", transcriptId, "session_id");
if (sessionId === tab.id) {
hasTranscript = true;
}
});

if (!hasTranscript) {
invalidateResource("sessions", tab.id);
persistedStore.delRow("sessions", tab.id);
}
}
}
});
}, [persistedStore, registerOnClose, invalidateResource]);

useEffect(() => {
if (!currentTab) {
openDefaultEmptyTab();
Expand Down
Loading
Loading