Implement complete calendar creation functionality

Add full end-to-end calendar creation feature including:
- Create Calendar button in sidebar footer
- Modal form with name, description, and color picker (16 predefined colors in 4x4 grid)
- Form validation and error handling with loading states
- Backend API endpoint for calendar creation with authentication
- CalDAV MKCALENDAR protocol implementation with proper XML generation
- Real-time calendar list refresh after successful creation
- Responsive design for mobile and desktop

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-08-28 21:21:30 -04:00
parent f94d057f81
commit f9c87369e5
10 changed files with 748 additions and 7 deletions

View File

@@ -34,6 +34,19 @@ pub struct CalendarInfo {
pub color: String,
}
#[derive(Debug, Deserialize)]
pub struct CreateCalendarRequest {
pub name: String,
pub description: Option<String>,
pub color: Option<String>,
}
#[derive(Debug, Serialize)]
pub struct CreateCalendarResponse {
pub success: bool,
pub message: String,
}
// Error handling
#[derive(Debug)]
pub enum ApiError {