Skip to content

fix(ui): preserve scans provider wizard flow#11136

Open
Alan-TheGentleman wants to merge 3 commits into
masterfrom
fix/scans-provider-modal-flow
Open

fix(ui): preserve scans provider wizard flow#11136
Alan-TheGentleman wants to merge 3 commits into
masterfrom
fix/scans-provider-modal-flow

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Contributor

@Alan-TheGentleman Alan-TheGentleman commented May 12, 2026

Context

Screen.Recording.2026-05-12.at.14.19.43.mov

The /scans first-provider onboarding flow was reset after creating a provider from Launch Scan → Get Started. The page refreshed with providers data and unmounted the local modal state before users could continue through the wizard.

Description

  • Adds a stable ScansLaunchSection client boundary to own the provider wizard modal state across /scans server refreshes.
  • Keeps the existing NoProvidersAdded standalone behavior while allowing /scans to control modal opening from a stable parent.
  • Adds regression coverage for preserving the wizard after providers data refreshes.

Steps to review

  1. Open /scans with no configured providers.
  2. Click Get Started.
  3. Select a provider, enter provider data, and click Next.
  4. Verify the provider wizard remains open and continues to the next wizard step instead of resetting the /scans page.

Validation performed:

  • pnpm test:run scans-launch-section.test.tsx
  • Commit hooks passed: UI TypeScript Check, ESLint, Unit Tests, Build
  • Manual desktop verification using screen recording evidence: /Users/alanbuscaglia/Desktop/Screen Recording 2026-05-12 at 14.19.43.mov

Checklist

Community Checklist
  • This feature/issue is listed in here or roadmap.prowler.com
  • Is it assigned to me, if not, request it via the issue/feature in here or Prowler Community Slack

SDK/CLI

  • Are there new checks included in this PR? No
    • If so, do we need to update permissions for the provider? Please review this carefully.

UI

  • All issue/task requirements work as expected on the UI
  • Screenshots/Video of the functionality flow (if applicable) - Mobile (X < 640px)
  • Screenshots/Video of the functionality flow (if applicable) - Table (640px > X < 1024px)
  • Screenshots/Video of the functionality flow (if applicable) - Desktop (X > 1024px)
  • Ensure new entries are added to CHANGELOG.md, if applicable.

API

  • All issue/task requirements work as expected on the API
  • Endpoint response output (if applicable)
  • EXPLAIN ANALYZE output for new/modified queries or indexes (if applicable)
  • Performance test results (if applicable)
  • Any other relevant evidence of the implementation (if applicable)
  • Verify if API specs need to be regenerated.
  • Check if version updates are required (e.g., specs, Poetry, etc.).
  • Ensure new entries are added to CHANGELOG.md, if applicable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Keep provider wizard state mounted across scans data refreshes
- Add regression coverage for first-provider onboarding flow
@Alan-TheGentleman Alan-TheGentleman requested a review from a team as a code owner May 12, 2026 12:26
@Alan-TheGentleman Alan-TheGentleman added bug no-changelog Skip including change in changelog/release notes labels May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

Conflict Markers Resolved

All conflict markers have been successfully resolved in this pull request.

@Alan-TheGentleman Alan-TheGentleman removed the no-changelog Skip including change in changelog/release notes label May 12, 2026
- Document the Launch Scan first-provider wizard fix
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

✅ All necessary CHANGELOG.md files have been updated.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

🔒 Container Security Scan

Image: prowler-ui:a36a602
Last scan: 2026-05-12 14:15:19 UTC

📊 Vulnerability Summary

Severity Count
🔴 Critical 2
Total 2

2 package(s) affected

⚠️ Action Required

Critical severity vulnerabilities detected. These should be addressed before merging:

  • Review the detailed scan results
  • Update affected packages to patched versions
  • Consider using a different base image if updates are unavailable

📋 Resources:

Make onOpenWizard required on NoProvidersAdded and drop the unused
internal state/modal fallback. Lift the launch-form provider shape into
ui/types/scans.ts as ScanProviderInfo and reuse it in
scans-launch-section, launch-scan-workflow-form and select-scan-provider
(rename the existing result-shape type to ScanResultProviderInfo to free
the name). Require hasManageScansPermission and thereIsNoProvidersConnected
on ScansLaunchSection and coerce both inputs at the page call site so
undefined fails closed. Simplify the wizard-survives-rerender test to
getByRole("dialog").
Copy link
Copy Markdown
Contributor

@alejandrobailo alejandrobailo left a comment

Choose a reason for hiding this comment

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

LGTM, however it belongs to 26.2 as a fix, with backport.

@Alan-TheGentleman
Copy link
Copy Markdown
Contributor Author

@alejandrobailo it will be released with the 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants