-
Notifications
You must be signed in to change notification settings - Fork 19
ImageField Implementation in Right Sidebar #21
Copy link
Copy link
Closed
Labels
featureNew feature or requestNew feature or request
Description
Problem
Astro's image() fields appear as plain strings in JSON schema. Cannot detect without Zod parsing.
What's Needed
1. Image Detection
- Run Zod parser in parallel with JSON schema parser
- Extract image field metadata from Zod
- Merge into JSON schema results
- Add
isImage: booleanto SchemaField
2. ImageField Component
// src/components/frontmatter/fields/ImageField.tsx
- Image picker/browser UI
- Preview thumbnail
- Drag & drop support
- Path validation
- Integration with Astro assets directory3. Rust Integration
#[tauri::command]
pub async fn browse_assets_directory(
project_path: String,
collection_name: String,
) -> Result<Vec<String>, String>4. Project Settings
pathOverrides?: {
assetsDirectory?: string // Default: "src/assets"
}Dependencies
- This task must be complete first
- Understanding of Astro assets directory structure
- User testing for optimal UX
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request