Skip to content

Bugfix/ab#33047 collapse dismissed ai analysis sections#2473

Merged
jacobwillsmith merged 2 commits into
devfrom
bugfix/AB#33047-collapse-dismissed-ai-analysis-sections
May 15, 2026
Merged

Bugfix/ab#33047 collapse dismissed ai analysis sections#2473
jacobwillsmith merged 2 commits into
devfrom
bugfix/AB#33047-collapse-dismissed-ai-analysis-sections

Conversation

@jacobwillsmith
Copy link
Copy Markdown
Contributor

Summary

Fixes AI Application Analysis sections so they collapse when no items are visible and cannot be expanded into an empty body.

Changes

  • Reuses a single visible-item lookup for analysis item layout and collapse checks.
  • Disables the section collapse toggle when all items are dismissed/hidden.
  • Adds a disabled visual state for the collapse toggle.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the AI Analysis sections on the Grant Application Details page so sections with no visible items (e.g., all items dismissed/hidden) collapse and cannot be expanded into an empty section body.

Changes:

  • Refactors “visible analysis items” detection into a shared helper and reuses it for layout + collapse logic.
  • Disables the section collapse toggle when there are no visible items and forces the section into a collapsed state.
  • Adds a disabled visual style for the collapse toggle button.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.css Adds styling for disabled state of the AI analysis collapse toggle.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/ai-analysis.js Centralizes visible-item lookup and updates collapse behavior based on visible items, including disabling the collapse control.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@jacobwillsmith jacobwillsmith force-pushed the bugfix/AB#33047-collapse-dismissed-ai-analysis-sections branch from 22ada98 to 113cd56 Compare May 15, 2026 18:58
@jacobwillsmith jacobwillsmith marked this pull request as ready for review May 15, 2026 18:58
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

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

📄 HTML Reports

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

@jacobwillsmith jacobwillsmith merged commit 81b2c63 into dev May 15, 2026
25 checks passed
@jacobwillsmith jacobwillsmith deleted the bugfix/AB#33047-collapse-dismissed-ai-analysis-sections branch May 15, 2026 21:11
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.

3 participants