Skip to content

feat: Combined fixes and improvements#70

Closed
jesposito wants to merge 3 commits intoakaBilih:mainfrom
jesposito:feature/combined-fixes-and-improvements
Closed

feat: Combined fixes and improvements#70
jesposito wants to merge 3 commits intoakaBilih:mainfrom
jesposito:feature/combined-fixes-and-improvements

Conversation

@jesposito
Copy link
Copy Markdown

Summary

This PR includes multiple improvements and bug fixes to shrinkray.

Cherry-picked Features from gwlsn/shrinkray

  • Tabbed Layout: Optional tabbed UI with configuration options
  • UI Polish: Tabbed layout scrolling fixes and settings overlay improvements
  • Settings: Allow settings tab to scroll, show overlay only on settings tab

Bug Fix: Running Jobs Disappear on Page Refresh

  • Issue: Running jobs disappeared from Now Processing after page refresh
  • Root Cause: updateJobs() only indexed queue jobs in statusIndex, never running jobs
  • Fix: Also add running jobs to jobMap and statusIndex for status lookups
  • Testing: Added regression test to prevent this bug from reoccurring

Code Audit Fixes

  • HTTP Handling: Added 30s timeouts and response body draining for ntfy/pushover
  • Error Handling: Fixed ignored JSON encode error in writeJSON()
  • Logging: Replaced fmt.Printf with log.Printf for consistent logging
  • Dead Code: Removed unused stateCookieSameSite function
  • Typos: Fixed VAAAPIHealthCheck to VAAPIHealthCheck

Testing

  • Added E2E regression test for running jobs refresh bug
  • Manual testing: start transcode, refresh page, verify running jobs still appear

Breaking Changes

None

akaBilih and others added 3 commits January 7, 2026 20:12
…figuration-options

Add optional tabbed layout
This PR includes multiple improvements and bug fixes:

## Cherry-picked Features from gwlsn/shrinkray:
- Add optional tabbed layout with configuration options
- Tabbed layout UI fixes (scrolling, settings overlay)
- Allow settings tab to scroll in tabs layout
- Show settings overlay only on settings tab

## Code Audit Fixes (High/Medium Severity):
- handler.go: Handle ignored JSON encode error in writeJSON()
- oidc/provider.go: Remove dead code (unused stateCookieSameSite func)
- hwaccel.go: Fix typo VAAAPIHealthCheck → VAAPIHealthCheck
- queue.go: Replace fmt.Printf with log.Printf for consistent logging
- ntfy.go: Add HTTP client with 30s timeout, drain response body
- pushover.go: Add HTTP client with 30s timeout, drain response body

## Bug Fix: Running Jobs Disappear on Page Refresh
- Root cause: updateJobs() only added queue jobs to statusIndex, not running jobs
- Fix: Also index running jobs for status lookups in updateActivePanel()
- Includes regression test to prevent this bug from reoccurring

## Testing
- Added E2E regression test for running jobs refresh bug
- All changes verified with code analysis and LSP diagnostics
@jesposito
Copy link
Copy Markdown
Author

Closing - PR was accidentally created against the wrong repo. Created correctly at jesposito#51

@jesposito jesposito closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants