Skip to content

@#38

Merged
Idddd merged 2 commits into
mainfrom
feature/ux-mock-improvements
Jun 17, 2026
Merged

@#38
Idddd merged 2 commits into
mainfrom
feature/ux-mock-improvements

Conversation

@Idddd

@Idddd Idddd commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

feat: UX mock improvements — environment-aware test generation and smarter mock collection

  • Add EnvironmentContextCollector: detect test libraries, Java language level, build tool, Lombok presence, and library versions; inject into LLM prompt so generated tests only import libraries actually available on the classpath
  • Extend GenerationRequest with environmentContext field; PromptBuilder renders it
  • Rework DependentMethodCollector: collect class annotations, injectable fields with full public API surface, nested collaborator calls, and confirmed call sites
  • Add doValidate() to GenerateTestsDialog for input validation plus a non-blocking warning when no test libraries are detected on the module classpath
  • Add progress stage reporting ([1/4]..[4/4]) via ContextBox during generation
  • Add buildActionableErrorMessage() to map common failures to user guidance
  • Add errorWithLogs/errorWithSettings notification helpers with action buttons
  • Add SonarQubeAuth.requireAuthorizationHeader() for fast-fail with actionable message
  • Refactor JavaHeuristics: extract splitAtMainJava(), fix single-module path matching, add extractDeclaredPackage(), add String-based overloads
  • Fix output directory to follow the package actually declared in generated code
  • Fix restrictedNetworkMode type inference in plugin-idea/build.gradle.kts
  • Add tests: EnvironmentContextCollectorTest, JavaHeuristicsTest, SonarQubeAuthTest, PromptBuilderTest, TemplateRequestHandlebarsTest

@

Idddd and others added 2 commits June 16, 2026 18:34
feat: UX mock improvements — environment-aware test generation and smarter mock collection

- Add EnvironmentContextCollector: detect test libraries, Java language level,
  build tool, Lombok presence, and library versions; inject into LLM prompt so
  generated tests only import libraries actually available on the classpath
- Extend GenerationRequest with environmentContext field; PromptBuilder renders it
- Rework DependentMethodCollector: collect class annotations, injectable fields
  with full public API surface, nested collaborator calls, and confirmed call sites
- Add doValidate() to GenerateTestsDialog for input validation plus a non-blocking
  warning when no test libraries are detected on the module classpath
- Add progress stage reporting ([1/4]..[4/4]) via ContextBox during generation
- Add buildActionableErrorMessage() to map common failures to user guidance
- Add errorWithLogs/errorWithSettings notification helpers with action buttons
- Add SonarQubeAuth.requireAuthorizationHeader() for fast-fail with actionable message
- Refactor JavaHeuristics: extract splitAtMainJava(), fix single-module path matching,
  add extractDeclaredPackage(), add String-based overloads
- Fix output directory to follow the package actually declared in generated code
- Fix restrictedNetworkMode type inference in plugin-idea/build.gradle.kts
- Add tests: EnvironmentContextCollectorTest, JavaHeuristicsTest, SonarQubeAuthTest,
  PromptBuilderTest, TemplateRequestHandlebarsTest

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@
feat: fix settings Apply/OK, remove redundant prompt fields, fix PasswordSafe EDT

- requirePromptProfiles now accepts blank/empty YAML (no longer throws)
- apply() shows error dialog on validation failure instead of silent fail
- SharedCredentialStore save/clear wrapped in runCatching
- loadSettingsModel uses .ifBlank { default } for prompt profile YAML fields
- buildPromptsMap derives standalone fields from profiles "default" entry
- seedLegacyIntoProfiles migrates old standalone prompts into profiles
- Removed 3 redundant UI fields: generationPromptWrapper, commitPrompt, branchDiffPrompt
- Prompt Manager is now the single editor for all 5 prompt categories
- SharedCredentialResolver extracts cross-service credential resolution

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@
@Idddd Idddd merged commit 0a49050 into main Jun 17, 2026
1 check passed
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