Add manual AMS slot selection for prints (#76)

- ReprintModal: Dropdown to override auto-matched AMS slots
- AddToQueueModal: Collapsible filament mapping section
- Backend: Store ams_mapping in print queue, apply when print starts
- Color names in dropdowns (decoded from Bambu codes or derived from hex)
- Blue ring indicator for manually selected vs auto-matched slots
- Status indicators: green (match), yellow (type only), orange (not found)

Closes #76

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
maziggy
2026-01-12 08:37:47 +01:00
co-authored by Claude Opus 4.5
parent e2ace4f946
commit ad4e4fc3a2
15 changed files with 1065 additions and 454 deletions
+2
View File
@@ -796,6 +796,7 @@ export interface PrintQueueItem {
require_previous_success: boolean;
auto_off_after: boolean;
manual_start: boolean; // Requires manual trigger to start (staged)
ams_mapping: number[] | null; // AMS slot mapping for multi-color prints
status: 'pending' | 'printing' | 'completed' | 'failed' | 'skipped' | 'cancelled';
started_at: string | null;
completed_at: string | null;
@@ -814,6 +815,7 @@ export interface PrintQueueItemCreate {
require_previous_success?: boolean;
auto_off_after?: boolean;
manual_start?: boolean; // Requires manual trigger to start (staged)
ams_mapping?: number[] | null; // AMS slot mapping for multi-color prints
}
export interface PrintQueueItemUpdate {