feat(attributes-import): import product attributes from shopPRO API into personalization

extractPersonalization() now reads both 'attributes' and 'custom_fields' fields
from the shopPRO API response, joining non-empty values with newline separator.
Previously only custom_fields was imported, causing product attributes like
"Woreczek jutowy", "Kolor koperty", "Zakrętka" to be lost during sync.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 08:21:38 +02:00
parent 278f44b360
commit 6d0905d97a
7 changed files with 254 additions and 19 deletions

View File

@@ -2,22 +2,22 @@
## Project Reference
See: .paul/PROJECT.md (updated 2026-04-04)
See: .paul/PROJECT.md (updated 2026-04-07)
**Core value:** Sprzedawca moze obslugiwac zamowienia ze wszystkich kanalow sprzedazy i nadawac przesylki bez przelaczania sie miedzy platformami.
**Current focus:** Milestone v3.0 - Phase 70 complete, ready for next PLAN
**Current focus:** Milestone v3.0 - Phase 71 complete, ready for next PLAN
## Current Position
Milestone: v3.0 Mobile Responsive - In progress
Phase: 70 (Receipt Shipping Cost) — Complete
Plan: 70-01 unified
Phase: 71 (Attributes Import) — Complete
Plan: 71-01 unified
Status: Loop complete, ready for next PLAN
Last activity: 2026-04-06 — Unified .paul/phases/70-receipt-shipping-cost/70-01-PLAN.md
Last activity: 2026-04-07 — Unified .paul/phases/71-attributes-import/71-01-PLAN.md
Progress:
- Milestone: [#######...] ~72%
- Phase 70: [##########] 100%
- Milestone: [#######...] ~74%
- Phase 71: [##########] 100%
## Loop Position
@@ -29,12 +29,12 @@ PLAN --> APPLY --> UNIFY
## Session Continuity
Last session: 2026-04-06
Stopped at: Plan 70-01 unified
Last session: 2026-04-07
Stopped at: Plan 71-01 unified
Next action: Run /paul:plan for the next prioritized phase
Resume file: .paul/phases/70-receipt-shipping-cost/70-01-SUMMARY.md
Resume file: .paul/phases/71-attributes-import/71-01-SUMMARY.md
## Git State
Last commit: 0e7ee95
Last commit: 278f44b
Branch: main