Add machine name editing feature similar to Headplane:
- REST API endpoint POST /api/machines/{id}/rename with Headscale CLI integration
- Edit button next to each machine name in the machine list
- Modal dialog with real-time Magic DNS preview
- DNS-compatible name validation (lowercase, digits, hyphens only)
- Immediate UI updates after successful rename
- Loading states and error handling
Features:
- farmq-admin/app.py: New rename API endpoint with subprocess Headscale CLI calls
- farmq-admin/templates/machines/list.html: Edit buttons, rename modal, JavaScript functions
- Real-time validation and Magic DNS preview
- Bootstrap modal with form validation
- Error handling with toast notifications
Users can now rename machines and their Magic DNS addresses directly from the web interface,
matching the functionality available in Headplane.
Tested with machine ID 2: desktop-emjd1dc ↔ desktop-emjd1dc-test ✅
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| dashboard | ||
| machines | ||
| pharmacy | ||
| revenue | ||
| subscriptions | ||
| users | ||
| base.html | ||
| error.html | ||
| vm_list.html | ||
| vnc_console.html | ||
| vnc_proxy.html | ||
| vnc_redirect.html | ||
| vnc_simple.html | ||
| vnc_ssl_help.html | ||