mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
Refactor release workflow by updating macOS build configurations and enhancing scan state display in LocationInspector component for improved clarity.
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -23,16 +23,13 @@ jobs:
|
||||
- host: self-hosted
|
||||
target: aarch64-apple-darwin
|
||||
platform: macos-aarch64
|
||||
- host: self-hosted
|
||||
- host: macos-15-intel
|
||||
target: x86_64-apple-darwin
|
||||
platform: macos-x86_64
|
||||
# Linux builds
|
||||
- host: ubuntu-22.04
|
||||
target: x86_64-unknown-linux-gnu
|
||||
platform: linux-x86_64
|
||||
- host: ubuntu-22.04
|
||||
target: aarch64-unknown-linux-gnu
|
||||
platform: linux-aarch64
|
||||
# Windows builds
|
||||
- host: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
|
||||
@@ -107,6 +107,14 @@ function OverviewTab({ location }: { location: LocationInfo }) {
|
||||
});
|
||||
};
|
||||
|
||||
const formatScanState = (scanState: any) => {
|
||||
if (scanState.Idle) return "Idle";
|
||||
if (scanState.Scanning) return `Scanning ${scanState.Scanning.progress}%`;
|
||||
if (scanState.Completed) return "Completed";
|
||||
if (scanState.Failed) return "Failed";
|
||||
return "Unknown";
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="no-scrollbar mask-fade-out flex flex-col space-y-5 overflow-x-hidden overflow-y-scroll pb-10">
|
||||
{/* Location icon */}
|
||||
@@ -139,7 +147,7 @@ function OverviewTab({ location }: { location: LocationInfo }) {
|
||||
label="Total Size"
|
||||
value={formatBytes(location.total_byte_size)}
|
||||
/>
|
||||
<InfoRow label="Scan State" value={location.scan_state} />
|
||||
<InfoRow label="Scan State" value={formatScanState(location.scan_state)} />
|
||||
{location.last_scan_at && (
|
||||
<InfoRow
|
||||
label="Last Scan"
|
||||
|
||||
Reference in New Issue
Block a user