<MudText Typo="Typo.body2" Class="mb-3">@TA("The work state records what this step yielded. The lab writes a draft from the conversation, which you check and edit. Once you confirm it, the lab builds on it in the later steps. You can change it afterward.")</MudText>
@TA("AI Studio cannot open the work state of this step. Its file may be damaged, or a newer version of AI Studio stored it. AI Studio leaves the file unchanged.")
</MudAlert>
}
else
{
@switch (this.Status)
{
case BflWorkStateStatus.CONFIRMED when workState.Confirmed is { } confirmed:
@string.Format(Culture, TA("You confirmed this work state on {0}. The lab builds on it in the later steps."), confirmed.ConfirmedAtUtc.ToLocalTime().ToString("g", Culture))
<MudButton Variant="@(workState.Draft is null && workState.Confirmed is null ? Variant.Filled : Variant.Outlined)"
Color="Color.Primary"
StartIcon="@Icons.Material.Filled.AutoAwesome"
OnClick="@this.GenerateAsync"
Disabled="@(this.IsBusy || this.ProviderIssue is not null)">
@(workState.Draft is null && workState.Confirmed is null ? T("Create work state") : T("Create anew"))
</MudButton>
@if (this.VisibleSuggestions.Count > 0)
{
<MudText Typo="Typo.h6" Class="mt-6 mb-1">@TA("Suggestions for your details")</MudText>
<MudText Typo="Typo.body2" Class="mb-3">@TA("The lab found values for empty fields of your details. Take over what fits; your details stay as they are until then.")</MudText>
<MudStack Spacing="2">
@foreach (var (field, value) in this.VisibleSuggestions)