Skip to content

feat(logs): right-click a deployment's pod → View Logs (HELM-102) - #59

Merged
tyrelchambers merged 2 commits into
masterfrom
feature/helm-102-pod-view-logs
Jul 17, 2026
Merged

feat(logs): right-click a deployment's pod → View Logs (HELM-102)#59
tyrelchambers merged 2 commits into
masterfrom
feature/helm-102-pod-view-logs

Conversation

@tyrelchambers

Copy link
Copy Markdown
Owner

HELM-102

From the Deployment panel, right-click one of a deployment's pods and choose View Logs to jump straight to the Logs panel with that pod's logs already streaming — no manual navigation or pod selection.

What changed

  • resourceNav.goToPodLogs(navigate, pod) — reusable helper that navigates to /logs and sets a { route: "/logs", kind: "pod", key: "ns/name" } focus request. Uses namespace/name (not uid) so the Logs sidebar — which keys its rows by ns/name — can resolve it. (/logs isn't in NAV_META, so goToResource can't do this.)
  • RelatedResources — pod rows (the pod list shown in an expanded Deployment/StatefulSet/DaemonSet/Service/Ingress/Job detail) now have a right-click context menu with View Logs. Non-pod and missing rows are unchanged.
  • LogsPanel — consumes an incoming pod focus request: switches to the Pods kind, clears any sidebar search, and auto-selects + streams the target pod once the Pods watch delivers its row.

Acceptance criteria

  • Pod context menu in the (Deployment) Related-resources list has a View Logs item
  • Selecting it routes to /logs and auto-selects the exact pod
  • Logs begin streaming without further clicks; namespace context preserved
  • Multi-container pods work (defaults to all containers, container switch still available)

Verification

  • pnpm --filter web typecheck
  • pnpm --filter web test ✅ (1724 tests; +2 new for goToPodLogs)
  • pnpm --filter web build

🤖 Generated with Claude Code

tyrelchambers and others added 2 commits July 17, 2026 15:16
Add a "View Logs" item to the right-click menu on pod rows in the Related
resources list (shown in the expanded Deployment/StatefulSet/DaemonSet/
Service/Ingress/Job detail). It routes to /logs and hands the target pod to
the Logs panel via the existing focusRequest mechanism, which switches to the
Pods kind, auto-selects the pod, and starts streaming with no further clicks.
Namespace is preserved; container defaults to all and stays switchable.

- resourceNav: goToPodLogs() helper (navigate /logs + set a ns/name-keyed
  {kind:pod} focusRequest — ns/name, not uid, so the Logs sidebar can match it)
- RelatedResources: wrap pod rows in a context menu with View Logs
- LogsPanel: consume the incoming pod focusRequest and select/stream the pod

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Generalize the pod "View Logs" affordance to workloads. A deployment row's
context menu gets a "View Logs" item that opens the Logs panel streaming that
deployment (all its pods, by label selector).

- resourceNav: goToPodLogs → goToLogs({ kind, namespace, name }), where kind is
  pod | deployment | statefulset | daemonset
- LogsPanel: consumer maps the focusRequest kind → sidebar LogKind, so it opens
  under the right tab (Pods for a pod, Deploy for a deployment) and streams
- DeploymentRow: add "View Logs" to the row menu
- RelatedResources: pod rows now call goToLogs({ kind: "pod", ... })

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tyrelchambers
tyrelchambers marked this pull request as ready for review July 17, 2026 19:27
@tyrelchambers
tyrelchambers merged commit c7609b5 into master Jul 17, 2026
1 check passed
@tyrelchambers
tyrelchambers deleted the feature/helm-102-pod-view-logs branch July 17, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant