diff --git a/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor b/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor
index 65c78e8..cf5e1ec 100644
--- a/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor
+++ b/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor
@@ -3,15 +3,15 @@
@using CulinaryCommand.Data.Entities
@using CulinaryCommand.Services
@using CulinaryCommand.Data.Enums;
+@using WorkTaskStatus = CulinaryCommand.Data.Enums.TaskStatus
@using CulinaryCommand.Services.UserContextSpace
-@using CulinaryCommandApp.Recipe.Services;
@using CulinaryCommandApp.Recipe.Services.Interfaces;
@using CulinaryCommandApp.Recipe.Entities;
+@using CulinaryCommandApp.Components.Pages.Assignments
@using CulinaryCommand.Data.Models
@inject IUserContextService UserCtx
@inject NavigationManager Nav
@inject ILocationService LocationService
-@inject IUserService UserService
@inject LocationState LocationState
@inject ITaskAssignmentService TaskService
@inject IRecipeService RecipeService
@@ -37,21 +37,21 @@ else if (!allowed)
else
{
- @if (!string.IsNullOrWhiteSpace(createTemplateSuccess))
- {
-
- @createTemplateSuccess
-
- }
+ @if (!string.IsNullOrWhiteSpace(pageSuccess))
+ {
+
+ @pageSuccess
+
+ }
- @if (!string.IsNullOrWhiteSpace(createTemplateError))
- {
-
- @createTemplateError
-
- }
+ @if (!string.IsNullOrWhiteSpace(pageError))
+ {
+
+ @pageError
+
+ }
-
+
Kitchen Operations
Task Assignment
Manage task lists, assign library tasks fast, and track progress in one place.
@@ -84,280 +84,36 @@ else
-
-
-
-
-
Task Lists
-
Reusable groups like Dish Closing or Morning Prep
-
-
-
- @taskLists.Count
-
-
-
-
-
-
-
-
-
-
- @if (!FilteredTaskLists.Any())
- {
-
No task lists found.
- }
- else
- {
- @foreach (var list in FilteredTaskLists)
- {
-
-
-
-
@list.Name
-
- @if (!string.IsNullOrWhiteSpace(list.Description))
- {
-
@list.Description
- }
-
-
- @(list.Items?.Count ?? 0) task@((list.Items?.Count ?? 0) == 1 ? "" : "s")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
-
-
-
+
-
-
-
-
-
Task Library
-
Select one or more reusable tasks
-
-
-
- @taskTemplates.Count
-
-
-
-
-
-
-
-
-
- @if (selectedTemplateIds.Any())
- {
-
- @selectedTemplateIds.Count task@(selectedTemplateIds.Count == 1 ? "" : "s") selected
-
- }
-
-
- @if (!FilteredTaskTemplates.Any())
- {
-
No task templates found.
- }
- else
- {
- @foreach (var template in FilteredTaskTemplates)
- {
- var isSelected = selectedTemplateIds.Contains(template.Id);
-
-
-
-
-
ToggleTemplateSelection(template.Id)" />
-
-
-
@template.Name
-
@template.Station
-
- @if (!string.IsNullOrWhiteSpace(template.Notes))
- {
-
@template.Notes
- }
-
-
- @template.Priority
-
- @if (template.DefaultEstimatedMinutes.HasValue)
- {
-
- @template.DefaultEstimatedMinutes min
-
- }
-
-
-
-
-
-
-
-
-
-
- }
- }
-
-
-
+
-
-
- Create Task Manually
- Team: @teamMembers.Count
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @foreach (var station in stationOptions)
- {
-
- }
-
-
-
-
-
-
- @foreach (var p in priorityOptions)
- {
-
- }
-
-
-
-
- @if (newTask.TaskType == WorkTaskKind.PrepFromRecipe)
- {
-
-
-
-
- @foreach (var r in recipes)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
-
-
-
-
-
- @foreach (var user in teamMembers)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -368,169 +124,30 @@ else
@if (SelectedTemplates.Any())
{
-
-
-
-
-
Quick Assign
-
- @SelectedTemplates.Count task@(SelectedTemplates.Count == 1 ? "" : "s") selected
-
-
-
-
-
-
-
-
- @foreach (var template in SelectedTemplates)
- {
-
- @template.Name
-
- }
-
-
-
-
-
-
-
-
- @foreach (var user in teamMembers)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
- @foreach (var p in priorityOptions)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
+
}
-
-
-
-
-
Kitchen Task Board
-
Track pending, active, and completed work
-
-
-
-
-
-
-
-
- @foreach (var status in statusBuckets)
- {
-
-
-
-
-
@status
-
- @TasksByStatus(status).Count()
-
-
-
-
- @if (!TasksByStatus(status).Any())
- {
-
- No tasks in this column.
-
- }
- else
- {
- @foreach (var task in TasksByStatus(status))
- {
-
-
- @task.Priority
-
-
-
@task.Name
-
@task.Station
-
@FormatAssignee(task.UserId)
-
Due @task.DueDate.ToString("MMM d")
-
- @if (!string.IsNullOrWhiteSpace(task.Notes))
- {
-
@task.Notes
- }
-
-
- @if (task.Status == "Pending")
- {
-
- }
-
- @if (task.Status != "Completed")
- {
-
- }
-
-
-
-
-
-
- }
- }
-
-
-
-
- }
-
+
@@ -580,38 +197,37 @@ else
private List