diff --git a/client/src/components/ai-chat.tsx b/client/src/components/ai-chat.tsx
index 48427de..0ba4791 100644
--- a/client/src/components/ai-chat.tsx
+++ b/client/src/components/ai-chat.tsx
@@ -173,11 +173,21 @@ export default function AiChat() {
-
- {/* Sample events - in real app, filter scheduledPosts by date */}
- {day.isCurrentMonth && day.date.getDate() % 7 === 5 && (
-
-
-
-
14h - Promo
+ {/* Real scheduled posts for this date */}
+ {(() => {
+ if (!day.isCurrentMonth) return null;
+ const postsForDay = getPostsForDate(day.date);
+ if (postsForDay.length === 0) return null;
+
+ return (
+
+ {postsForDay.slice(0, 2).map((post, idx) => {
+ const time = post.scheduledAt ? new Date(post.scheduledAt).toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' }) : '';
+ const isPending = !post.publishedAt;
+ const isPublished = !!post.publishedAt;
+
+ return (
+
+ {time} - {post.postType || 'Post'}
+
+ );
+ })}
+ {postsForDay.length > 2 && (
+
+ +{postsForDay.length - 2} autre(s)
+
+ )}
-
- )}
-
- {day.isCurrentMonth && day.date.getDate() % 7 === 0 && (
-
- )}
+ );
+ })()}
))}
{/* Legend */}
diff --git a/client/src/components/media-upload.tsx b/client/src/components/media-upload.tsx
index 7c2bf09..f65dc9c 100644
--- a/client/src/components/media-upload.tsx
+++ b/client/src/components/media-upload.tsx
@@ -48,7 +48,7 @@ export default function MediaUpload() {
}
}, []);
- const { getRootProps, getInputProps, isDragActive } = useDropzone({
+ const { getRootProps, getInputProps, isDragActive, open } = useDropzone({
onDrop,
accept: {
"image/*": [".png", ".jpg", ".jpeg", ".gif"],
@@ -76,7 +76,10 @@ export default function MediaUpload() {
Ajoutez des photos ou vidéos, elles seront automatiquement recadrées pour Facebook et Instagram
-
+
Parcourir