- ) : detectedVaults.length > 0 ? (
-
- ) : (
+ {/* Vault & Folder Row */}
+
+ {/* Vault Path */}
+
+
+ {vaultsLoading ? (
+
+ Detecting...
+
+ ) : detectedVaults.length > 0 ? (
+
+ ) : (
+
handleObsidianChange({ vaultPath: e.target.value })}
+ placeholder="/path/to/vault"
+ className="w-full px-3 py-2 bg-muted rounded-lg text-xs font-mono placeholder:text-muted-foreground/50 focus:outline-none focus:ring-1 focus:ring-primary/50"
+ />
+ )}
+
+
+ {/* Folder */}
+
+
handleObsidianChange({ vaultPath: e.target.value })}
- placeholder="/Users/you/Documents/MyVault"
+ value={obsidian.folder}
+ onChange={(e) => handleObsidianChange({ folder: e.target.value })}
+ placeholder="plannotator"
className="w-full px-3 py-2 bg-muted rounded-lg text-xs font-mono placeholder:text-muted-foreground/50 focus:outline-none focus:ring-1 focus:ring-primary/50"
/>
- )}
- {detectedVaults.length === 0 && !vaultsLoading && (
-
- No vaults detected. Enter path manually.
-
- )}
+
-
-
handleObsidianChange({ folder: e.target.value })}
- placeholder="plannotator"
- className="w-full px-3 py-2 bg-muted rounded-lg text-xs font-mono placeholder:text-muted-foreground/50 focus:outline-none focus:ring-1 focus:ring-primary/50"
- />
-
- Plans saved to: {obsidian.vaultPath || '...'}/{obsidian.folder || 'plannotator'}/
-
+ {/* Save path preview */}
+
+ Plans saved to: {obsidian.vaultPath || '...'}/{obsidian.folder || 'plannotator'}/
{/* Frontmatter Preview */}
@@ -274,7 +376,8 @@ tags: [plan, ...]
/>