From cfbd9ff4d37d03216f24581056b4208a26298664 Mon Sep 17 00:00:00 2001 From: icsboyx Date: Fri, 16 Jan 2026 16:33:41 +0100 Subject: [PATCH] feat: release v0.3.1 with bug fixes for upload workflow and logging improvements --- CHANGELOG.md | 15 +++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- RELEASE_NOTES_v0.3.1.md | 60 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 RELEASE_NOTES_v0.3.1.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 219aeb0..fcd2002 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.1] - 2026-01-16 + +### Fixed + +- Asset addition logging now displays immediately instead of being buffered (changed `print!` to `println!`). +- Upload functionality blocked after first successful upload - users can now only upload once per page session. +- Paste, drag & drop, and file selection disabled after successful upload to prevent confusion. +- JavaScript syntax errors in event listener registration that prevented copy/paste functionality. +- Removed nested and duplicated event listeners that caused unexpected behavior. + +### Changed + +- Added `uploadCompleted` flag to track upload state and prevent multiple uploads per session. +- Reset button now properly clears the `uploadCompleted` flag to allow new uploads. + ## [1.0.0] - 2026-01-14 ### Added diff --git a/Cargo.lock b/Cargo.lock index 97852a6..bc4be02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -273,7 +273,7 @@ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" [[package]] name = "black_hole_share" -version = "0.3.0" +version = "0.3.1" dependencies = [ "actix-files", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index b9a00fe..8137a4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "black_hole_share" -version = "0.3.0" +version = "0.3.1" edition = "2024" [dependencies] diff --git a/RELEASE_NOTES_v0.3.1.md b/RELEASE_NOTES_v0.3.1.md new file mode 100644 index 0000000..a73b7b7 --- /dev/null +++ b/RELEASE_NOTES_v0.3.1.md @@ -0,0 +1,60 @@ +# Black Hole Share v0.3.1 Release Notes + +**Release Date:** January 16, 2026 + +## Overview + +This is a minor bug fix release that resolves several issues with the web UI and server logging functionality. The release improves user experience by fixing upload workflow issues and ensuring proper log output display. + +## Bug Fixes + +### Server-Side Fixes + +- **Immediate Log Display**: Fixed asset addition logging that was being buffered and only appeared after the next log message. The server now properly displays "Adding asset" messages immediately using `println!` instead of `print!`. + +### Web UI Fixes + +- **Single Upload Per Session**: Resolved an issue where the upload interface remained active after a successful upload, which could confuse users. The page now locks after a successful upload, preventing additional uploads until the user clicks "Reset". + +- **Disabled Input After Upload**: Paste, drag & drop, and file selection are now properly disabled after a successful upload, preventing users from accidentally replacing their uploaded content. + +- **Copy/Paste Functionality**: Fixed critical JavaScript syntax errors that prevented the paste functionality from working: + - Removed nested and duplicated event listeners + - Fixed missing parenthesis in conditional statement + - Corrected event listener scope and structure + +- **Upload State Management**: Added proper state tracking with an `uploadCompleted` flag that prevents multiple uploads per page session and is correctly reset when the user clicks "Reset". + +## Technical Details + +### Modified Files + +- `src/data_mgt.rs`: Changed `print!` to `println!` in `add_asset()` method +- `data/html/index.html`: Fixed JavaScript event listener structure and added upload state management + +### Upgrade Notes + +No breaking changes. Simply pull the latest version and rebuild: + +```bash +git pull +cargo build --release +``` + +Or with Docker: + +```bash +docker-compose up --build +``` + +## Known Issues + +None at this time. + +## Contributors + +Thank you to all contributors who helped identify and fix these issues! + +--- + +For the full changelog, see [CHANGELOG.md](CHANGELOG.md).