dup remocal

This commit is contained in:
Desktop
2025-11-12 04:03:16 +05:00
parent c47d18c18d
commit cfddf3d8fd
3 changed files with 49 additions and 124 deletions

View File

@@ -147,7 +147,7 @@
- Queue number (1, 2, 3...)
- Label (Featured Image, In-Article Image 1, etc.)
- Content title
- Status: "Pending"
- Status: "Pending" (with TimeIcon)
- Progress: 0%
- Thumbnail placeholder: "No image"
@@ -272,5 +272,46 @@ Example:
---
---
## Stage 1 Cleanup: Removed Duplicate/Unused Code
**Date:** 2025-01-XX
**Status:** Completed
### Changes Made:
1. **Removed Image Generation Code from ProgressModal**
- Removed all code related to `generate_images_from_prompts` function
- **Kept** code for `generate_image_prompts` (image prompt generation) - this is different and still uses ProgressModal
- Removed step definitions for image generation from prompts
- Removed success message handling for image generation
- Removed subtitle and message formatting for image generation
2. **Removed ImageQueue from useProgressModal**
- Removed `ImageQueueItem` interface (now only in ImageQueueModal)
- Removed `imageQueue` state from useProgressModal hook
- Removed image queue extraction from task progress meta
- Removed image queue from return interface
- **Reason:** ImageQueueModal handles its own queue state, no need for duplicate
3. **Updated Changelog**
- Fixed emoji reference to use icon description instead
### Files Modified:
- ✅ `frontend/src/components/common/ProgressModal.tsx` (CLEANED - removed image generation code)
- ✅ `frontend/src/hooks/useProgressModal.ts` (CLEANED - removed imageQueue)
- ✅ `docs/IMAGE_GENERATION_CHANGELOG.md` (UPDATED)
### What Was Kept:
- ✅ **Image Prompt Generation** (`generate_image_prompts`) - Still uses ProgressModal (not touched)
-**ImageQueueModal** - Our new modal for image generation from prompts
### What Was Removed:
-**Image Generation from Prompts** code in ProgressModal (duplicate, not needed)
-**ImageQueue** state in useProgressModal (duplicate, not needed)
---
**End of Stage 1 Changelog**