@bobfrankston/msger 0.1.90 → 0.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TODO.md +54 -10
- package/msger-native/bin/msgernative.exe +0 -0
- package/package.json +1 -1
package/TODO.md
CHANGED
|
@@ -1,39 +1,83 @@
|
|
|
1
1
|
# msger TODO List
|
|
2
2
|
|
|
3
|
-
## Recent Session (2025-11-
|
|
3
|
+
## Recent Session (2025-11-12) - Hash Option, F11 Fix, Button Response, Debug Mode
|
|
4
4
|
|
|
5
|
-
**Status:** ✅
|
|
5
|
+
**Status:** ✅ COMPLETED - Version 0.1.90
|
|
6
6
|
|
|
7
7
|
### What Was Implemented:
|
|
8
8
|
|
|
9
9
|
1. **Hash Fragment Option (`-hash`)**
|
|
10
10
|
- Appends hash fragment to URL (e.g., `-url "https://example.com" -hash section1`)
|
|
11
11
|
- Automatically strips leading # to avoid ##
|
|
12
|
-
- Requires `-url` to be set
|
|
12
|
+
- Requires `-url` to be set (throws error if hash without url)
|
|
13
13
|
- Supported in JSON config files
|
|
14
|
+
- Implementation: shower.ts:204-212
|
|
14
15
|
- **Status:** ✅ Working
|
|
15
16
|
|
|
16
|
-
2. **
|
|
17
|
+
2. **F11 Fullscreen Fix**
|
|
18
|
+
- **Issue:** JavaScript was intercepting F11 key and using HTML5 fullscreen instead of native
|
|
19
|
+
- **Fix:** Changed JavaScript F11 handler to use IPC `toggleFullscreen` action
|
|
20
|
+
- Now uses Rust's native window fullscreen (same as Rust's F11 handler)
|
|
21
|
+
- Implementation: template.html:329-348
|
|
22
|
+
- **Status:** ✅ Working
|
|
23
|
+
|
|
24
|
+
3. **Button Response Optimization**
|
|
25
|
+
- **Issue:** OK button sometimes took long time to exit window
|
|
26
|
+
- **Fix:** Optimized event loop to check for button result first in MainEventsCleared
|
|
27
|
+
- Window now exits immediately when button clicked
|
|
28
|
+
- Implementation: main.rs:704-715
|
|
29
|
+
- **Status:** ✅ Working - instant response
|
|
30
|
+
|
|
31
|
+
4. **Debug Mode (MSGER_DEBUG)**
|
|
32
|
+
- Added optional debug logging controlled by environment variable
|
|
33
|
+
- Usage: `$env:MSGER_DEBUG=1` then run msger
|
|
34
|
+
- Shows: startup, keyboard events, IPC messages, button clicks, exit flow
|
|
35
|
+
- Zero performance impact when disabled (compile-time checks)
|
|
36
|
+
- Implementation: main.rs:257-277, 612-635, 444-534
|
|
37
|
+
- **Status:** ✅ Working
|
|
38
|
+
|
|
39
|
+
5. **Build Process Improvements**
|
|
17
40
|
- Commented out Raspberry Pi build warning (build.ts:178-185)
|
|
18
41
|
- Added automatic PATH cleaning for Windows builds to fix Git link.exe vs VS linker conflict
|
|
19
42
|
- PATH fix function removes Git's /usr/bin from PATH (build.ts:34-43)
|
|
20
43
|
- **Status:** ✅ Working
|
|
21
44
|
|
|
22
|
-
|
|
45
|
+
6. **Context Menu (Right-Click)**
|
|
23
46
|
- Attempted to add right-click context menu with Fullscreen toggle
|
|
24
47
|
- Code implemented in template.html and msger-api.js
|
|
25
|
-
- **Issue:**
|
|
48
|
+
- **Issue:** Menu conflicts with Windows system menu, simulated F12 doesn't work
|
|
26
49
|
- **Decision:** Commented out for now, F11/F12 keyboard shortcuts work fine
|
|
27
50
|
- **Status:** ⏸️ Code exists but commented out in template.html and msger-api.js
|
|
28
|
-
- **TODO:** Revisit context menu implementation - possibly add more useful items or improve UX
|
|
51
|
+
- **TODO:** Revisit context menu implementation - possibly add more useful items or improve UX
|
|
52
|
+
|
|
53
|
+
7. **Project Cleanup**
|
|
54
|
+
- Moved all test HTML files to `tests/` directory
|
|
55
|
+
- Files: test-msger-api.html, test-msger-functions.html, test-data-persistence.html, test-ipc-reach.html, msger-storage-demo.html, test-htmlfrom.html
|
|
29
56
|
|
|
30
57
|
### Files Modified:
|
|
31
|
-
- `
|
|
58
|
+
- `package.json` - Version bumped to 0.1.90
|
|
59
|
+
- `shower.ts` - Added hash field to MessageBoxOptions, hash append logic
|
|
32
60
|
- `clihandler.ts` - Added -hash CLI parsing, save/load support
|
|
33
|
-
- `README.md` - Documented -hash option
|
|
61
|
+
- `README.md` - Documented -hash option, removed context menu mentions
|
|
34
62
|
- `msger-native/build.ts` - Pi warning removed, PATH fix added
|
|
35
|
-
- `msger-native/src/
|
|
63
|
+
- `msger-native/src/main.rs` - Debug mode, F11 handling, button response optimization
|
|
64
|
+
- `msger-native/src/template.html` - F11 IPC fix, context menu code (commented out)
|
|
36
65
|
- `msger-native/src/msger-api.js` - Context menu code (commented out)
|
|
66
|
+
- Test files moved to `tests/` directory
|
|
67
|
+
|
|
68
|
+
### Testing:
|
|
69
|
+
```bash
|
|
70
|
+
# Hash option
|
|
71
|
+
node . -url "https://example.com" -hash section1
|
|
72
|
+
|
|
73
|
+
# Debug mode
|
|
74
|
+
$env:MSGER_DEBUG=1
|
|
75
|
+
node . "Test message"
|
|
76
|
+
|
|
77
|
+
# F11 fullscreen toggle - works instantly
|
|
78
|
+
# F12 DevTools - works
|
|
79
|
+
# OK button - instant response
|
|
80
|
+
```
|
|
37
81
|
|
|
38
82
|
### Future Work:
|
|
39
83
|
- Consider more useful context menu items (Copy, Paste, etc.)
|
|
Binary file
|