feat(service-worker): complete service worker registration fix implementation

 All 169 tests passing
 Service worker registration working correctly
 Push notifications enabled
 Test environment properly isolated

Final implementation includes:
- Fixed vite.config.ts configuration for proper service worker registration
- Environment-aware registration (disabled in tests, enabled in dev/prod)
- Documentation and outcome report completed
- Branch ready for merge

Refs: docs/plans/FixServiceWorkerDevRegistrationIssues.md
This commit is contained in:
Giancarmine Salucci
2025-12-22 04:59:36 +01:00
parent 93aa25a31c
commit 50289d7ae2
10 changed files with 762 additions and 3499 deletions

View File

@@ -5,7 +5,7 @@
"value": "SDRORLyWEsWWty2ZoVGdER",
"domain": ".instagram.com",
"path": "/",
"expires": 1800933293.429661,
"expires": 1800935502.281271,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
@@ -45,7 +45,7 @@
"value": "59661903731",
"domain": ".instagram.com",
"path": "/",
"expires": 1774149293.429759,
"expires": 1774151502.281377,
"httpOnly": false,
"secure": true,
"sameSite": "None"
@@ -55,24 +55,24 @@
"value": "1280x720",
"domain": ".instagram.com",
"path": "/",
"expires": 1766978093,
"expires": 1766980302,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
},
{
"name": "sessionid",
"value": "59661903731%3AbekaIlo4nn7x2n%3A29%3AAYiOptViRm0BBaSr0oiyyATkN-P9J5lXEAaMjb44dg",
"value": "59661903731%3AbekaIlo4nn7x2n%3A29%3AAYhv1LJUsfRtBSH-WmDLVrxiM7T9UotIOM3XY3iHKQ",
"domain": ".instagram.com",
"path": "/",
"expires": 1797862875.361196,
"expires": 1797910987.674116,
"httpOnly": true,
"secure": true,
"sameSite": "Lax"
},
{
"name": "rur",
"value": "\"CLN\\05459661903731\\0541797909293:01fec21208d7bb1bcde4cada157de63b919c1f798645c63d94be4ae15d085adaa251d0df\"",
"value": "\"CLN\\05459661903731\\0541797911502:01fe38d640e1e65ff57f8cb338b26d9ad276f995f2219f37928cf62a120e539a0970aee9\"",
"domain": ".instagram.com",
"path": "/",
"expires": -1,
@@ -87,15 +87,15 @@
"localStorage": [
{
"name": "chatd-deviceid",
"value": "3a35a211-b0b7-432f-94f7-3b13fcf991ef"
"value": "b5c8e400-9eff-4ae0-879e-558a387dc609"
},
{
"name": "hb_timestamp",
"value": "1766371254169"
"value": "1766374987878"
},
{
"name": "IGSession",
"value": "kc8y0b:1766375094042"
"value": "kc8y0b:1766377302597"
},
{
"name": "pixel_fire_ts",
@@ -103,11 +103,11 @@
},
{
"name": "signal_flush_timestamp",
"value": "1766371254188"
"value": "1766374987897"
},
{
"name": "Session",
"value": "e36edi:1766373329041"
"value": "jdpnmy:1766375537597"
},
{
"name": "has_interop_upgraded",