From 32e258dee7179a58fc2d693a7d0e33a228be37b2 Mon Sep 17 00:00:00 2001 From: Alvin-Zilverstand <524715@vistacollege.nl> Date: Mon, 14 Sep 2026 16:24:01 +0200 Subject: [PATCH] feat: v0.1.1 update stability, storage, buffer, events, and branding - Bump all versions to 0.1.1 and harden the auto-updater so a newer release is only offered when an installer asset actually exists. - Add clip-folder relocation, an auto-prune toggle, cached free-disk checks, and a 512 MB RAM clip buffer that reduces I/O for manual, auto, and hotkey clips. - Move clip-related UI actions off the main thread, add optimistic toggling, and switch to event-driven library and screenshot refresh. - Add a modal clip viewer with a fallback path/reveal UI when the local MP4 cannot load, plus a bitrate preset dropdown, an auto-clip rule grid, and per-game enable/disable controls. - Replace placeholder icons with an SVG source and regenerate raster assets from a 1024x1024 render of the new ClipForge logo. - Update the implementation-status notes for v0.1.1. --- Cargo.lock | 2 +- Cargo.toml | 2 +- docs/implementation-status.md | 21 +- package.json | 4 +- src-tauri/Cargo.lock | 4 +- src-tauri/Cargo.toml | 2 +- src-tauri/icons/128x128.png | Bin 0 -> 7503 bytes src-tauri/icons/128x128@2x.png | Bin 0 -> 15004 bytes src-tauri/icons/32x32.png | Bin 0 -> 1676 bytes src-tauri/icons/64x64.png | Bin 0 -> 3444 bytes src-tauri/icons/Square107x107Logo.png | Bin 0 -> 6124 bytes src-tauri/icons/Square142x142Logo.png | Bin 0 -> 8320 bytes src-tauri/icons/Square150x150Logo.png | Bin 0 -> 8870 bytes src-tauri/icons/Square284x284Logo.png | Bin 0 -> 17154 bytes src-tauri/icons/Square30x30Logo.png | Bin 0 -> 1499 bytes src-tauri/icons/Square310x310Logo.png | Bin 0 -> 18686 bytes src-tauri/icons/Square44x44Logo.png | Bin 0 -> 2301 bytes src-tauri/icons/Square71x71Logo.png | Bin 0 -> 3938 bytes src-tauri/icons/Square89x89Logo.png | Bin 0 -> 5101 bytes src-tauri/icons/StoreLogo.png | Bin 0 -> 2699 bytes .../android/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../icons/android/mipmap-hdpi/ic_launcher.png | Bin 0 -> 2533 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 0 -> 9440 bytes .../android/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 2271 bytes .../icons/android/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2387 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 0 -> 6293 bytes .../android/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2196 bytes .../android/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 5323 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 0 -> 12635 bytes .../mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 4674 bytes .../android/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 8170 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 0 -> 19557 bytes .../mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 6914 bytes .../android/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 11192 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 0 -> 26756 bytes .../mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 9195 bytes .../android/values/ic_launcher_background.xml | 4 + src-tauri/icons/icon-1024.png | Bin 0 -> 64175 bytes src-tauri/icons/icon.icns | Bin 0 -> 165563 bytes src-tauri/icons/icon.ico | Bin 2686 -> 28624 bytes src-tauri/icons/icon.png | Bin 0 -> 32793 bytes src-tauri/icons/icon.svg | 12 + src-tauri/icons/ios/AppIcon-20x20@1x.png | Bin 0 -> 925 bytes src-tauri/icons/ios/AppIcon-20x20@2x-1.png | Bin 0 -> 2012 bytes src-tauri/icons/ios/AppIcon-20x20@2x.png | Bin 0 -> 2012 bytes src-tauri/icons/ios/AppIcon-20x20@3x.png | Bin 0 -> 3209 bytes src-tauri/icons/ios/AppIcon-29x29@1x.png | Bin 0 -> 1457 bytes src-tauri/icons/ios/AppIcon-29x29@2x-1.png | Bin 0 -> 3085 bytes src-tauri/icons/ios/AppIcon-29x29@2x.png | Bin 0 -> 3085 bytes src-tauri/icons/ios/AppIcon-29x29@3x.png | Bin 0 -> 4865 bytes src-tauri/icons/ios/AppIcon-40x40@1x.png | Bin 0 -> 2012 bytes src-tauri/icons/ios/AppIcon-40x40@2x-1.png | Bin 0 -> 4419 bytes src-tauri/icons/ios/AppIcon-40x40@2x.png | Bin 0 -> 4419 bytes src-tauri/icons/ios/AppIcon-40x40@3x.png | Bin 0 -> 6684 bytes src-tauri/icons/ios/AppIcon-512@2x.png | Bin 0 -> 51585 bytes src-tauri/icons/ios/AppIcon-60x60@2x.png | Bin 0 -> 6684 bytes src-tauri/icons/ios/AppIcon-60x60@3x.png | Bin 0 -> 10251 bytes src-tauri/icons/ios/AppIcon-76x76@1x.png | Bin 0 -> 4191 bytes src-tauri/icons/ios/AppIcon-76x76@2x.png | Bin 0 -> 8610 bytes src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png | Bin 0 -> 9455 bytes src-tauri/src/main.rs | 572 +++++++++++++++--- src-tauri/tauri.conf.json | 2 +- src/lib.rs | 1 + src/ram_buffer.rs | 325 ++++++++++ src/settings.rs | 7 + src/storage.rs | 12 + src/updater.rs | 89 ++- ui/src/main.ts | 486 ++++++++++++++- ui/styles.css | 144 ++++- 69 files changed, 1563 insertions(+), 131 deletions(-) create mode 100644 src-tauri/icons/128x128.png create mode 100644 src-tauri/icons/128x128@2x.png create mode 100644 src-tauri/icons/32x32.png create mode 100644 src-tauri/icons/64x64.png create mode 100644 src-tauri/icons/Square107x107Logo.png create mode 100644 src-tauri/icons/Square142x142Logo.png create mode 100644 src-tauri/icons/Square150x150Logo.png create mode 100644 src-tauri/icons/Square284x284Logo.png create mode 100644 src-tauri/icons/Square30x30Logo.png create mode 100644 src-tauri/icons/Square310x310Logo.png create mode 100644 src-tauri/icons/Square44x44Logo.png create mode 100644 src-tauri/icons/Square71x71Logo.png create mode 100644 src-tauri/icons/Square89x89Logo.png create mode 100644 src-tauri/icons/StoreLogo.png create mode 100644 src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 src-tauri/icons/android/mipmap-hdpi/ic_launcher.png create mode 100644 src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png create mode 100644 src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png create mode 100644 src-tauri/icons/android/mipmap-mdpi/ic_launcher.png create mode 100644 src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png create mode 100644 src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png create mode 100644 src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png create mode 100644 src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png create mode 100644 src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png create mode 100644 src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png create mode 100644 src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png create mode 100644 src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png create mode 100644 src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png create mode 100644 src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 src-tauri/icons/android/values/ic_launcher_background.xml create mode 100644 src-tauri/icons/icon-1024.png create mode 100644 src-tauri/icons/icon.icns create mode 100644 src-tauri/icons/icon.png create mode 100644 src-tauri/icons/icon.svg create mode 100644 src-tauri/icons/ios/AppIcon-20x20@1x.png create mode 100644 src-tauri/icons/ios/AppIcon-20x20@2x-1.png create mode 100644 src-tauri/icons/ios/AppIcon-20x20@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-20x20@3x.png create mode 100644 src-tauri/icons/ios/AppIcon-29x29@1x.png create mode 100644 src-tauri/icons/ios/AppIcon-29x29@2x-1.png create mode 100644 src-tauri/icons/ios/AppIcon-29x29@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-29x29@3x.png create mode 100644 src-tauri/icons/ios/AppIcon-40x40@1x.png create mode 100644 src-tauri/icons/ios/AppIcon-40x40@2x-1.png create mode 100644 src-tauri/icons/ios/AppIcon-40x40@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-40x40@3x.png create mode 100644 src-tauri/icons/ios/AppIcon-512@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-60x60@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-60x60@3x.png create mode 100644 src-tauri/icons/ios/AppIcon-76x76@1x.png create mode 100644 src-tauri/icons/ios/AppIcon-76x76@2x.png create mode 100644 src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png create mode 100644 src/ram_buffer.rs diff --git a/Cargo.lock b/Cargo.lock index 84bf89d..7e13f79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,7 +85,7 @@ dependencies = [ [[package]] name = "clipforge" -version = "0.1.0" +version = "0.1.1" dependencies = [ "dirs", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index f38e0a6..6806f25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipforge" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "Windows-first local game clipping app scaffold with replay buffer and event auto-clipping core." license = "MIT" diff --git a/docs/implementation-status.md b/docs/implementation-status.md index c4d9b31..667a716 100644 --- a/docs/implementation-status.md +++ b/docs/implementation-status.md @@ -59,6 +59,19 @@ - An opt-in "Minimize to tray" setting keeps ClipForge running in the system tray when the main window is closed; closing the window hides it, and the tray menu offers "Open ClipForge" to restore it or "Quit ClipForge" to exit fully. The toggle is under Settings > Tray and defaults to off. - Library search, event/upload filters, and grid/list switching are functional in the UI. - User-visible notices are shown for major actions and failures instead of relying only on console output. +- Versions are bumped to `0.1.1` across root `Cargo.toml`, `src-tauri/Cargo.toml`, `tauri.conf.json`, `package.json`, and the frontend `appVersion` constant. +- The updater now requires both a newer release and a published installer asset before offering a download; the UI always shows "Check for updates" and only shows a Download button when an installer is available. +- The clip folder can be changed at runtime via `set_clip_directory`; the library root and asset-protocol scope are rebuilt without restarting the app. +- An optional auto-prune toggle deletes the oldest non-manual clips once the saved library exceeds the configured storage limit. +- Free disk space and storage-limit status are cached for 10 seconds, reducing repeated FS calls from the background and UI polls. +- A RAM-backed clip buffer (512 MB cap) keeps recent segments in memory and merges them with disk segments when manual, auto, or hotkey clips are saved; this lowers disk I/O and lets clips span RAM-only material. +- Clip-related commands (`save_manual_clip`, `start_capture`, `stop_capture`, `trim_clip`, `upload_clip`, `take_screenshot`) now run as async Tauri commands so they execute off the main thread. +- The recording toggle flips optimistically in the UI and rolls back on error. +- The backend emits `clip-saved`, `clip-deleted`, `screenshots-changed`, and `storage-cleanup` events; the UI listens for them and refreshes clips and screenshots on demand. +- A modal viewer opens for clips and screenshots; when a clip's MP4 cannot load, the modal shows the file path and a Reveal-in-Explorer button instead of a broken `