azurenoops / azurenoops/spin_agent
[BUG] [Assessments] - 'Generate SAP' button produces no feedback — no loading state, no modal, no error message
- Dominant language
- C#
- Stars
- 3
- Forks
- 1
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 70
Description
## Bug Description
The **"Generate SAP"** button on the Compliance Assessments page either does nothing visible or silently routes to the chat panel without feedback. No SAP generation is triggered, no loading indicator appears, no SAP record is added to the assessments table, and no success/error message is shown to the user.
Clicking the button produces no observable UI change — the assessments list remains empty and the button has no loading state.
## Steps to Reproduce
1. Navigate to any system's assessments page (e.g., `/systems/b4d0aca6-cdb1-4630-84ae-df93b2747178/assessments`)
2. Verify the assessments table shows "No assessments found."
3. Click the **"Generate SAP"** button
## Expected Behavior
- A loading spinner or progress indicator appears
- Either:
- A SAP form/modal opens to configure the assessment plan, OR
- A SAP record appears in the assessments table after generation, OR
- An error message explains why SAP generation is blocked (e.g., missing control baseline)
## Actual Behavior
- No loading state visible
- No modal or form appears
- Assessments list remains empty ("No assessments found.")
- No toast/alert/error message
- The button appears clickable but produces zero feedback
**Via MCP API:** Corresponding chat message `"Generate a SAP for Coastal Watch"` returns `"ℹ️ No assessment data found."` with zero tools executed — confirming the underlying assessment pipeline is also broken.
## Console Errors
No JS errors triggered from this button click specifically. Existing SignalR race condition persists.
## Browser/Environment
Azure Container Apps Dashboard (flankspeed org-centric v2)
Browser: Chromium (Playwright/Hermes browser)
Date: 2026-07-07
System: QA Test System 2026-06-25T17:48:00Z (ID: b4d0aca6-cdb1-4630-84ae-df93b2747178)
Sweep: Automated 4-hour QA sweep
## Playwright Test Code
```typescript
test('[Assessments] Generate SAP button shows feedback', async ({ page }) => {
await page.goto('/systems/b4d0aca6-cdb1-4630-84ae-df93b2747178/assessments');
await expect(page.locator('button', { hasText: 'Generate SAP' })).toBeVisible();
await page.click('button:has-text("Generate SAP")');
// Should show some feedback within 5 seconds
const feedback = await Promise.race([
page.waitForSelector('.loading, [role="progressbar"], .toast, .error', { timeout: 5000 }).catch(() => null),
page.waitForSelector('dialog, [role="dialog"]', { timeout: 5000 }).catch(() => null),
page.waitForFunction(() => document.querySelector('table tbody tr:not(:last-child)'), { timeout: 5000 }).catch(() => null),
]);
expect(feedback).not.toBeNull();
});
```
## Related Issues
- #551 — Generate SAP shows 'No control baseline found' with no navigation path
- #574 — SAP/remediation intents return 'No assessment data found' with zero tools executed
- #580 — Compliance assessment returns SUBSCRIPTION_NOT_CONFIGURED
*Filed by Oracle — Automated 4-hour QA Sweep 2026-07-07T09:11:00Z*
Contributor guide
Assessment
This issue has not been assessed yet.