|
157 | 157 | <div class="breadcrumb-right"> |
158 | 158 | @if (_isLoading || _isAssessing) |
159 | 159 | { |
160 | | - <span class="progress-indicator"><span class="spinner"></span> @_progressMessage</span> |
| 160 | + <span class="progress-indicator"><span class="spinner"></span> @GetProgressIndicatorText()</span> |
161 | 161 | } |
162 | 162 | else if (_lastRefreshUtc > DateTimeOffset.MinValue) |
163 | 163 | { |
@@ -1132,13 +1132,33 @@ else |
1132 | 1132 | { |
1133 | 1133 | _ = InvokeAsync(async () => |
1134 | 1134 | { |
1135 | | - if (!_isLoading) |
| 1135 | + if (!_isLoading && !_isAssessing && !_isRunning) |
1136 | 1136 | { |
1137 | 1137 | await RefreshAsync().ConfigureAwait(false); |
1138 | 1138 | } |
1139 | 1139 | }); |
1140 | 1140 | } |
1141 | 1141 |
|
| 1142 | + private string GetProgressIndicatorText() |
| 1143 | + { |
| 1144 | + if (!string.IsNullOrWhiteSpace(_progressMessage)) |
| 1145 | + { |
| 1146 | + return _progressMessage; |
| 1147 | + } |
| 1148 | + |
| 1149 | + if (_isAssessing) |
| 1150 | + { |
| 1151 | + return "Assessing..."; |
| 1152 | + } |
| 1153 | + |
| 1154 | + if (_isLoading) |
| 1155 | + { |
| 1156 | + return "Refreshing packages..."; |
| 1157 | + } |
| 1158 | + |
| 1159 | + return "Working..."; |
| 1160 | + } |
| 1161 | + |
1142 | 1162 | private IGitHubClient CreateGitHubClient() |
1143 | 1163 | { |
1144 | 1164 | var client = new GitHubClient(new ProductHeaderValue("PanoramicData.NugetManagement.Web")); |
@@ -1197,6 +1217,7 @@ else |
1197 | 1217 | catch (Exception ex) |
1198 | 1218 | { |
1199 | 1219 | Logger.LogError(ex, "Failed to refresh dashboard"); |
| 1220 | + AppendConsole($"❌ Refresh failed: {ex.Message}"); |
1200 | 1221 | _progressMessage = $"Error: {ex.Message}"; |
1201 | 1222 | } |
1202 | 1223 | finally |
@@ -1615,7 +1636,7 @@ else |
1615 | 1636 | AppendConsole($"⚠️ [{r.RuleId}] {r.RuleName} — no auto-fix available"); |
1616 | 1637 | } |
1617 | 1638 |
|
1618 | | - AppendConsole($"ℹ️ {remaining.Count} issue(s) require manual fix. Use \"Open IDE\" and \"Copy AI Prompt\" to fix with AI assistance."); |
| 1639 | + AppendConsole($"ℹ️ {remaining.Count} issue(s) require manual fix. Press \"Fix with AI\" to generate a prompt."); |
1619 | 1640 | } |
1620 | 1641 | else if (_selectedRow.TotalFailures == 0) |
1621 | 1642 | { |
@@ -2437,9 +2458,8 @@ else |
2437 | 2458 |
|
2438 | 2459 | try |
2439 | 2460 | { |
2440 | | - var process = IdeDetection.OpenInIde(ide, _selectedRow.LocalPath); |
2441 | | - var pidInfo = process is not null ? $" (PID {process.Id})" : ""; |
2442 | | - AppendConsole($"✅ Opened {_selectedRow.PackageId} in {ide.DisplayName}{pidInfo}"); |
| 2461 | + IdeDetection.OpenInIde(ide, _selectedRow.LocalPath); |
| 2462 | + AppendConsole($"✅ Opened {_selectedRow.PackageId} in {ide.DisplayName}"); |
2443 | 2463 | } |
2444 | 2464 | catch (Exception ex) |
2445 | 2465 | { |
|
0 commit comments