IAV-692/Add calendar endpoints, store, and UI for community manager posts
Calendar Feature Implementation for Community Manager
API Endpoints & Integration
- Create calendar endpoints for fetching calendar view, drafts, and scheduled posts
- Add filtered calendar view endpoint with date range and platform filters
- Integrate calendar endpoints with ideas endpoints for post management
State Management
- Implement calendar Zustand store with full CRUD operations
- Add error handling with user-friendly French error messages
- Include caption generation functionality with loading state
- Manage calendar events, drafts, and scheduling state
Calendar UI Components
- Refactor calendar section to use backend API instead of mock data
- Add loading overlay with ConditionalComponent pattern
- Implement snackbar notifications for success/error feedback
- Connect calendar view with real-time data fetching
Create Post Dialog
- Enhance create post dialog with API integration
- Add support for updating existing posts
- Implement post scheduling with publish functionality
- Add delete post functionality with confirmation
Type Definitions
- Add CalendarEventResponse and CalendarViewResponse types
- Define CalendarQueryRequest for filtered queries
- Add CreateIdeaRequest, UpdateIdeaRequest, and PublishIdeaRequest types
- Include GenerateCaptionRequest and GenerateCaptionResponse types
Code Quality
- Replace conditional rendering (&&) with ConditionalComponent
- Use consistent error message patterns in French
- Add proper TypeScript typing for all new interfaces
Closes IAV-692