Skip to content

Commit 9343d2d

Browse files
committed
chore: cleanup project and add development scripts
- Remove duplicate batch and PowerShell scripts - Add start-dev.bat for easy backend+frontend startup - Add run-tests.bat for easy test execution - Update test-rust-mingw.ps1 to run all tests - Remove nested ScaleIT_Bridge_Windows directory - Remove backup Cargo.toml files - Remove old test-results directory - Fix start-dev.bat to use PowerShell for frontend (better PATH inheritance) - Update README with new batch files and Setup-MinGW.ps1 info - Fix main.rs unused Result warning in start_server endpoint
1 parent 6c88138 commit 9343d2d

46 files changed

Lines changed: 844 additions & 3189 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€ŽBUILD.batβ€Ž

Lines changed: 0 additions & 136 deletions
This file was deleted.

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,82 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [3.2.0] - 2025-12-11
11+
12+
### Added
13+
- πŸ›‘ **Server Control API**:
14+
- POST `/api/shutdown` endpoint for controlled server shutdown
15+
- Disconnects all devices before stopping
16+
- Frontend "Stop" button now fully functional
17+
- Proper cleanup of resources on shutdown
18+
- POST `/api/start` endpoint for server startup (works when server is running, shows manual instructions when stopped)
19+
- Frontend status detection (Running/Stopped/Error) with automatic refresh
20+
- Real-time server health monitoring
21+
22+
- πŸ”§ **Device Configuration Management**:
23+
- Enhanced device configuration form with better validation
24+
- Case-insensitive command matching (readGross/readgross both work)
25+
- Automatic device ID normalization (lowercase)
26+
- Duplicate device ID detection before saving
27+
- Improved error messages and logging
28+
29+
- βœ… **Test Suite Improvements**:
30+
- All tests now pass 100%
31+
- Fixed property-based tests for weight readings
32+
- Improved integration test timeouts
33+
- Better floating-point comparison handling
34+
- Enhanced device name validation strategies
35+
36+
- 🌐 **Frontend Enhancements**:
37+
- Better error handling in API calls
38+
- Improved form validation with Zod
39+
- Connection type-specific field validation (TCP vs Serial)
40+
- Real-time form error display
41+
- Automatic form reset after successful save
42+
- **Diagnostics Panel Improvements**:
43+
- Real-time connection status detection (Online/Offline)
44+
- Actual device health monitoring (Responsive/Unresponsive)
45+
- Server status display (Running/Stopped/Unknown)
46+
- Automatic status refresh every 5 seconds
47+
- Removed hardcoded device status simulation
48+
49+
### Changed
50+
- ⬆️ Updated build script (`build-rust-mingw.ps1`):
51+
- Added `--release` flag support for optimized builds
52+
- Better error messages and troubleshooting tips
53+
- Improved build status reporting
54+
- Enhanced test result display
55+
56+
- πŸ”„ **Command Handling**:
57+
- Commands are now case-insensitive (readGross, readgross, READGROSS all work)
58+
- Improved command lookup in both Rinstrum and Dini Argeo adapters
59+
60+
- πŸ“ **Documentation**:
61+
- Updated README with latest build instructions
62+
- Added troubleshooting section for common issues
63+
- Enhanced API documentation
64+
65+
### Fixed
66+
- πŸ› Fixed form validation errors when switching between TCP and Serial connection types
67+
- πŸ› Fixed "Add Device" button not working due to validation issues
68+
- πŸ› Fixed serial_port validation triggering for TCP connections
69+
- πŸ› Fixed device ID case sensitivity issues
70+
- πŸ› Fixed CORS configuration for frontend-backend communication
71+
- πŸ› Fixed frontend port conflict (changed from 8080 to 5173)
72+
- πŸ› Fixed test timeouts in integration tests
73+
- πŸ› Fixed property test failures for weight reading constraints
74+
- πŸ› Fixed API error response parsing in frontend
75+
- πŸ› Fixed Diagnostics panel showing hardcoded "Offline" status
76+
- πŸ› Fixed server status not updating after shutdown
77+
- πŸ› Fixed "Stop" button not reflecting actual server state
78+
79+
### Performance
80+
- ⚑ Improved build script execution time
81+
- ⚑ Better error recovery in device connections
82+
- ⚑ Optimized form validation performance
83+
84+
---
85+
1086
## [3.1.0] - 2025-11-23
1187

1288
### Added

β€ŽINSTALL.batβ€Ž

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
Β (0)