Commit c3c9fc4
feat(v1.5.7): Fresh sidebar toggle implementation with before-input-event API
## Overview
Complete reimplementation of sidebar toggle using Electron's before-input-event
API based on fresh research. Includes comprehensive codec verification logging
and platform requirements documentation.
## Technical Changes
### Sidebar Toggle (Fresh Implementation)
- Replaced failed v1.5.1-v1.5.6 approaches with before-input-event API
- Intercepts Ctrl+I/Cmd+I at main process level before reaching renderer/iframes
- Uses webContents.send() for IPC communication to overlay
- Maintains DOM event handler as fallback
- Works correctly with contextIsolation:true and sandbox:true
### Codec Verification Logging
- Added logCodecSupport() function in main.ts
- Logs platform info (Electron, Chrome, Node versions)
- Reports GPU feature status (video_decode, gpu_compositing)
- Shows expected codec support (AV1, HEVC, VP9, H.264)
- Displays GPU device information asynchronously
### Documentation
- docs/SIDEBAR-TOGGLE-DESIGN.md: Architecture and rationale
- docs/PLATFORM-REQUIREMENTS.md: User-facing requirements guide
- docs/CUSTOM-ELECTRON-BUILD.md: Custom Electron research
- docs/research/: Codec support, build notes, diag panel analysis
### Code Quality
- Fixed unused parameter declarations (underscore prefix)
- Removed unused imports (createContext, User)
- Build: 0 errors
- Lint: 0 errors (11 pre-existing warnings)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 915dbd4 commit c3c9fc4
File tree
13 files changed
+2146
-33
lines changed- docs
- research
- src
- electron
- overlay
13 files changed
+2146
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
5 | 51 | | |
6 | 52 | | |
7 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | | - | |
| 105 | + | |
107 | 106 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments