Skip to content

Add admin inventory management with paginated CRUD and Bootstrap 5 modals#3

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/feature-inventory-management
Draft

Add admin inventory management with paginated CRUD and Bootstrap 5 modals#3
Copilot wants to merge 2 commits intomainfrom
copilot/feature-inventory-management

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 7, 2026

Adds an admin-facing inventory management page with full CRUD operations, paginated Bootstrap 5 card display, and inline modal workflows for edit/delete.

Model

  • InventoryItem: Name (required), Description (optional), CostPerItem (required, >0), SalesPrice (optional, positive only), Quantity (double — supports decimals/percentages for partial items)

Data Layer

  • InventoryItems DbSet added to ApplicationDbContext
  • EF Core migration creates the InventoryItems table

Controller (InventoryController)

  • Index — paginated list, 10 items/page, ordered by name
  • Create (GET/POST) — standalone create page
  • Edit (GET) — returns _EditModal partial for AJAX loading; (POST) persists changes
  • Delete (POST) — removes item and redirects

Views

  • Index: responsive Bootstrap 5 card grid, pagination, Delete confirmation modal, Edit modal loaded via fetch() + partial view, "Create New Item" button at top
  • Create: standalone form page with client-side validation
  • _EditModal: partial view rendered into the edit modal body

Navigation

  • "Inventory" link added to the top nav in _Layout.cshtml

Copilot AI linked an issue Apr 7, 2026 that may be closed by this pull request
…nd views

Agent-Logs-Url: https://github.com/SpeakingInBits/MyCraftShop/sessions/a3371dae-ddef-49c8-86e9-dcd655a0d623

Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Copilot AI changed the title [WIP] Add inventory management page for admin Add admin inventory management with paginated CRUD and Bootstrap 5 modals Apr 7, 2026
Copilot AI requested a review from JoeProgrammer88 April 7, 2026 20:55
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.

[FEATURE] - Inventory Management

2 participants