Release v1.0.1 - Bug fixes for logging and upload UI
All checks were successful
Build & Publish / build_publish (push) Successful in 1m29s

This commit is contained in:
2026-01-16 16:38:12 +01:00
parent cfbd9ff4d3
commit f403b6549d
4 changed files with 3 additions and 63 deletions

View File

@@ -5,7 +5,7 @@ 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
## [1.0.1] - 2026-01-16
### Fixed

2
Cargo.lock generated
View File

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

View File

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

View File

@@ -1,60 +0,0 @@
# 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).