-
Notifications
You must be signed in to change notification settings - Fork 0
Org inventory management UI #29
Copy link
Copy link
Open
Labels
frontendFrontend app and dashboardFrontend app and dashboardinventoryInventory system featuresInventory system featuresorgsOrganization-related behaviorOrganization-related behaviorui-uxUser interface and experienceUser interface and experienceuser-storyEnd-user facing feature storyEnd-user facing feature story
Milestone
Metadata
Metadata
Assignees
Labels
frontendFrontend app and dashboardFrontend app and dashboardinventoryInventory system featuresInventory system featuresorgsOrganization-related behaviorOrganization-related behaviorui-uxUser interface and experienceUser interface and experienceuser-storyEnd-user facing feature storyEnd-user facing feature story
User Story
As an organization member, I need a dedicated org inventory page that shows org-owned items and member-contributed items with clear ownership labeling, filtered by category and ownership type, and respects my role permissions (read-only vs. editable), so that I can manage and review my organization's collective inventory without confusion about who owns what.
Background
Updated to reflect finalized schema. Inventory is now backed by
station_inventory_itemwith polymorphicowner_type/owner_idownership. Org-owned rows haveowner_type = 'org'. Member-contributed rows haveowner_type = 'user'andis_org_available = TRUE. Seedocs/schema/inventory-catalog-design.md.Definition of Done
/org-inventoryroute and page component createdAll | Org-Owned | Member-Contributed— updates without page reloadGET /api/catalog/categories, multi-selectcanManageInventorysee read-only rowspnpm typecheckpassesAcceptance Criteria
GET /api/inventory?ownerType=org&ownerOrgId=:idreturns org-owned rows (owner_type='org',owner_id=:id)GET /api/inventory?ownerType=user&orgId=:id&orgAvailable=truereturns member-contributed rows (is_org_available=TRUEfor members of the org)Depends on
station_inventory_itemmigrationGET /api/catalogendpointRelated
docs/schema/inventory-catalog-design.md