10 Commits
Author SHA1 Message Date
Adam Daley febec281a6 Migrate product models and enhance promo redemption functionality (#3587)
* Migrate product models; add `promo_redemption`

* Add DomainPricing & ProductOrder repositories

* Use Promo entity typehints and update tests

* Use DI logger, validate order config, update tests

* Replace `error_log` with logger; use stubs in tests

* Use attachOrderConfig and tighten service checks

* Clarify domain defaults and remove deprecated doc tag

* Add missing indexes to `promo_redemption` table

* Enrich promo API arrays and add redemption filters

* Various UI/JS fixes and template cleanups

* Log invoice issues as warnings; expose form_id

* Normalize spelling in UpdatePatcher comment

* Remove checkLimits production method and clean up stale test mocks

* Use getConfig() and add promo permission

* Use container logger directly, remove helpers

* Use defaults for optional Twig settings

* Import macro_functions into admin template

* Compensate promo redemptions on checkout failure

* 🐛 Fix product category and add-on availability handling
2026-06-18 17:56:14 +01:00
c7f43acac7 Use fb_api_link instead of custom event listeners in Huraga (#3794)
* Use fb_api_link rather than custom event listeners in Huraga

* API.js: Fall back to window.prompt when Modals isn't present in the theme

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-18 05:36:16 +01:00
Adam DaleyandCopilot Autofix powered by AI 98f68a8654 Refactor esbuild helpers and add JS checker with asset optimization (#3774)
* Refactor esbuild helpers and theme builds

* Add JS checker, esbuild splitting, lazy-load assets

* Refactor esbuild scripts; add flag icons

* Fix for pull request finding 'Useless conditional'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-14 15:56:35 +01:00
Adam Daley 1f9a677695 Refactor icon sprite generation and update logo handling (#3772)
* Refactor icon sprite generation and theme builds

* Add svg-sprite to root deps, remove from themes

* Use public_logo_url and logo fallbacks in templates

* Replace xlink:href with href and add icon tools

* Refactor icon sprite build and theme paths

* Replace flag icon styles and update TomSelect

* Replace em dash with colon in update template
2026-06-14 15:13:01 +01:00
Adam Daley 7927792fe1 Enhance API with batch retrieval and admin transaction handling (#3769)
* Set X-Requested-With for same-origin requests

* Add string type hints and update copyrights

* Make addon API output admin-aware

* Admin mark-as-paid: save transaction and mark processed

* Use batch API fetch for order list

* Use batch API retrieval for orders

* Remove hardcoded 'Payment gateway' fallback

* Allow mixed value type for hash filter

* Fix custom admin transaction handling
2026-06-14 03:11:52 +01:00
Adam DaleyandCopilot Autofix powered by AI b73e4ce09c Replace legacy icons and standardize SVG icon markup (#3758)
* Replace legacy icons and add icon sprite generator

* Update package-lock.json

* Standardize SVG icon markup and fallback

* Render client email as plain text

* Fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Add dedicated email signature for templates

* Fix Huraga SVG sprite theme resolution (#3760)

🐛 Fix SVG sprite theme resolution

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-12 02:14:40 +01:00
Yağızhan Burak Yakar 6ae8afd412 Redirect to the correct tab after creating product categories (#3648)
* Redirect to the correct tab after creating product categories

* Make API wrapper reload instead of a no-op redirect if the URL is the same
2026-05-29 20:07:54 +03:00
Adam Daley 24327faba9 Update documentation links and remove legacy errors (#3635) 2026-05-28 21:06:42 +01:00
Adam DaleyandCopilot Autofix powered by AI b085de6809 Remove unused dependencies and update DDEV config for MariaDB (#3634)
* Remove theme/module images and asset copy logic

* Remove unused deps and copyAssets helper

* Update DDEV config: MariaDB 11.8 & hooks

* Switch DB to MariaDB in compose and installer

* Update theme screenshots for two themes

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Set Node.js version to 24 in DDEV config

Add nodejs_version: 24 to .ddev/config.yaml to ensure DDEV uses Node.js 24 for project containers and build tooling.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-28 20:37:56 +01:00
Adam Daley 6b9f775150 Refactor frontend, build process, and update documentation (#3625)
* Add frontend core, editor adapter & API refactor

* Remove unused Twig macro import and legacy filter

* Move gateway assets to public/gateways

* Include frontend build and assets in Docker image

* Move branding assets to public and refactor build

* Refine update page UI text and styles

* Add 'miterlimit' to cspell word list

* Bump dependencies in composer.lock

* Add esbuild helpers and update imports

* ddev: Node 24, tighten /data & build checks

* Remove .qwen/settings.json

* Docs: expand frontend, build and dev setup

* Add 'docroot' to cspell word list
2026-05-28 12:47:37 +01:00