tftsr-devops_investigation/tests/unit
Shaun Arman 3f4869af01
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
feat(kubernetes): implement Lens Desktop v5 feature-parity UI
Complete overhaul of the Kubernetes management page from a basic config
panel into a full Lens-style IDE shell with 26 resource types, real-time
data, and a comprehensive test suite.

Layout & navigation:
- Rewrite KubernetesPage as a Lens v5-style shell: collapsible sidebar
  (Workloads / Services & Networking / Config & Storage / Access Control /
  Cluster), top hotbar with cluster+namespace selectors, Ctrl+K command
  palette
- All 26 resource types now accessible via sidebar navigation (previously 5)

New resource types (Rust + TypeScript + React):
- StorageClasses, NetworkPolicies, ResourceQuotas, LimitRanges
- 4 new Tauri commands registered in generate_handler![]

Component implementations (replacing stubs with real IPC):
- Terminal: full xterm.js with multi-tab sessions and exec_pod IPC
- YamlEditor: Monaco editor with YAML syntax highlighting
- MetricsChart: recharts LineChart/BarChart
- ClusterOverview: live node/pod/deployment/namespace counts
- ClusterDetails: real kubeconfig + node data
- PodDetail, DeploymentDetail, ServiceDetail, ConfigMapDetail, SecretDetail:
  all connected to real IPC data, zero hardcoded values
- CreateResourceModal, EditResourceModal: wired to createResourceCmd /
  editResourceCmd
- RbacViewer: live data from 4 RBAC IPC commands
- RbacEditor: create roles/cluster-roles via YAML editor
- CommandPalette: 12 real navigation commands, keyboard nav

Dependencies added: xterm@5, xterm-addon-fit, xterm-addon-web-links,
@monaco-editor/react@4, recharts@2

Tooling:
- Replace eslint-plugin-react (incompatible with ESLint 10) with
  @eslint-react/eslint-plugin; fix eslint.config.js for flat config
- Fix pre-existing hoisting lint errors in Security.tsx, PortForwardForm.tsx
- Fix eventBus.ts: replace all `any` generics with `unknown`

Tests: 251 passing across 35 test files (was 94/19)
- 16 new test files covering all new and fixed components (TDD)
- npx tsc --noEmit: 0 errors
- cargo clippy -- -D warnings: 0 warnings
- cargo fmt --check: passes
- eslint src/ --max-warnings 0: 0 issues
2026-06-07 16:41:28 -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 feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -05:00
ClusterOverview.test.tsx feat(kubernetes): implement Lens Desktop v5 feature-parity UI 2026-06-07 16:41:28 -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
issueActions.test.ts feat: close issues, restore history, auto-save resolution steps 2026-03-31 12:50:39 -05:00
kubernetesCommands.test.ts feat(k8s): implement clean-room Kubernetes management GUI 2026-06-06 20:27:39 -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