Fixes — category mapping, Grandus prices, loyalty programme and more
A round of fixes that removes several error states across the application. (1) Category-mapping rules with an empty filter — a rule with an empty product filter would silently apply to every product; such a rule can no longer be saved, and the rule forms check for it too. (2) Grandus price from an active variant — the transfer to Grandus took the price from a product’s first variant even when that variant was deactivated (for example after a sale ended). It now skips inactive variants and uses the first active one. (3) Loyalty programme — credits for a cancelled order are now correctly reversed, the queue of pending rewards no longer piles up, redeeming a reward in the shop now works, and recording a reward no longer fails when the same notification arrives twice. (4) Category-mapping step in automations — in an automation run for a single product, the mapping was applied to the whole catalogue; it now affects only that product. (5) Product duplicates — filters in the page address, search, sorting and the date range work reliably, and a loading error is shown right on the screen. (6) Category mapping and templates — fixed tag display, template import, applying a rule, opening in a new tab and page scrolling behind an open dialog. (7) Translations — translations started at the same time no longer interfere with each other.