Add container arrays with 3D drawer grid view

Locations can now be container arrays (up to 20x20). Each drawer is a
child location with a grid position and color, shown in a 3D cabinet
view with hover/tap slide-out, content summary peek, drag (or touch
and hold) to swap, and a modal to rename, recolor, or relocate
drawers. Deleting a drawer leaves its slot empty.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-06-10 22:28:13 -07:00
1 parent 423e1552f8
commit c0375f651a
14 files changed
+1335 -14

No files matched your search

+5
View File
@@ -11,6 +11,11 @@ CREATE TABLE IF NOT EXISTS locations (
description TEXT NOT NULL DEFAULT '',
parent_id INTEGER REFERENCES locations(id) ON DELETE SET NULL,
image_path TEXT NOT NULL DEFAULT '',
grid_rows INTEGER NOT NULL DEFAULT 0, -- Container array height (0 = not a container array)
grid_cols INTEGER NOT NULL DEFAULT 0, -- Container array width (0 = not a container array)
grid_row INTEGER, -- Drawer position (row) within parent container array
grid_col INTEGER, -- Drawer position (col) within parent container array
color TEXT NOT NULL DEFAULT '', -- Drawer color code (hex)
lifecycle_state TEXT NOT NULL DEFAULT 'active',
created_at TEXT NOT NULL DEFAULT (datetime('now')),
updated_at TEXT NOT NULL DEFAULT (datetime('now'))