From a28ea26706b1c3db1ff98a4812ce182a67c55518 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Sun, 14 Dec 2025 23:28:51 -0800 Subject: [PATCH] Refactor release workflow by updating macOS build configurations and enhancing scan state display in LocationInspector component for improved clarity. --- .github/workflows/release.yml | 5 +---- .../interface/src/inspectors/LocationInspector.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5657a48d..7cee36105 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/packages/interface/src/inspectors/LocationInspector.tsx b/packages/interface/src/inspectors/LocationInspector.tsx index ea0aa1243..ef06ace00 100644 --- a/packages/interface/src/inspectors/LocationInspector.tsx +++ b/packages/interface/src/inspectors/LocationInspector.tsx @@ -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 (
{/* Location icon */} @@ -139,7 +147,7 @@ function OverviewTab({ location }: { location: LocationInfo }) { label="Total Size" value={formatBytes(location.total_byte_size)} /> - + {location.last_scan_at && (