import { http, HttpResponse } from 'msw'

export const handlers = [
  http.get('/api/admin/settings', () => {
    return HttpResponse.json({
      blender_engine: 'cycles',
      blender_cycles_samples: 256,
      blender_eevee_samples: 64,
      thumbnail_format: 'jpg',
      stl_quality: 'low',
      blender_smooth_angle: 30,
      cycles_device: 'auto',
      blender_max_concurrent_renders: 3,
      render_stall_timeout_minutes: 120,
      render_backend: 'celery',
      product_thumbnail_priority: '["latest_render","cad_thumbnail"]',
      smtp_enabled: false,
      smtp_host: '',
      smtp_port: 587,
      smtp_user: '',
      smtp_password: '',
      smtp_from_address: '',
    })
  }),
  http.get('/api/billing/invoices', () => {
    return HttpResponse.json([])
  }),
  http.get('/api/notifications/config', () => {
    return HttpResponse.json([])
  }),
  http.get('/api/dashboard/config', () => {
    return HttpResponse.json([
      { widget_type: 'ProductionStats', position: { col: 0, row: 0, w: 2, h: 1 } },
      { widget_type: 'QueueStatus', position: { col: 2, row: 0, w: 1, h: 1 } },
    ])
  }),
]
