Skip to content

Bootstrap dashboard#131

Merged
matayasdurr merged 9 commits intoCulinary-Command:mainfrom
antphan12:Bootstrap-Dashboard
Apr 3, 2026
Merged

Bootstrap dashboard#131
matayasdurr merged 9 commits intoCulinary-Command:mainfrom
antphan12:Bootstrap-Dashboard

Conversation

@antphan12
Copy link
Copy Markdown
Collaborator

Created new dashboard layout with dynamic charts
Card 1: Display low stock inventory items
Card 2: Task Card, displaying pending and completed tasks
Card 3: Task count, count the number of tasks completed by a certain employee
Card 4: Live/Dynamic updating card displaying what task was complete with timeframe of when card was completed

Introduce an Inventory Config tab in Settings and add a new SettingsInventoryConfigurations component to manage units of measurement. The new component provides a form for creating/updating units (with validation), a table listing existing units, and delete confirmation modal. Access is restricted to Admin/Manager roles via IUserContextService; it uses IUnitService for CRUD operations and handles loading, save/delete states and basic error feedback. Settings.razor was updated to include the nav item and route case to render the new component.
Increase Settings panel max-width from 700px to 960px for a wider layout. Remove Bootstrap icon elements from the Inventory tab button and Inventory Configurations header. Harden SettingsInventoryConfigurations.razor to avoid a potential null-reference by only checking _ctx.IsAuthenticated before redirect, then verifying _ctx.User is not null before reading Role and loading units.
Integrate Blazor.Bootstrap and client-side libraries: App.razor now includes Bootstrap CSS/JS, bootstrap-icons, Blazor.Bootstrap CSS/JS, Chart.js (+ datalabels) and Sortable.js. CulinaryCommand.csproj adds the Blazor.Bootstrap package and _Imports.razor registers BlazorBootstrap. Program.cs registers AddBlazorBootstrap and changes the Google Client singleton to require a Google:ApiKey from configuration (throws if missing). Added a local alias for Unit in two Razor pages to resolve type usage. RecipeService validation for a required Category was removed to allow creating recipes without that check.
Using Plotly Chart tool, create new cards/charts to display base information.
Card 1: Display Low Stock
Card 2: Count of Tasks Completed or Pending
Card 3: Count of Tasks completed by employee name
Card 4: Dynamic Activity card tracking live updates
@antphan12 antphan12 self-assigned this Apr 2, 2026
@matayasdurr matayasdurr merged commit ac00964 into Culinary-Command:main Apr 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants