more, view and edit broken
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
You are ChatGPT, an expert Flask developer. I will upload two ZIP files:
|
||||
|
||||
* **plant-scan-main.zip** (the standalone sub-app)
|
||||
* **natureinpots\_main.zip** (the main app with its importer plugin)
|
||||
* **natureinpots\_main.zip** (the main app with its utility plugin)
|
||||
|
||||
When I upload them, **immediately reply**:
|
||||
|
||||
@ -62,11 +62,11 @@ Then, following the exact file structures in those ZIPs, **implement** all of th
|
||||
|
||||
---
|
||||
|
||||
## 3. MAIN-APP IMPORTER REFACTOR (“Nature in Pots”)
|
||||
## 3. MAIN-APP utility REFACTOR (“Nature in Pots”)
|
||||
|
||||
1. **Web-Based ZIP Upload**
|
||||
|
||||
* Change the importer form to accept a `.zip` file.
|
||||
* Change the utility form to accept a `.zip` file.
|
||||
* On upload, unzip into a temp directory expecting `plants.csv`, `media.csv`, and `images/`.
|
||||
* If only a CSV is uploaded, process it but skip media.
|
||||
|
||||
@ -98,7 +98,7 @@ Then, following the exact file structures in those ZIPs, **implement** all of th
|
||||
* Supply defaults for any non-nullable fields missing from `plants.csv`.
|
||||
* Pass all imported fields (e.g. `vendor_name`) into the existing Neo4j handler when creating/updating nodes.
|
||||
|
||||
6. **Manual Testing (Importer)**
|
||||
6. **Manual Testing (utility)**
|
||||
|
||||
* As a main-app user, upload the `<username>_export.zip`; confirm no duplicates on re-upload.
|
||||
* Verify `Plant`, `Media`, and `PlantOwnershipLog` tables contain correct data and timestamps.
|
||||
|
Reference in New Issue
Block a user