Add support for item categories in registries
Introduced `RegistryItemCategory` entity for grouping and ordering items within registries. Updated `RegistryItem` and `Registry` entities to support categorization. Added database migrations for `RegistryItemCategories` and updated `RegistryItems` with `CategoryId` and `SortOrder`. Implemented drag-and-drop functionality for reordering categories and items using JavaScript and Blazor. Enhanced `RegistryAdmin` and `RegistryPublic` components to manage and display categories with collapsible sections. Updated `RegistryService` to handle category operations, including adding, renaming, removing, and reordering. Added new view models and updated CSS for category styling. Refactored logic to ensure proper ordering and fallback for unassigned items.
This commit is contained in:
@@ -15,6 +15,7 @@ public class Registry
|
||||
public DateTimeOffset CreatedAtUtc { get; set; }
|
||||
|
||||
public ICollection<RegistryAdmin> Admins { get; set; } = [];
|
||||
public ICollection<RegistryItemCategory> ItemCategories { get; set; } = [];
|
||||
public ICollection<RegistryItem> Items { get; set; } = [];
|
||||
public ICollection<RegistryVisit> Visits { get; set; } = [];
|
||||
public ICollection<RegistryAdminInvite> AdminInvites { get; set; } = [];
|
||||
|
||||
Reference in New Issue
Block a user