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 diff --git a/README.md b/README.md index c59c174..8651456 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ > **Status: pre-release (0.2).** ZipXP is under active development and the build is unsigned. Try it on a folder of copies first. See [Safety](docs/safety.md).

- ZipXP overview showing 74.1 MB saved, 54% less space used + ZipXP overview showing 48.2 MB saved by ZipXP

-

ZipXP after compressing a sample work folder (logs, CSV, JSON and source files; photos are skipped). The sample data is generated text, so your savings will differ.

+

ZipXP after compressing a generated test folder (repetitive text, logs, CSV and JSON, plus random data and a ZIP that are left alone). The data is synthetic and very compressible, so your savings will differ.

## Why ZipXP @@ -52,12 +52,12 @@ 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: +Storage insights lists what takes the room in each folder, with every file's original size, size now and space saved:

- ZipXP storage insights by folder + ZipXP storage insights listing per-file original size, size used now and space saved

Compression savings depend entirely on what is in the folder. One known accounting issue (see [validation](docs/validation.md)) can overstate how much space is freed after restoring some files. Text, source code, documents and logs shrink well; photos, video and archives are already compressed and barely change. ZipXP measures the real result per file and skips files that don't benefit. diff --git a/assets/screenshots/managed-folders.png b/assets/screenshots/managed-folders.png index 9b04423..9bd1a40 100644 Binary files a/assets/screenshots/managed-folders.png and b/assets/screenshots/managed-folders.png differ diff --git a/assets/screenshots/overview.png b/assets/screenshots/overview.png index 7ef68cf..d987e26 100644 Binary files a/assets/screenshots/overview.png and b/assets/screenshots/overview.png differ diff --git a/assets/screenshots/storage-insights.png b/assets/screenshots/storage-insights.png index df9bc3c..2727187 100644 Binary files a/assets/screenshots/storage-insights.png and b/assets/screenshots/storage-insights.png differ 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 @@ - + - +