Skip to content

PR1: Implement Single-Run Progress Bar for Realtime Scans (AST-109633)#317

Open
cx-rahul-pidde wants to merge 3 commits intofeature/devassist-integration-branchfrom
feature/AST-109633-pr1-progress-bar
Open

PR1: Implement Single-Run Progress Bar for Realtime Scans (AST-109633)#317
cx-rahul-pidde wants to merge 3 commits intofeature/devassist-integration-branchfrom
feature/AST-109633-pr1-progress-bar

Conversation

@cx-rahul-pidde
Copy link
Copy Markdown
Contributor

Progress Bar Implementation

  • Add RealtimeScanProgressIndicator with animated progress 0-100%
  • Progress fills over ~2 seconds with 200ms updates
  • Automatically stops when reaching 100%
  • Thread-safe implementation with proper locking
  • Clear on scan completion

Files Changed

  • RealtimeScanProgressIndicator.cs
  • RealtimeFileScanScheduler.cs

Related Issue

AST-109633

- Add RealtimeScanProgressIndicator with animated progress 0-100%
- Progress fills over ~2 seconds with 200ms updates
- Automatically stops when reaching 100%
- Thread-safe implementation with proper locking
- Clear on scan completion

Base branch: feature/devassist-integration-branch
Related to: AST-109633
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

Logo
Checkmarx One – Scan Summary & Details22f108a3-d643-44f3-9f59-ca267241a49e


Policy Management Violations (2)
Policy Name Rule(s) Break Build
[SAST-ML0] Not allowed NEW Sast vulnerabilities true
Commercial packages true

cx-rahul-pidde and others added 2 commits April 21, 2026 12:47
…ogress

Issues fixed:
1. Silent catch blocks: log errors via CxAssistErrorHandler instead of swallowing
   - PushScanAsync: log progress bar initialization errors
   - PopScanAsync: log progress cleanup errors
   - ProgressTimer.Elapsed: log timer execution errors
   - Prevents bugs from being hidden forever (enables debugging and diagnostics)

2. VS Progress contract violation: initialize progress before timer starts
   - Call statusBar.Progress(ref _progressCookie=0, fInProgress=1) to let VS allocate cookie
   - Timer updates with same cookie to fill the bar (0→100%)
   - PopScanAsync calls with fInProgress=0 to clear, then resets cookie to 0
   - Prevents progress bar from sticking at 100% after scan completes

3. Add clarifying comments on VS Progress API contract requirements

Addresses code review feedback from @cx-rakesh-kadu

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants