Skip to content

Conversation

@camdenwebster
Copy link
Owner

Implement comprehensive nested locations feature with the following capabilities:

Model Changes:

  • Add parent relationship property to InventoryLocation
  • Add helper methods: getChildren(), getDepth(), canAddChild(), getFullPath(), getAncestors(), isDescendant()
  • Enforce 10-level depth limit for nested locations
  • Support computed properties for hierarchy traversal

UI Updates:

  • EditLocationView: Add parent location picker with depth indicator
  • LocationItemCard: Show badge indicating child location count
  • LocationsListView: Filter to show only root locations, search includes full path
  • InventoryListSubView: Display child locations section when viewing a location
  • InventoryListView: Add navigation support for child locations

Delete Workflow:

  • Add confirmation dialog with options when deleting locations with children
  • Option A: Cascade delete all child locations and unassign items
  • Option B: Move children to different parent location via picker sheet
  • MoveChildrenView: New sheet for selecting new parent when moving children

Search & Navigation:

  • Search functionality includes nested location paths
  • Sequential display of hierarchy with visual indicators
  • Navigation from parent to child locations within InventoryListView

Implement comprehensive nested locations feature with the following capabilities:

Model Changes:
- Add parent relationship property to InventoryLocation
- Add helper methods: getChildren(), getDepth(), canAddChild(), getFullPath(), getAncestors(), isDescendant()
- Enforce 10-level depth limit for nested locations
- Support computed properties for hierarchy traversal

UI Updates:
- EditLocationView: Add parent location picker with depth indicator
- LocationItemCard: Show badge indicating child location count
- LocationsListView: Filter to show only root locations, search includes full path
- InventoryListSubView: Display child locations section when viewing a location
- InventoryListView: Add navigation support for child locations

Delete Workflow:
- Add confirmation dialog with options when deleting locations with children
- Option A: Cascade delete all child locations and unassign items
- Option B: Move children to different parent location via picker sheet
- MoveChildrenView: New sheet for selecting new parent when moving children

Search & Navigation:
- Search functionality includes nested location paths
- Sequential display of hierarchy with visual indicators
- Navigation from parent to child locations within InventoryListView
@camdenwebster camdenwebster linked an issue Dec 20, 2025 that may be closed by this pull request
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.

Add "Boxes" feature (nested locations)

2 participants