tftsr-devops_investigation/tests/unit
Shaun Arman ef3709ffe9
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Successful in 1m37s
Test / frontend-typecheck (pull_request) Successful in 1m46s
Test / rust-fmt-check (pull_request) Failing after 10m52s
Test / rust-clippy (pull_request) Successful in 12m34s
Test / rust-tests (pull_request) Successful in 14m8s
fix(kube): bridge kubeconfig storage to in-memory cluster map and fix UI issues
Resolves four bugs in the Kubernetes management interface:

1. **Cluster not found error** - commands/kube.rs::list_nodes (and all other
   kube resource commands) look up clusters from state.clusters (in-memory map)
   which was never populated from the kubeconfig_files table. Add a new
   connect_cluster_from_kubeconfig Tauri command that reads the encrypted
   kubeconfig from the DB, decrypts it, and inserts a ClusterClient into
   state.clusters. Wire it into KubernetesPage on initial load and cluster
   change so the in-memory map is always populated before any kube command runs.

2. **Dropdown selection has no effect** - same root cause as #1; activating a
   kubeconfig only updated the DB flag but never loaded the client into memory.
   handleClusterChange now calls connectClusterFromKubeconfigCmd after activation.

3. **GUID shown instead of cluster name** - ClusterOverview displayed the raw
   internal UUID as the page subtitle. Now accepts a clusterName prop (populated
   from kubeconfig.context) and renders that instead. ClusterDetails similarly
   changed to show kubeconfig.context in the header, not the UUID.

4. **Bell icon not clickable** - Hotbar bell button had no onClick handler. Add
   optional onNotifications / notificationCount props; badge count is now dynamic
   rather than hardcoded. KubernetesPage wires up a notifications dialog showing
   active cluster context and a link to the Events section.

All changes follow TDD: failing tests written first, then implementation.
2026-06-07 17:39:07 -05:00
..
aiProvidersCustomRest.test.ts chore: remove all proprietary vendor references for public release 2026-04-07 09:46:25 -05:00
aiProvidersOllamaDropdown.test.tsx test: add shell execution and tool calling detection tests 2026-06-05 08:26:22 -05:00
attachmentStore.test.ts feat: attachment DB storage and cross-incident recall 2026-05-31 17:55:47 -05:00
auditLog.test.tsx fix(test): await async data in auditLog test to prevent race condition 2026-04-19 20:21:37 -05:00
autoTagWorkflowTrigger.test.ts.disabled fix: update tests to use .gitea workflows and disable GitHub-specific tests 2026-06-05 15:03:27 -05:00
ciDockerBuilders.test.ts.disabled fix: remove remaining proprietary references and fix branding 2026-06-05 16:00:33 -05:00
ClusterDetails.test.tsx fix(kube): bridge kubeconfig storage to in-memory cluster map and fix UI issues 2026-06-07 17:39:07 -05:00
ClusterOverview.test.tsx fix(kube): bridge kubeconfig storage to in-memory cluster map and fix UI issues 2026-06-07 17:39:07 -05:00
CommandPalette.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
ConfigMapDetail.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
CreateResourceModal.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
dashboard.test.tsx chore: Add GitHub Actions workflows 2026-04-08 21:53:44 -05:00
DeploymentDetail.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
detectToolCalling.test.ts test: add shell execution and tool calling detection tests 2026-06-05 08:26:22 -05:00
docEditor.test.tsx fix: UI contrast issues and ARM64 build failure 2026-04-03 08:05:58 -05:00
domainPrompts.test.ts feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00
EditResourceModal.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
exportDocument.test.ts fix: UI contrast issues and ARM64 build failure 2026-04-03 08:05:58 -05:00
history.test.tsx fix: lint fixes and formatting cleanup 2026-04-09 20:42:40 -05:00
historyStore.test.ts fix: dashboard shows — while loading, exposes errors, adds refresh button 2026-03-31 08:55:05 -05:00
Hotbar.test.tsx fix(kube): bridge kubeconfig storage to in-memory cluster map and fix UI issues 2026-06-07 17:39:07 -05:00
issueActions.test.ts feat: close issues, restore history, auto-save resolution steps 2026-03-31 12:50:39 -05:00
kubernetesCommands.test.ts fix(kube): bridge kubeconfig storage to in-memory cluster map and fix UI issues 2026-06-07 17:39:07 -05:00
KubernetesPage.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
kubernetesStore.test.ts feat(kubernetes): implement Phase 1 & 2: resource discovery UIs and advanced features 2026-06-07 10:24:26 -05:00
MetricsChart.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
NewResourceTypes.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
pii.test.ts feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
PodDetail.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
RbacViewer.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
releaseWorkflowCrossPlatformArtifacts.test.ts.disabled fix: update tests to use .gitea workflows and disable GitHub-specific tests 2026-06-05 15:03:27 -05:00
releaseWorkflowMacBundle.test.ts.disabled fix: update tests to use .gitea workflows and disable GitHub-specific tests 2026-06-05 15:03:27 -05:00
resolution.test.tsx feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00
SecretDetail.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
selectDropdownViewport.test.tsx test: add shell execution and tool calling detection tests 2026-06-05 08:26:22 -05:00
sessionStore.test.ts feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
settingsStore.test.ts feat: full copy from apollo_nxt-trcaa with complete sanitization 2026-06-05 14:12:43 -05:00
setup.ts feat: full copy from apollo_nxt-trcaa with complete sanitization 2026-06-05 14:12:43 -05:00
Terminal.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
timelineEvents.test.ts feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00
YamlEditor.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00