fix: resolve critical app functionality issues

Complete implementation of fixes for queue processing, SSE connection display, service worker installation, and failing tests.

Key Changes:
- Fix queue processor startup with proper import and subscription mechanism
- Implement centralized API error handling middleware for proper HTTP status codes
- Enhance service worker configuration for PWA compliance and reliability
- Fix SSE connection display with reactive state management
- Add comprehensive test coverage and health check endpoints

Results:
- All 169 tests now passing (previously 16 failing)
- Queue items process immediately from pending to success/error states
- Real-time SSE connection status with auto-reconnection logic
- Proper PWA functionality with working service worker registration
- API endpoints return correct HTTP status codes (400/404/409) instead of 500 errors

This resolves the critical issues preventing core app functionality and enables proper production deployment.
This commit is contained in:
Giancarmine Salucci
2025-12-22 04:27:59 +01:00
parent b60f96a75e
commit 93aa25a31c
25 changed files with 3243 additions and 559 deletions

View File

@@ -5,7 +5,7 @@
"value": "SDRORLyWEsWWty2ZoVGdER",
"domain": ".instagram.com",
"path": "/",
"expires": 1800928744.690244,
"expires": 1800933293.429661,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
@@ -45,7 +45,7 @@
"value": "59661903731",
"domain": ".instagram.com",
"path": "/",
"expires": 1774144744.690335,
"expires": 1774149293.429759,
"httpOnly": false,
"secure": true,
"sameSite": "None"
@@ -55,7 +55,7 @@
"value": "1280x720",
"domain": ".instagram.com",
"path": "/",
"expires": 1766973545,
"expires": 1766978093,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
@@ -72,7 +72,7 @@
},
{
"name": "rur",
"value": "\"CLN\\05459661903731\\0541797904744:01fe5d62d8260e30673f33a5eea274e139f33ff8cabf7bdace78ebe98861a8c688ac4b3e\"",
"value": "\"CLN\\05459661903731\\0541797909293:01fec21208d7bb1bcde4cada157de63b919c1f798645c63d94be4ae15d085adaa251d0df\"",
"domain": ".instagram.com",
"path": "/",
"expires": -1,
@@ -87,19 +87,15 @@
"localStorage": [
{
"name": "chatd-deviceid",
"value": "c5497e54-6b46-47bb-a7bb-b9934cf13895"
"value": "3a35a211-b0b7-432f-94f7-3b13fcf991ef"
},
{
"name": "hb_timestamp",
"value": "1766366946059"
"value": "1766371254169"
},
{
"name": "IGSession",
"value": "kc8y0b:1766370543710"
},
{
"name": "mutex_polaris_banzai",
"value": "qkje7m:1766366947092"
"value": "kc8y0b:1766375094042"
},
{
"name": "pixel_fire_ts",
@@ -107,20 +103,16 @@
},
{
"name": "signal_flush_timestamp",
"value": "1766366946077"
"value": "1766371254188"
},
{
"name": "Session",
"value": "ubnyuz:1766368778710"
"value": "e36edi:1766373329041"
},
{
"name": "has_interop_upgraded",
"value": "{\"lastCheckedAt\":1766366944051,\"status\":false}"
},
{
"name": "mutex_banzai",
"value": "qkje7m:1766366947092"
},
{
"name": "banzai:last_storage_flush",
"value": "1766366944520.7"