From d7f847279848ae3b90769e7cda8907a1602c98a9 Mon Sep 17 00:00:00 2001
From: michaelschal <35957947-michaelschal@users.noreply.replit.com>
Date: Thu, 9 Oct 2025 11:54:15 +0000
Subject: [PATCH 1/2] Add a waiting modal for image uploads and display image
thumbnails in the media library
Implement a loading dialog for ongoing image uploads and display actual image previews within the media library component.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/AfZNdRv
---
.replit | 4 ----
client/src/components/media-upload.tsx | 8 ++++++--
client/src/pages/new-post.tsx | 21 ++++++++++++++++++++-
3 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/.replit b/.replit
index e1a1709..d2b4742 100644
--- a/.replit
+++ b/.replit
@@ -46,10 +46,6 @@ externalPort = 6000
localPort = 43245
externalPort = 3001
-[[ports]]
-localPort = 44509
-externalPort = 8000
-
[[ports]]
localPort = 46681
externalPort = 5173
diff --git a/client/src/components/media-upload.tsx b/client/src/components/media-upload.tsx
index 4f825ea..ea14abb 100644
--- a/client/src/components/media-upload.tsx
+++ b/client/src/components/media-upload.tsx
@@ -131,11 +131,15 @@ export default function MediaUpload() {
className="flex items-center gap-4 p-4 rounded-xl bg-muted/30 border border-border/50 cursor-pointer hover:bg-muted hover:shadow-md transition-all"
data-testid={`media-item-${media.id}`}
>
-
+
{media.type === "video" ? (
) : (
-
+

)}
diff --git a/client/src/pages/new-post.tsx b/client/src/pages/new-post.tsx
index 9b3b4db..3bd1486 100644
--- a/client/src/pages/new-post.tsx
+++ b/client/src/pages/new-post.tsx
@@ -1,7 +1,7 @@
import { useState, useCallback, useRef } from "react";
import { useQuery, useMutation } from "@tanstack/react-query";
import { useLocation } from "wouter";
-import { Send, Sparkles, Image as ImageIcon, Calendar, Upload, Camera, GripVertical } from "lucide-react";
+import { Send, Sparkles, Image as ImageIcon, Calendar, Upload, Camera, GripVertical, Loader2 } from "lucide-react";
import { useDropzone } from "react-dropzone";
import {
DndContext,
@@ -29,6 +29,7 @@ import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Checkbox } from "@/components/ui/checkbox";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import { Dialog, DialogContent } from "@/components/ui/dialog";
import { useToast } from "@/hooks/use-toast";
import { apiRequest, queryClient } from "@/lib/queryClient";
import type { SocialPage, Media } from "@shared/schema";
@@ -691,6 +692,24 @@ export default function NewPost() {
+
+
Date: Thu, 9 Oct 2025 11:54:29 +0000
Subject: [PATCH 2/2] Add a loading modal to the new post upload and image
previews in the media library
Add loading modal to new post upload functionality and implement image previews in the media library for better file identification.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/AfZNdRv