Paradaux
IssuesPAR-17BacklogOpen ↗
0

Ability to see space available in chestshops in API/UI on top of stock

Show the space available in chestshops (free room in the container, on top of current stock) in the API/UI — for surfacing selling opportunities.

Technical notes — Only current_stock is captured/surfaced (chestshop_shop.current_stock, written by ChestShopMarketMapper.upsertShop/updateShopStock); there's no remaining-free-space column. For a SELL shop, buyers care about space left. ChestShop-3 InventoryUtil.fits/getAmount already compute free room at the source. Add a current_space (+ capacity) column to chestshop_shop and a param to upsertShop/updateShopStock, compute it ChestShop-side via InventoryUtil, and surface it alongside stock in the market mapper/DTO.

Comments

tesks · Jun 4, 2026, 9:57 AM

Code context — Only current_stock is captured/surfaced (chestshop_shop.current_stock, written by ChestShopMarketMapper.upsertShop/updateShopStock); there's no remaining-free-space column. For a SELL shop, buyers care about space left (how many more it can buy), which isn't recorded. ChestShop-3 InventoryUtil.fits/getAmount already compute free room at the source.

Approach: add a current_space (+ capacity) column to chestshop_shop and a param to upsertShop/updateShopStock, compute it ChestShop-side via InventoryUtil, and surface it alongside stock in the market mapper/DTO.

Activity

  • tesks description: Description updatedJun 4, 2026, 10:02 AM
  • tesks commentedJun 4, 2026, 9:57 AM
  • tesks assigned Assigned to rianJun 4, 2026, 9:27 AM