gigafibre-fsm/apps/ops/src/config/device-icons.js
louispaulb 43d5ca2e4e feat: nested tasks, project wizard, n8n webhooks, inline task editing
Major dispatch/task system overhaul:
- Project templates with 3-step wizard (choose template → edit steps → publish)
- 4 built-in templates: phone service, fiber install, move, repair
- Nested task tree with recursive TaskNode component (parent_job hierarchy)
- n8n webhook integration (on_open_webhook, on_close_webhook per task)
- Inline task editing: status, priority, type, tech assignment, tags, delete
- Tech assignment + tags from ticket modal → jobs appear on dispatch timeline
- ERPNext custom fields: parent_job, on_open_webhook, on_close_webhook, step_order
- Refactored ClientDetailPage, ChatterPanel, DetailModal, dispatch store
- CSS consolidation, dead code cleanup, composable extraction
- Dashboard KPIs with dispatch integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 13:01:20 -04:00

20 lines
436 B
JavaScript

/**
* Maps equipment type strings to Material Design icon names.
*/
const DEVICE_ICON_MAP = {
ONT: 'settings_input_hdmi',
Modem: 'router',
Routeur: 'router',
'Décodeur TV': 'connected_tv',
'Téléphone IP': 'phone_in_talk',
Switch: 'hub',
Amplificateur: 'cell_tower',
'AP WiFi': 'wifi',
'Câble/Connecteur': 'cable',
}
export function deviceLucideIcon (type) {
return DEVICE_ICON_MAP[type] || 'devices_other'
}