chore: bump version from 7.4.1 to 7.4.3 and improve countdown timer messaging during startup

This commit is contained in:
Admin9705
2025-05-25 10:33:26 -04:00
parent 446d6f8d7f
commit c409ed7edf
4 changed files with 47 additions and 12 deletions
+33
View File
@@ -40,4 +40,37 @@ this.checkLowUsageMode().then(() => {
**Tags:** ["bug_fix", "frontend", "low_usage_mode", "stats", "animations", "race_condition"]
## UI Improvement: Countdown Timer Startup Messaging (v7.4.2)
**Date:** 2025-05-25
**Issue:** When Docker container starts/restarts, countdown timers show "Error Loading" initially, which is confusing to users since it's not actually an error - the timer is just waiting for the first app cycle to complete so it can calculate the next cycle time.
**Root Cause:** The `displayLoadError()` function in `cycle-countdown.js` was showing "Error Loading" whenever the sleep.json file wasn't available, which happens normally during startup before the first cycle completes.
**Solution:**
1. Renamed `displayLoadError()` to `displayWaitingForCycle()` for clarity
2. Changed the message from "Error Loading" to "Waiting for Cycle"
3. Applied the same light blue color (#00c2ce) and refreshing-state class as used for normal refreshing
4. Updated comments and error handling to distinguish between startup waiting vs actual errors
5. Improved `updateTimerError()` to show proper error styling for actual connection issues
**Files Modified:**
- `frontend/static/js/cycle-countdown.js` - Improved startup messaging and error handling
- `version.txt` - Incremented to 7.4.3
**Code Changes:**
```javascript
// Before: Confusing error message during normal startup
timerValue.textContent = 'Error Loading';
timerValue.classList.add('error');
// After: Clear waiting message with proper styling
timerValue.textContent = 'Waiting for Cycle';
timerValue.classList.add('refreshing-state');
timerValue.style.color = '#00c2ce'; // Light blue like refreshing state
```
**User Experience:** Users now see "Waiting for Cycle" in light blue during startup instead of the alarming "Error Loading" message, making it clear that the system is working normally and just waiting for the first cycle to complete.
**Tags:** ["ui_improvement", "frontend", "countdown_timer", "startup", "user_experience"]
---
-1
View File
@@ -186,7 +186,6 @@ data_path = get_path('tally', 'sleep.json')
```
### Step 5: Post-Fix Verification
1. Update `version.txt`
2. Rebuild: `docker-compose down && COMPOSE_BAKE=true docker-compose up -d --build`
3. Check logs: `docker logs huntarr`
4. Verify path resolution in logs shows correct environment detection