Skip to content

[FEAT] Extend ThreatHeatmap UI to support exact Pod Name filter prefix #2

@Jean-Regis-M

Description

@Jean-Regis-M

Description

Currently, our interactive 24-Hour Threat Heatmap widget supporting active operator dashboards in /src/components/ThreatHeatmap.tsx allows users to search namespaces utilizing a substring text field and filter active states via standard selectors. We would like to expand this capability to let security operators isolate specific pods by prefixing their search with "pod:".

Proposed Scope

  1. Locate /src/components/ThreatHeatmap.tsx.
  2. Update the filter checking loop inside filteredNamespaces (or equivalent filter arrays) to inspect the query prefix.
  3. If the query starts with pod:, extract the remaining string and filter only those entries hosting threat alerts corresponding to that target Kubernetes Pod.
  4. Provide appropriate placeholder guides inside the UI input field indicating that the pod:<name> syntax is supported.

Expected Files to Modify

  • /src/components/ThreatHeatmap.tsx

Verification Steps

  • Run npm run lint and npm run build to ensure the React app bundles perfectly on completion.
  • Verify the filtering functionality visually by injecting simulated alerts using the "Simulate Alert" controls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions