Commit Graph
6498 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
Adam DaleyandCopilot Autofix powered by AI 0d6c34137c Fixes for 4 code quality findings in Invoice module (#3803)
* Apply suggested fix to src/modules/Invoice/tests/Unit/ServiceTest.php from Copilot Autofix

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

* Apply suggested fix to src/modules/Invoice/tests/Unit/ServiceTest.php from Copilot Autofix

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

* Apply suggested fix to src/modules/Invoice/tests/Unit/ServiceTest.php from Copilot Autofix

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

* Apply suggested fix to src/modules/Invoice/tests/Unit/ServiceTest.php from Copilot Autofix

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-18 17:16:05 +01:00
FOSSBilling BotandFOSSBilling Bot 5a43315fe8 Apply PHP Code Styling & Quality Changes (#3802)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-06-18 16:47:19 +01:00
Adam Daley f47617c7ae Enhance registrar, email, staff, domain features and pagination (#3801)
* Enhance registrar, email, staff, domain, pagination

* Validate Reply-To and improve domain error message

* Use auth isAdminLoggedIn instead of exception
2026-06-18 15:49:39 +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
renovate[bot] 986b044bdd Update dependency rector/rector to v2.4.6 2026-06-18 04:03:53 +00:00
59a24d7714 Replace Coloris with native input type="color" (#3795)
* Replace Coloris with native `input type="color"`

* 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:02:55 +01:00
Yağızhan Burak YakarandAdam Daley 9142057d42 Removed dead code & Code refactoring (#3796)
* Replace hardcoded recurrent pricing rows with a loop

* Replace long if chain with a Twig map

* Remove unnecessary uninstall method for Branding

* Remove dead `createServicePlan` method in Plesk adapter

* Make setDi() disallow passing null

This would actually match what's expected in InjectionAwareInterface.

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-18 04:49:36 +01:00
Yağızhan Burak YakarandAdam Daley f3673742f8 Improve Huraga pagination to automatically redirect to the correct tab (#3797)
* huraga: Automatically display linked tab

* huraga: Accept a `hash` value in pagination partial

* Use hash-based tab behavior rather than local workarounds

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-18 04:40:51 +01:00
renovate[bot] 687075defc Update docker/dockerfile Docker tag to v1.25 (#3798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-18 04:27:27 +01:00
renovate[bot] 8204943419 Update dependency friendsofphp/php-cs-fixer to v3.95.8 2026-06-17 16:18:49 +00:00
Yağızhan Burak Yakar bb4e29d590 Update WHM API auth label to include API token (#3793) 2026-06-17 19:14:08 +03:00
renovate[bot] b04e6c3998 Update release-drafter/release-drafter digest to ed4bc48 2026-06-17 02:15:24 +00:00
Adam Daley 98b75dd680 Refactor extension service types and add theme toggling (#3789)
* Refactor Extension service types, fix button text

* Add persistent light/dark theme toggling

* Update cspell.json

* Expose dark logo and update login templates

* Safely check footer link enabled setting
2026-06-16 23:14:11 +01:00
Adam Daley a56767e1fc Fix API permission identity forwarding and IPN subscription/deposit payment handling (#3788)
* Add AbstractApi::checkPermissions and patch71

* Bump last_patch setting to 71

* Add tests for AbstractApi::checkPermissions

* Handle subscription renewals and validate payments

* Add overpayments to cspell word list

* Treat null transaction amounts as 0

* Mark deposit invoices as paid; add unit test

* Test overpayment warnings in validatePaymentAmount
2026-06-16 20:33:47 +01:00
Adam DaleyandCopilot Autofix powered by AI 8e1842676e Fix for 1 code quality finding in Huraga theme (#3787)
Apply suggested fix to src/themes/huraga/html/layout_public.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-16 11:26:18 +01:00
105842daf5 Apply PHP Code Styling & Quality Changes (#3786)
* Apply PHP Code Styling & Quality Changes

* Add 'missingmodule' to cspell ignore list

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-16 11:16:23 +01:00
Adam Daley 239321a2f7 Add type hints to Stripe and update tests/template (#3785)
Add type hints to Stripe; update tests/template
2026-06-16 10:53:25 +01:00
Adam Daley eaaf137315 Qualify classes and enhance Stripe appearance (#3784)
Qualify classes and add Stripe appearance
2026-06-16 10:29:10 +01:00
Adam Daley f3ad3d2aa4 Cast database getCell results to integer (#3783)
* Cast db getCell results to int

* Add logo image_width and adjust toast z-index

* Use theme-specific public logo in layout
2026-06-16 08:39:51 +01:00
Adam Daley ef2bc70319 Mark transactions as errored and implement SQL claim fixes (#3782)
* Mark transactions as errored and allow retries

* Use IN for claim SQL and fix logger args
2026-06-16 08:18:04 +01:00
renovate[bot] 2afd52b2af Lock file maintenance 2026-06-16 05:52:53 +00:00
renovate[bot] cd92d51a6f Update composer:2 Docker digest to e8fdff9 2026-06-16 03:48:28 +00:00
Adam Daley e5ccf2d688 Fix invoice layout and add company logo width (#3778)
Invoice fixes and add company logo width
2026-06-15 18:37:59 +01:00
renovate[bot] 15e846184c Update phpmyadmin:5 Docker digest to 51b7480 2026-06-15 06:05:11 +00:00
renovate[bot] 1e0337c704 Update composer:2 Docker digest to 1c62c57 2026-06-15 02:52:37 +00:00
Adam DaleyandCopilot Autofix powered by AI 7f5de0de88 Fix for 1 code quality finding in Huraga (#3777)
Apply suggested fix to src/themes/huraga/html/partial_pending_messages.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-14 19:53:30 +01:00
Adam Daley d6c2b718ea Refactor API handling and switch to Composer autoload (#3776)
* Remove AntLoader and switch to Composer autoload

* Use DI-provided http_client and remove include_path

* Introduce Api_Dispatcher and refactor Api_Handler

* Add FOSSBilling\Api\Proxy and refactor API dispatcher

* Replace Api_Handler with FOSSBilling\Api\Identity

* Move/rename API base class and update DI key

* Fix Docker Composer autoload build

* Fix Docker runtime autoload paths

* Preserve vendor autoload in Docker runtime

* Fix cron task calls without params

* Fix update autoload fallbacks
2026-06-14 19:28:11 +01:00
Adam Daley bbda2e4cf0 Fix Huraga pending flash message timing (#3775)
Fix Huraga pending message initialization
2026-06-14 16:13:15 +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 0a9c16c528 Add module-level company logo partial fallback (#3773)
Add module logo partial fallback
2026-06-14 15:46:50 +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
FOSSBilling BotandFOSSBilling Bot 638d8a5015 Apply PHP Code Styling & Quality Changes (#3771)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-06-14 14:15:33 +01:00
Adam Daley d04256f89c Clear stale unpaid_invoice references, and update queries & tests (#3770)
Clear stale unpaid_invoice refs; update queries & tests
2026-06-14 07:07:55 +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
renovate[bot]andAdam Daley 94893fb315 Update dependency dicebear/core to v10.3.0 (#3768)
* Update dependency dicebear/core to v10.3.0

* Use Style::fromJson to load avatar style

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-14 00:56:49 +01:00
renovate[bot] 008c2c18cd Update dependency prinsfrank/standards to v3.16.5 2026-06-13 21:31:01 +00:00
renovate[bot] cf7641a616 Update dependency friendsofphp/php-cs-fixer to v3.95.7 2026-06-13 21:11:03 +00:00
Adam Daley cb412f3e16 Fix admin order templates and enhance PayPalEmail service (#3765)
* Fix admin order templates null and binding checks

* Use Invoice service in PayPalEmail; add defaults/tests

* Guard against undefined permissions and category
2026-06-13 13:10:10 +01:00
renovate[bot] 164ab76889 Lock file maintenance 2026-06-13 02:05:45 +00:00
Adam Daley fbfb7746f4 Render email example and add tests for Twig tags (#3764)
* Render email example verbatim and add test

* Fix typo and prevent raw Twig apply tags in sample

* Update cspell.json
2026-06-13 02:57:32 +01:00
renovate[bot] 450774f6dc Update dependency stripe/stripe-php to v20.2.1 2026-06-13 01:08:52 +00:00
renovate[bot] 7baecf60ff Update dependency pestphp/pest to v4.7.3 2026-06-13 00:47:26 +00:00
Adam Daley 106198ad92 Add legacy IPN query mappings and reorder rules (#3763)
* Add legacy IPN query mappings and reorder rules

* Clarify IPN rewrite comments in .htaccess

* Add ipn.php rewrite rules for bb_* params
2026-06-13 01:46:17 +01:00
renovate[bot] e3a49f5310 Update dependency sass to v1.101.0 (#3761)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-12 02:47:35 +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
renovate[bot] 402e98617a Update dependency esbuild to v0.28.1 (#3759)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-12 02:00:06 +01:00
renovate[bot] bbe375226d Update dependency sentry/sentry to v4.28.0 (#3757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-12 01:34:03 +01:00
renovate[bot] 7c8a129fff Update phpmyadmin:5 Docker digest to c9f2c37 2026-06-11 20:32:44 +00:00
renovate[bot] 1ca173f5bd Update composer:2 Docker digest to c883af1 2026-06-11 18:54:32 +00:00