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

Today’s Task List

-

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

-
- @Tasks.Count +

Today's Prep Tasks

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