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] 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}`} > -