Skip to content

refactor(frontend): simplify leaf component state - #31

Merged
aksOps merged 1 commit into
mainfrom
fix/sonar-g006-leaf-components
Aug 2, 2026
Merged

refactor(frontend): simplify leaf component state#31
aksOps merged 1 commit into
mainfrom
fix/sonar-g006-leaf-components

Conversation

@aksOps

@aksOps aksOps commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • simplify leaf-component keyboard and status state handling without changing behavior
  • replace nested conditional rendering in Card AI and integrations with named state values
  • add characterization coverage for keyboard propagation, busy states, token removal, and stale same-key integration completions

Sonar scope

Closes five maintainability findings in CardAIDraft.tsx, IntegrationsSection.tsx, and LabelsCombobox.tsx.

Verification

  • targeted Vitest: 24/24
  • full frontend: 932/932
  • frontend coverage: 98.30% statements, 95.25% branches, 98.77% functions, 99.46% lines
  • build and TypeScript: pass
  • Go coverage 97.8%, race, vet, format: pass
  • Actionlint and ShellCheck: pass
  • browser differential: 6/6 scenarios byte-identical, 0 changed pixels

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

@aksOps
aksOps merged commit 8be56c4 into main Aug 2, 2026
9 checks passed
@aksOps
aksOps deleted the fix/sonar-g006-leaf-components branch August 2, 2026 06:09
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