Add device identification guide dialog for unregistered devices

Adds a "How to identify this device" button next to Register Device that
opens a dialog with personalized clues (vendor/type) and steps to track
down the physical device on the network.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-06-07 16:10:50 -04:00
co-authored by Claude Opus 4.8
parent 3d7c4a1323
commit f3d845ce37
3 changed files with 233 additions and 4 deletions
+16 -4
View File
@@ -9,6 +9,7 @@ import '../utils/oott_api.dart';
import '../widgets/status_badge.dart';
import 'device_actions.dart';
import 'device_event_history.dart';
import 'device_identification_guide.dart';
import '../theme/dimens.dart';
import '../utils/placeholders.dart';
@@ -241,10 +242,21 @@ class _DeviceActions extends StatelessWidget {
],
);
}
return FilledButton.icon(
onPressed: () => showRegisterDeviceDialog(context, device, onAction),
icon: const Icon(Icons.how_to_reg),
label: const Text('Register Device'),
return Wrap(
spacing: 12,
runSpacing: 12,
children: [
FilledButton.icon(
onPressed: () => showRegisterDeviceDialog(context, device, onAction),
icon: const Icon(Icons.how_to_reg),
label: const Text('Register Device'),
),
OutlinedButton.icon(
onPressed: () => showDeviceIdentificationDialog(context, device),
icon: const Icon(Icons.help_outline),
label: const Text('How to identify this device'),
),
],
);
}
}