mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
In lazy mode minimongo holds only the loaded window, so the list card-counter badge and the WIP-limit checks (reachedWipLimit / exceededWipLimit, the add-card gate, and setting the WIP limit to the current count) previously reflected only the cards loaded so far. They now use lazyListCardCount(), which subscribes to and reads the server-side count for the SAME selector list.cards(swimlaneId) uses (listCardsSelector + the board Filter) — so the count is exactly the accurate value list.cards(swimlaneId).length would report if every card were loaded. The template's whole-list count uses (cards.length) are routed through a new cardsCountWhole helper the same way. Default 'all' mode falls back to the loaded length and is unchanged.