fix volume display name and disable react-scan

This commit is contained in:
Jamie Pine 2025-12-09 19:16:13 -08:00
parent c139aa938f
commit 2770a7a8a9
4 changed files with 10 additions and 10 deletions

View File

@ -30,11 +30,11 @@ function App() {
// React Scan disabled - too heavy for development // React Scan disabled - too heavy for development
// Uncomment if you need to debug render performance: // Uncomment if you need to debug render performance:
if (import.meta.env.DEV) { if (import.meta.env.DEV) {
setTimeout(() => { // setTimeout(() => {
import("react-scan").then(({ scan }) => { // import("react-scan").then(({ scan }) => {
scan({ enabled: true, log: false }); // scan({ enabled: true, log: false });
}); // });
}, 2000); // }, 2000);
} }
// Initialize Tauri native context menu handler // Initialize Tauri native context menu handler

View File

@ -496,7 +496,7 @@ function AddStorageDialog(props: {
// Step 1: Track the volume // Step 1: Track the volume
const trackResult = await trackVolume.mutateAsync({ const trackResult = await trackVolume.mutateAsync({
fingerprint: volume.fingerprint, fingerprint: volume.fingerprint,
display_name: volume.name, display_name: volume.display_name || volume.name,
}); });
// Step 2: Create a location for the volume's mount point // Step 2: Create a location for the volume's mount point
@ -507,7 +507,7 @@ function AddStorageDialog(props: {
path: volume.mount_point || "/", path: volume.mount_point || "/",
}, },
}, },
name: volume.name, name: volume.display_name || volume.name,
mode: "Deep", mode: "Deep",
job_policies: {}, job_policies: {},
}; };
@ -856,7 +856,7 @@ function AddStorageDialog(props: {
/> />
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
<div className="text-sm font-medium text-ink truncate"> <div className="text-sm font-medium text-ink truncate">
{volume.name} {volume.display_name || volume.name}
</div> </div>
<div className="text-xs text-ink-faint"> <div className="text-xs text-ink-faint">
{volume.mount_point} {" "} {volume.mount_point} {" "}

View File

@ -59,7 +59,7 @@ export function VolumesGroup({
item_type: { item_type: {
Volume: { Volume: {
volume_id: volume.id, volume_id: volume.id,
name: volume.name, name: volume.display_name || volume.name,
}, },
}, },
} as any } as any

View File

@ -216,7 +216,7 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
<div className="flex items-center justify-between mb-3"> <div className="flex items-center justify-between mb-3">
<div className="flex items-center gap-2 min-w-0"> <div className="flex items-center gap-2 min-w-0">
<span className="font-semibold text-ink truncate text-base"> <span className="font-semibold text-ink truncate text-base">
{volume.name} {volume.display_name || volume.name}
</span> </span>
{!volume.is_online && ( {!volume.is_online && (
<span className="px-2 py-0.5 bg-app-box text-ink-faint text-xs rounded-md border border-app-line"> <span className="px-2 py-0.5 bg-app-box text-ink-faint text-xs rounded-md border border-app-line">