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.
Code context — Only
current_stockis captured/surfaced (chestshop_shop.current_stock, written byChestShopMarketMapper.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/getAmountalready compute free room at the source.Approach: add a
current_space(+ capacity) column tochestshop_shopand a param toupsertShop/updateShopStock, compute it ChestShop-side viaInventoryUtil, and surface it alongside stock in the market mapper/DTO.