- Implemented modular status automation system (statusHandlers.ts). - Added handlers for 'Published' (Active/Qty 1), 'Sold' (Active/Qty 0), and 'Drafted'. - Refactored onEdit triggers into a central Router pattern in OnEditHandler.ts. - Updated Product.ts to support explicit quantity setting (fixed 0 value bug). - Updated shopifyApi.ts to implement SetInventoryItemQuantity (using ignoreCompareQuantity). - Consolidated triggers into single onEditHandler. - Updated project documentation.
911 B
911 B
Instructions for Gemini
This file serves as a guide for future sessions working on this codebase.
- Read Memory First: Always read
MEMORY.mdat the start of a session to understand the project context and our working agreements. - Update Memory: If we make significant architectural decisions or change our working patterns, update
MEMORY.mdto reflect this. - Check Documentation:
README.md,docs/ARCHITECTURE.md, anddocs/SETUP.mdare the sources of truth for the system. Keep them updated as code changes. - Task Tracking: Use the
task.mdartifact to track progress on multi-step tasks. - Shopify API Reference: When developing features involving Shopify, ALWAYS check the Shopify API Reference for the specific version in use (check
shopifyApi.tsfor version). Do not guess field names or structure.