feat(items): support drag-and-drop reordering and contextual insert

Implement drag-and-drop sorting in the items grid
Add right-click context menu to insert new items before or after
Update backend to process insertion anchors during item creation
This commit is contained in:
2026-05-05 07:01:21 +08:00
parent a17344d216
commit 357dc061d6
8 changed files with 500 additions and 19 deletions

View File

@@ -800,6 +800,8 @@ export interface ItemPayload {
acquisitionMethodIds: number[];
tagIds: number[];
imagePath: string;
insertBeforeItemId?: number | null;
insertAfterItemId?: number | null;
}
export interface AncientArtifactPayload {