mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 07:08:12 +02:00
docs: revise task.md to address screenshot update caching instead of popup obscuration.
This commit is contained in:
1 parent
ed7f23d657
commit
4590273801
4 files changed
+134
-12
No files matched your search
@@ -1,23 +1,21 @@
|
||||
# Task: Remove Obscuring Windows from Product Screenshots
|
||||
# Task: Fix Screenshot Update Issue
|
||||
|
||||
## Context
|
||||
|
||||
The user has reported that screenshots in the "suivi produits" (product tracking) section still contain windows (popups, overlays) that obscure the content. A specific example provided shows a "Stock Inconnu" and "Calendrier de l'Avent" popup on a B&M website.
|
||||
The user reports that in the "Suivi prix" (Tracking) section, triggering an update ("Mise à jour") does not update the screenshot. This has been identified as a caching issue due to static filenames.
|
||||
|
||||
## Current Focus
|
||||
|
||||
Investigating the scraping and screenshot logic to handle these popups.
|
||||
Implementing logic to generate unique timestamped filenames for screenshots to bypass browser caching and ensure the latest image is displayed.
|
||||
|
||||
## Master Plan
|
||||
|
||||
- [x] Explore codebase to locate scraping and screenshot logic <!-- id: 0 -->
|
||||
- [x] Identify specific handling for B&M or generic popup closing <!-- id: 1 -->
|
||||
- [x] Implement fix to close popups before screenshot <!-- id: 2 -->
|
||||
- [/] Verify fix (Requires App Rebuild) <!-- id: 3 -->
|
||||
- [x] Modify `tracking_scraper_service.py` to use timestamped filenames for tracking screenshots <!-- id: 0 -->
|
||||
- [x] Verify that `item_service.py` correctly picks up the new files <!-- id: 1 -->
|
||||
- [x] Create verification script `verify_screenshot_update.py` <!-- id: 2 -->
|
||||
- [x] Run verification and confirm fix <!-- id: 3 -->
|
||||
|
||||
## Progress Log
|
||||
|
||||
- Initialized task.md
|
||||
- Created implementation plan to expand popup selectors.
|
||||
- Updated `browserless_service.py` with expanded selectors and retry logic.
|
||||
- Attempted local verification but failed due to environment restrictions.
|
||||
- Identified the issue: `ScraperService` overwrites `item_{id}.png`.
|
||||
- Created implementation plan.
|
||||
Reference in new issue
Block a user