mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-14 08:10:26 +00:00
7f4db466be
Issue #1621: saving only "intentionally offline" left the SQLite auto_remediation_policy_json column NULL, and the read path only normalized the policy inside the non-NULL branch, so the API served "capabilityNames": null. The section's dirty-state memo spread that value during render and crashed the expanded row into the route error boundary. Normalize the policy unconditionally after the scan so the wire always carries [], type capabilityNames as nullable in the TS API surface, and guard the spread in the component. Issue #1622: the inline table-row presentation gated the entire operator-overrides section on the resource exposing an auto-authorizable capability, so stopped Docker containers (which only expose start, never auto-authorized) lost intentionally-offline and never-auto-remediate exactly when they matter most. Render the section whenever the resource has an id; the automatic-actions block already self-gates on eligible capabilities. Also add min-w-0 to the section's flex text columns and overflow-x-clip to the inline row content box so the long never-auto-remediate copy wraps instead of escaping the row border below the lg breakpoint. Regression coverage: issue-named Go test for the NULL-column read path and a render test feeding the section the real pre-fix wire payload with capabilityNames: null. Fixes #1621 Fixes #1622 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>