Pulse/internal/models
rcourtman 118574e491 fix: expose linkedHostAgentId and commandsEnabled to frontend
Related to #952 and #971

Both issues were caused by the backend not sending required fields to the
frontend in the ToFrontend() converters:

Issue #971 (Agent required badge):
- NodeFrontend was missing LinkedHostAgentId field
- Frontend couldn't identify linked host agents, so it fell back to showing
  'Agent required' instead of 'Via agent'

Issue #952 (AI Commands toggle stuck):
- HostFrontend was missing CommandsEnabled field
- Frontend couldn't see the actual commandsEnabled state from the backend,
  causing the optimistic UI to never receive confirmation that the state
  had actually changed

Also added IsLegacy and LinkedNodeId to HostFrontend for completeness.
2026-01-02 20:04:20 +00:00
..
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
converters.go fix: expose linkedHostAgentId and commandsEnabled to frontend 2026-01-02 20:04:20 +00:00
converters_test.go fix: Robust OCI container detection with state persistence 2025-12-12 20:06:39 +00:00
models.go fix: use Instance field for backup/snapshot state sync instead of ID prefix 2026-01-01 23:22:38 +00:00
models_frontend.go fix: expose linkedHostAgentId and commandsEnabled to frontend 2026-01-02 20:04:20 +00:00
state_docker_test.go style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
state_host_test.go fix: use Instance field for backup/snapshot state sync instead of ID prefix 2026-01-01 23:22:38 +00:00
state_snapshot.go fix: deduplicate Ceph clusters by FSID before sending to frontend 2025-12-27 17:03:17 +00:00