Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
<RadzenButton Icon="refresh" Text="Refresh" ButtonStyle="ButtonStyle.Light" Size="ButtonSize.Small" title="Reload file from disk" Click="@OnRefreshFile" />
<RadzenButton Icon="save" Text="Save" ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Small" title="Save file" Click="@OnSaveFile" IsBusy="@isSaving" />
<RadzenSplitButton Click="@OnRunCode" Text="Run" Icon="play_arrow"
ButtonStyle="ButtonStyle.Success" Size="ButtonSize.Small">
ButtonStyle="ButtonStyle.Success" Size="ButtonSize.Small"
IsBusy="@isExecuting">
<ChildContent>
<RadzenSplitButtonItem Text="Run Code [Development]" Value="Development" Icon="play_arrow" />
<RadzenSplitButtonItem Text="Run Code [Production]" Value="Production" Icon="rocket_launch" />
Expand Down Expand Up @@ -200,6 +201,20 @@
</div>
}

@* Saving Overlay *@
@if (isSaving && !isExecuting)
{
<div style="position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 9999;">
<RadzenCard Style="padding: 40px 60px; border-radius: 16px; text-align: center; background: #ffffff;">
<RadzenStack AlignItems="AlignItems.Center" Gap="20">
<RadzenProgressBarCircular ShowValue="false" Mode="ProgressBarMode.Indeterminate" Size="ProgressBarCircularSize.Large" />
<RadzenText TextStyle="TextStyle.H5" Style="margin: 0; color: #333; font-weight: 600;">Saving & Compiling…</RadzenText>
<RadzenText TextStyle="TextStyle.Body2" Style="margin: 0; color: #666;">Please wait while your code is being saved and validated</RadzenText>
Comment on lines +211 to +212
</RadzenStack>
</RadzenCard>
</div>
}

@* Calling AI Overlay *@
@if (isCallingAI)
{
Expand Down Expand Up @@ -533,7 +548,7 @@

var environment = item?.Value?.ToString() ?? "Development";
logOutput = $"[{DateTime.Now:HH:mm:ss}] Running code in {environment} mode...\n";

isExecuting = true;
StateHasChanged();
await Task.Delay(1); // Allow UI to update
Expand Down Expand Up @@ -1163,6 +1178,7 @@ except Exception as e:
{
isSaving = true;
if (!_disposed) StateHasChanged();
await Task.Delay(1); // Allow UI to render the saving overlay

try
{
Expand Down
16 changes: 16 additions & 0 deletions src/BlazorOrchestrator.Web/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,22 @@ else
if (result.Success)
{
ds.Close(true);

// Create a corresponding job in the database so it appears on the dashboard
try
{
var org = await JobService.GetDefaultOrganizationAsync();
if (org != null)
{
await JobService.CreateJobAsync(projectName, org.Id);
}
Comment on lines +899 to +903
}
catch (Exception jobEx)
{
NotificationService.Notify(NotificationSeverity.Warning, "Warning", $"Project created but failed to register job: {jobEx.Message}");
}

await LoadJobsAsync();
await ShowSuccessDialog(projectName, result.OutputPath!);
}
else
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<Solution>
<Project Path="../BlazorDataOrchestrator.Core/BlazorDataOrchestrator.Core.csproj" />
<Project Path="BlazorDataOrchestrator.JobCreatorTemplate/BlazorDataOrchestrator.JobCreatorTemplate.csproj" />
<Folder Name="/Dependencies/">
<Project Path="../BlazorDataOrchestrator.Core/BlazorDataOrchestrator.Core.csproj" />
</Folder>
</Solution>