feat: release v0.3.1 with bug fixes for upload workflow and logging improvements

This commit is contained in:
2026-01-16 16:33:41 +01:00
parent c7c5c5f135
commit cfbd9ff4d3
4 changed files with 77 additions and 2 deletions

View File

@@ -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

2
Cargo.lock generated
View File

@@ -273,7 +273,7 @@ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
[[package]]
name = "black_hole_share"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"actix-files",
"actix-web",

View File

@@ -1,6 +1,6 @@
[package]
name = "black_hole_share"
version = "0.3.0"
version = "0.3.1"
edition = "2024"
[dependencies]

60
RELEASE_NOTES_v0.3.1.md Normal file
View File

@@ -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).