diff --git a/CulinaryCommandApp/Components/Custom/PrepTasksPanel.razor b/CulinaryCommandApp/Components/Custom/PrepTasksPanel.razor index 7480fff..6216723 100644 --- a/CulinaryCommandApp/Components/Custom/PrepTasksPanel.razor +++ b/CulinaryCommandApp/Components/Custom/PrepTasksPanel.razor @@ -1,10 +1,16 @@ @namespace CulinaryCommand.Components.Custom @using CulinaryCommand.Data.Entities +@using CulinaryCommand.Data.Enums @using Microsoft.AspNetCore.Components -
+
-

Today's Prep Tasks

+
+ +

Today’s Task List

+

Review assigned work, expand general task notes, and complete prep with recipe context where needed.

+
+ @Tasks.Count
@if (Tasks is null || Tasks.Count == 0) @@ -26,29 +32,55 @@
-
- @DisplayTitle(t) +
+
+ @DisplayTitle(t) +
+ + @(IsPrepTask(t) ? "Recipe Prep" : "General") +
-
- Par: @(t.Par?.ToString() ?? "-") - Count: @(t.Count?.ToString() ?? "-") - Prep: @t.Prep + @if (IsPrepTask(t)) + { +
+ Par: @(t.Par?.ToString() ?? "0") + Count: @(t.Count?.ToString() ?? "0") + Prep: @t.Prep +
+ } + +
+ @if (ShouldShowRecipeDetails(t)) + { + + } + + @if (!IsPrepTask(t) && !string.IsNullOrWhiteSpace(t.Notes)) + { + + }
- @if (t.Recipe is not null) + @if (!IsPrepTask(t) && IsExpanded(t.Id) && !string.IsNullOrWhiteSpace(t.Notes)) { - +
+ @t.Notes +
}
- @t.DueDate.ToString("MMM d · h:mm tt") + @FormatAssignedDate(t)
-