feat: nahradenie produktov pri importe ZIP, mensia cena od 10 EUR v cenovke, prevod SVG cenoviek

- import ZIP: volba Vymazat doterajsie produkty v sekcii
- vrstva ceny: longPriceScale (Cena od 10 EUR) zmensi dvojciferne eura, uciaria ostava
- skript na prevod SVG z Illustratora na pozadia sablon (texty na krivky,
  jedinecne triedy a id, zarovnanie tela cenovky)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub_HostacnyandClaude Opus 5.5 committed 2026-10-21 16:00:35 +02:00
1 parent bd67fc7020
commit fa824c541e
6 files changed
+173 -11

No files matched your search

+2 -2
View File
@@ -349,7 +349,7 @@ export default function Home() {
setSelectedModuleId(newMod.id);
};
const handleImportProducts = (imported: ProductItem[]) => {
const handleImportProducts = (imported: ProductItem[], options?: { replace?: boolean }) => {
if (!selectedModuleId) return;
const target = campaign.modules.find((m) => m.id === selectedModuleId);
if (!target || target.type !== 'products_grid') {
@@ -374,7 +374,7 @@ export default function Home() {
...target,
data: {
...target.data,
products: [...(target.data.products || []), ...withLayout]
products: options?.replace ? withLayout : [...(target.data.products || []), ...withLayout]
}
};
handleUpdateModule(updated);