Skip to content

Feature/ab#32088 add regenerate ai analysis button#2107

Draft
jacobwillsmith wants to merge 2 commits intodevfrom
feature/AB#32088-AddRegenerateAIAnalysisButton
Draft

Feature/ab#32088 add regenerate ai analysis button#2107
jacobwillsmith wants to merge 2 commits intodevfrom
feature/AB#32088-AddRegenerateAIAnalysisButton

Conversation

@jacobwillsmith
Copy link

Pull request overview

This pull request adds a regenerate button for AI application analysis in the grant application details page and wires it to a new app-service endpoint. The flow re-runs analysis generation, persists the refreshed payload, and reloads the analysis panel in place.

The implementation follows the existing UI interaction style used in adjacent AI actions (disable button while running, show loading state, then restore state with success/error feedback).

Changes:

  • Added GenerateAIAnalysisAsync to IGrantApplicationAppService and implemented it in GrantApplicationAppService
  • Added IApplicationAnalysisService and ApplicationAnalysisService to encapsulate analysis regeneration and persistence
  • Added a Refresh Analysis button to the AI Analysis tab header in details view
  • Added front-end click handler to call generateAIAnalysis, show loading state, and refresh displayed analysis data
  • Added UI notifications for regenerate success/failure outcomes

# Conflicts:
#	applications/Unity.GrantManager/src/Unity.GrantManager.Application/GrantApplications/GrantApplicationAppService.cs

# Conflicts:
#	applications/Unity.GrantManager/src/Unity.GrantManager.Application/GrantApplications/GrantApplicationAppService.cs
#	applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/ai-analysis.js
@github-actions
Copy link

github-actions bot commented Mar 7, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 465
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

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