Skip to content

feat: flatten log explorer to workload resources and add pod filters - #151

Merged
vantoan1511 merged 1 commit into
mainfrom
feat/log-explorer-workloads
Aug 22, 2026
Merged

feat: flatten log explorer to workload resources and add pod filters#151
vantoan1511 merged 1 commit into
mainfrom
feat/log-explorer-workloads

Conversation

@vantoan1511

Copy link
Copy Markdown
Owner

Summary

Refactored the Log Explorer sidebar to display one level of Workload Resources under each Namespace instead of deep pod and container nesting. In the Logs View, added Select components to filter by Pod and Container (defaulting to "All"). Updated the Recent Logs store to deduplicate entries by Workload.

Changes

  • Log Explorer Sidebar (AppSidebarLogsMenu.vue):
    • Flattened tree view to 2 levels: Namespace -> Workload Resource (Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, standalone ReplicaSets, standalone Pods).
    • Applied semantic color tokens (text-deployment, text-job, etc.).
    • Scoped Recent Logs list to show entries by Workload Name & Kind.
  • Logs View (LogsView.vue):
    • Added PrimeVue Select controls in the Controls Bar to switch between Pods and Containers, defaulting to "All".
  • Store & Composables (logsStore.ts, useLogSelection.ts):
    • Updated addRecentLog deduplication to prevent duplicate entries when switching pods/containers for the same workload.
    • Added reactive reset watchers in useLogSelection.ts to cleanly fall back to "All" when switching workloads.

Files Changed

File Change
src/components/layout/sidebar/AppSidebarLogsMenu.vue Modified
src/composables/useLogSelection.ts Modified
src/stores/logsStore.ts Modified
src/views/LogsView.vue Modified

Testing

  • npm run type-check: Zero type errors (vue-tsc --build).
  • npm run lint: Zero lint errors (eslint).
  • npm run build: Production build succeeded.

Related Artifacts

  • Report: .agents/PRPs/reports/log-explorer-workloads-report.md
  • Plan: .agents/PRPs/plans/completed/log-explorer-workloads.plan.md

@github-actions github-actions Bot added the feat label Aug 22, 2026
@vantoan1511
vantoan1511 merged commit dd4c9f2 into main Aug 22, 2026
2 checks passed
@vantoan1511
vantoan1511 deleted the feat/log-explorer-workloads branch August 22, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant