Simplify image selection and update project description

Remove console logs and simplify image selection logic in the image editor. Update the project description in replit.md.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5c57cf12-84be-4da7-9921-4d0e283a6bd9
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/JgqpaNl
This commit is contained in:
michaelschal committed 2025-11-18 08:55:55 +00:00
1 parent 7ee9b74a95
commit 956c226373
2 files changed
+11 -50

No files matched your search

+1 -7
View File
@@ -114,8 +114,6 @@ export default function ImageEditor() {
// Generate Cloudinary transformation URL
useEffect(() => {
console.log("[ImageEditor] useEffect triggered, selectedMedia:", selectedMedia);
if (!selectedMedia) {
setPreviewUrl("");
return;
@@ -123,7 +121,6 @@ export default function ImageEditor() {
// Start with base image URL
let url = selectedMedia.originalUrl;
console.log("[ImageEditor] Generating preview URL from:", url);
// Extract Cloudinary parts
const cloudinaryPattern = /https:\/\/res\.cloudinary\.com\/([^\/]+)\/image\/upload\//;
@@ -300,10 +297,7 @@ export default function ImageEditor() {
className={`relative cursor-pointer rounded-lg overflow-hidden border-2 transition-all ${
selectedMedia?.id === media.id ? 'border-primary ring-2 ring-primary' : 'border-border hover:border-primary/50'
}`}
onClick={() => {
console.log("[ImageEditor] Thumbnail clicked, media:", media);
setSelectedMedia(media);
}}
onClick={() => setSelectedMedia(media)}
data-testid={`select-image-${media.id}`}
>
<img