From a0cfe6dedfd852e9a0e4045f31b469a6a5ddacc0 Mon Sep 17 00:00:00 2001 From: kirank55 Date: Tue, 17 Nov 2026 14:40:11 +0000 Subject: [PATCH 1/3] Remove Deploy website workflow Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/build.yml | 4 ++-- .github/workflows/pages.yml | 33 --------------------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8298e6..d7a4254 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,9 @@ name: build on: push: branches: [main] - paths-ignore: ["website/**", ".github/workflows/pages.yml"] + paths-ignore: ["website/**"] pull_request: - paths-ignore: ["website/**", ".github/workflows/pages.yml"] + paths-ignore: ["website/**"] permissions: contents: read diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml deleted file mode 100644 index 657cbe8..0000000 --- a/.github/workflows/pages.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Deploy website - -on: - push: - branches: [main] - paths: ["website/**", "scripts/get.ps1", ".github/workflows/pages.yml"] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: false - -jobs: - deploy: - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - uses: actions/checkout@v4 - - name: Publish the installer script at /install.ps1 - run: cp scripts/get.ps1 website/install.ps1 - - uses: actions/configure-pages@v5 - - uses: actions/upload-pages-artifact@v3 - with: - path: website - - id: deployment - uses: actions/deploy-pages@v4 From edf4e725ab61e6c6ae7a78d1c272fa1cbe04cd14 Mon Sep 17 00:00:00 2001 From: kirank55 Date: Wed, 18 Nov 2026 13:39:07 +0000 Subject: [PATCH 2/3] feat: Enhance folder management with suggestions and improved run tracking - Added functionality to suggest folders for compression based on user context. - Implemented detailed outcomes for folder scans, including reasons for skipped files. - Introduced a new dialog for adding folders with options for automatic compression. - Enhanced run tracking with detailed progress indicators and completion messages. - Updated UI components and styles for better user experience and responsiveness. - Improved documentation to reflect changes in folder management and compression processes. --- README.md | 2 +- docs/usage.md | 7 +- scripts/test-existing-folder.ps1 | 12 +- src/ZipXP.App/App.xaml | 11 - src/ZipXP.App/App.xaml.cs | 70 +++ src/ZipXP.App/Views/MainWindow.xaml | 201 +++---- src/ZipXP.App/Views/MainWindow.xaml.cs | 361 +++++++----- src/ZipXP.App/Views/PolicyWindow.xaml | 11 +- src/ZipXP.App/Web/DesktopBridge.cs | 133 ++++- src/ZipXP.Core/Persistence/Store.cs | 6 + src/ZipXP.Core/Services/Engine.cs | 15 +- src/ZipXP.UI/e2e/desktop.ts | 24 + src/ZipXP.UI/e2e/interactions.spec.ts | 40 +- src/ZipXP.UI/src/App.test.tsx | 413 +++++++++++++- src/ZipXP.UI/src/App.tsx | 744 ++++++++++++++++++++++--- src/ZipXP.UI/src/styles.css | 170 ++++++ src/ZipXP.UI/src/types.ts | 43 +- tests/ZipXP.Checks/Program.cs | 9 + website/docs.html | 8 +- website/index.html | 2 +- 20 files changed, 1889 insertions(+), 393 deletions(-) diff --git a/README.md b/README.md index c59c174..01ff235 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ dotnet run --project src/ZipXP.App/ZipXP.App.csproj If WebView2 is unavailable, pass `-- --native-ui` to the run command for the original WPF interface. -Then choose **Managed folders → Add folder…**, pick a test folder that holds copies of some documents, and read the estimate. To build a package you can install, see [Install and uninstall](docs/install.md). +On first launch ZipXP suggests folders that usually compress well, such as a code folder or Documents. Choose one (or **Choose a folder**) and read the estimate before deciding anything. To build a package you can install, see [Install and uninstall](docs/install.md). Storage insights shows which folders take the room and what was saved in each: diff --git a/docs/usage.md b/docs/usage.md index 548defa..608dc45 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -2,11 +2,12 @@ ## Getting started -1. Select **Add folder** and choose a folder on a local NTFS drive, such as `C:\zipxp-test`. ZipXP selects it in **Managed folders** and scans it without changing files. -2. Check the folder’s estimated savings. **Compress once** previews a one-time job. **Turn on auto-compression** asks you to confirm before ZipXP starts handling eligible existing, new, copied and changed files in the background. +1. On first launch, pick one of the suggested folders (a code folder or Documents usually saves the most) or select **Choose a folder** for any folder on a local NTFS drive. Avoid photos, videos, music, system folders and cloud-synced folders such as OneDrive; they are already compressed or are skipped. ZipXP then asks how to handle it: **Scan, then let me choose** (the default, which only reads the folder) or **Scan and keep compressed automatically**. Either way, ZipXP selects the folder in **Managed folders** and scans it first. +2. Check the folder’s estimated savings. While a job runs, the folder shows a progress card with files done, space saved so far, the current file and **Pause folder** (and **Stop** for one-time jobs). If it is waiting, it says why, such as on battery or outside your schedule. **Compress once** previews a one-time job, which is the recommended first step. After it finishes, ZipXP offers **Keep compressing automatically**. **Turn on auto-compression** asks you to confirm before ZipXP starts handling eligible existing, new, copied and changed files in the background. Compressed files use a little CPU when opened, which is usually unnoticeable on an SSD but can be slower on a hard disk. + If a scan finds no savings, ZipXP says why: **Already compact** (the files are already compressed, which is a good result), **Nothing compressible** (mostly media or archives), or **Mostly small or excluded files**. **Why some files were skipped** lists the counts. 3. In **Overview**, **Estimated savings** comes from the latest scans. **Space saved by ZipXP** counts the net disk space change ZipXP measured from its own compression and restores. **Folder size on disk** shows how much space the measured files currently use. 4. Use **Folder settings** to choose subfolders, exclusions and when ZipXP can work. Use **Browse files** to inspect a folder and **Activity** to track progress or retry failed work. -5. Close the window to keep ZipXP running in the tray. Enable **Start when I sign in** if you want ZipXP to start with Windows. **Pause all folders** or **More actions → Pause folder** pauses work after the current file. **Quit ZipXP** stops background work and keeps the queue for next time. +5. Close the window to keep ZipXP running in the tray. Its tooltip shows the space saved so far, and ZipXP shows a notification when background compression finishes and a short summary once a week. Enable **Start when I sign in** if you want ZipXP to start with Windows. **Pause all folders** or **More actions → Pause folder** pauses work after the current file. **Quit ZipXP** stops background work and keeps the queue for next time. ### Decompression and stopping management diff --git a/scripts/test-existing-folder.ps1 b/scripts/test-existing-folder.ps1 index 959aa36..51c5aa8 100644 --- a/scripts/test-existing-folder.ps1 +++ b/scripts/test-existing-folder.ps1 @@ -133,13 +133,9 @@ try { if ((Find-Id 'PauseButton').Current.Name -ne 'Resume all') { Invoke-Id 'PauseButton' } Wait-For { (Find-Id 'PauseButton').Current.Name -eq 'Resume all' } 'Paused before enabling the automatic policy' Invoke-Name 'Managed folders' - Invoke-Name 'Folder settings*' - Wait-For { Find-Dialog 'Folder settings' } 'Policy editor opened' - $editor = Find-Dialog 'Folder settings' - $enable = Find-Id 'EnableBox' $editor - $toggle = $enable.GetCurrentPattern([Windows.Automation.TogglePattern]::Pattern) - if ($toggle.Current.ToggleState -ne [Windows.Automation.ToggleState]::On) { $toggle.Toggle() } - Invoke-Name 'Save' $editor + Invoke-Id 'FolderAutomationButton' + Wait-For { Find-Dialog 'Turn on auto-compression' } 'Auto-compression confirmation opened from Managed folders' + Confirm-Yes (Find-Dialog 'Turn on auto-compression') Wait-For { $s = State; $s.Roots[0].Policy.Enabled -and @($s.Jobs | Where-Object { $_.State -eq 'Queued' }).Count -gt 0 } 'Default automatic policy saved and candidates queued' Helper -Arguments @('read', $data, (Join-Path $Evidence 'queued-state.json')) @@ -211,7 +207,7 @@ try { } Invoke-Name 'Managed folders' - Invoke-Name 'Restore original size*' + Invoke-Name 'Restore files*' Wait-For { Find-Dialog 'Restore original size' } 'Recursive decompression preview displayed' $preview = Find-Dialog 'Restore original size' $previewText = $preview.FindAll([Windows.Automation.TreeScope]::Descendants, [Windows.Automation.Condition]::TrueCondition) | ForEach-Object { $_.Current.Name } diff --git a/src/ZipXP.App/App.xaml b/src/ZipXP.App/App.xaml index 23b95ea..6d69ae1 100644 --- a/src/ZipXP.App/App.xaml +++ b/src/ZipXP.App/App.xaml @@ -29,17 +29,6 @@ - - - - - - - - - - - - - - - - - + + + + - - - - - - - + + + + + + - - - + + + + + + + + + + + + - - - - - - - + + + + + @@ -206,7 +180,6 @@ - @@ -216,11 +189,11 @@ - + - +