slash-do 2.2.0 → 2.3.0
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.
|
@@ -306,6 +306,7 @@ Skip step 4 if steps 1-3 reveal the code is correct.
|
|
|
306
306
|
- Touch-specific interactions without pointer alternatives
|
|
307
307
|
- Fixed sizes that don't adapt to Mac window resizing
|
|
308
308
|
- Missing `Settings` scene for macOS apps
|
|
309
|
+
- **macOS window lifecycle (App Store Guideline 4):** Missing `NSApplicationDelegate` with `applicationShouldTerminateAfterLastWindowClosed` returning `false` (app quits on window close instead of staying in Dock). Missing `applicationShouldHandleReopen(_:hasVisibleWindows:)` (Dock click does nothing when window is closed). `WindowGroup` without stable `id:` parameter prevents programmatic reopening via `openWindow(id:)`. Missing "Show Main Window" menu command (Cmd+0) in Window menu. Missing `reopenWindow` closure bridge between AppDelegate and SwiftUI `openWindow`. Menu bar commands that don't ensure main window is visible before acting = **[HIGH]**
|
|
309
310
|
- watchOS complications not updated, widget timelines not refreshed
|
|
310
311
|
- visionOS: missing `.windowStyle(.volumetric)` or `.immersionStyle()` where appropriate
|
|
311
312
|
|
|
@@ -106,6 +106,13 @@
|
|
|
106
106
|
- `UserInterfaceIdiom` checks without handling `.mac` / `.pad` / `.vision` appropriately
|
|
107
107
|
- Touch-specific gestures (drag, long press) without pointer/hover alternatives for macOS
|
|
108
108
|
- Missing `#if targetEnvironment(macCatalyst)` handling when running iPad apps on Mac
|
|
109
|
+
- **macOS window lifecycle (App Store Guideline 4):**
|
|
110
|
+
- Missing `NSApplicationDelegate` with `applicationShouldTerminateAfterLastWindowClosed` returning `false` — app quits when the user closes the window instead of staying in the Dock
|
|
111
|
+
- Missing `applicationShouldHandleReopen(_:hasVisibleWindows:)` — clicking the Dock icon or Finder menu does nothing when the main window is closed
|
|
112
|
+
- `WindowGroup` without a stable `id:` parameter (e.g., `WindowGroup(id: "main")`) — prevents programmatic window reopening via `openWindow(id:)`
|
|
113
|
+
- Missing "Show Main Window" menu command (typically Cmd+0) in the Window menu — users have no way to recover the main window from the menu bar
|
|
114
|
+
- Missing `reopenWindow` closure bridge between `NSApplicationDelegate` and SwiftUI's `@Environment(\.openWindow)` — AppKit delegate can't create new SwiftUI windows
|
|
115
|
+
- Menu bar commands (File > New, Edit actions) that don't ensure the main window is visible before acting — commands fire but the user sees nothing
|
|
109
116
|
|
|
110
117
|
**Data persistence** _[applies when: code uses Core Data, SwiftData, or file storage]_
|
|
111
118
|
- `@FetchRequest` or `@Query` without sort descriptors — undefined ordering across launches
|
package/package.json
CHANGED
package/src/transformer.js
CHANGED
|
@@ -49,7 +49,7 @@ function inlineLibContent(body, libDir) {
|
|
|
49
49
|
function toYamlFrontmatter(fm) {
|
|
50
50
|
const lines = ['---'];
|
|
51
51
|
for (const [key, val] of Object.entries(fm)) {
|
|
52
|
-
lines.push(`${key}: ${val}`);
|
|
52
|
+
lines.push(`${key}: ${JSON.stringify(String(val))}`);
|
|
53
53
|
}
|
|
54
54
|
lines.push('---');
|
|
55
55
|
return lines.join('\n');
|