Refactor release workflow by updating macOS build configurations and enhancing scan state display in LocationInspector component for improved clarity.

This commit is contained in:
Jamie Pine
2025-12-14 23:28:51 -08:00
parent a5413d9538
commit a28ea26706
2 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -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"