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
// Uncomment if you need to debug render performance:
if (import.meta.env.DEV) {
setTimeout(() => {
import("react-scan").then(({ scan }) => {
scan({ enabled: true, log: false });
});
}, 2000);
// setTimeout(() => {
// import("react-scan").then(({ scan }) => {
// scan({ enabled: true, log: false });
// });
// }, 2000);
}
// Initialize Tauri native context menu handler

View File

@ -496,7 +496,7 @@ function AddStorageDialog(props: {
// Step 1: Track the volume
const trackResult = await trackVolume.mutateAsync({
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
@ -507,7 +507,7 @@ function AddStorageDialog(props: {
path: volume.mount_point || "/",
},
},
name: volume.name,
name: volume.display_name || volume.name,
mode: "Deep",
job_policies: {},
};
@ -856,7 +856,7 @@ function AddStorageDialog(props: {
/>
<div className="flex-1 min-w-0">
<div className="text-sm font-medium text-ink truncate">
{volume.name}
{volume.display_name || volume.name}
</div>
<div className="text-xs text-ink-faint">
{volume.mount_point} {" "}

View File

@ -59,7 +59,7 @@ export function VolumesGroup({
item_type: {
Volume: {
volume_id: volume.id,
name: volume.name,
name: volume.display_name || volume.name,
},
},
} 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 gap-2 min-w-0">
<span className="font-semibold text-ink truncate text-base">
{volume.name}
{volume.display_name || volume.name}
</span>
{!volume.is_online && (
<span className="px-2 py-0.5 bg-app-box text-ink-faint text-xs rounded-md border border-app-line">