feat: add troubleshooting side panel and advanced queue controls

- Implemented a global toggle to enable/disable background queue processing.
- Added a Side Panel (Sidebar.html) to view pending edits.
- Added per-item controls: 'Delete' to remove from queue, 'Push' to force update.
- Updated 'onEditQueue.ts' with robust error handling for batch processing.
- Updated documentation (README, ARCHITECTURE) to reflect new features.
- Fixed 'clasp' deployment issues by cleaning up manifest management.
This commit is contained in:
2025-12-24 21:14:19 -07:00
parent ca0ba1dc94
commit 418123d742
13 changed files with 459 additions and 5 deletions

View File

@ -66,3 +66,17 @@ Triggers are managed programmatically via `src/triggers.ts`. Running `reinstallT
- `onEdit` -> `matchProductToShopifyOnEditHandler`
- `onEdit` -> `onEditQueue`
- `TimeBased (1 min)` -> `processBatchedEdits`
### 5. Troubleshooting Panel (`src/sidebar.ts`, `src/Sidebar.html`)
A dedicated side panel provides visibility into the background queue system.
- **Backend (`src/sidebar.ts`)**:
- `getQueueStatus()`: Returns the current state of the queue and global toggle.
- `setQueueEnabled()`: Toggles the global `queueEnabled` script property.
- `deleteEdit()` / `pushEdit()`: Manages specific items in the queue with safety checks.
- **Frontend (`src/Sidebar.html`)**:
- Displays pending edits with timestamps.
- Provides controls to globally enable/disable processing.
- Allows manual intervention (delete/push) for individual items.