Commit Graph
6509 Commits
Author SHA1 Message Date
3b2ca2a92b Apply PHP Code Styling & Quality Changes (#3811)
* Apply PHP Code Styling & Quality Changes

* Fix docblock return type to float

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
0.8.3
2026-06-20 00:49:01 +01:00
renovate[bot] 838567edd5 Lock file maintenance 2026-06-19 22:11:35 +00:00
Adam DaleyandCopilot Autofix powered by AI 32e9896af7 Fixes for 3 code quality findings in Invoice tests (#3810)
* 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-19 23:03:41 +01:00
Adam DaleyandCopilot Autofix powered by AI 682c85d880 Fixes for 2 code quality findings (#3809)
* 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-19 22:42:46 +01:00
Adam Daley 0f29d0794e Add invoice hash self-healing and patch backfill (#3807)
* Add invoice hash self-healing and patch backfill

* Simplify invoice-hash comments and update test

* Update last_patch to 74

* Fix invoice hash backfill case matching
2026-06-19 22:08:34 +01:00
renovate[bot] cf547d76b1 Update composer:2 Docker digest to 7725eb4 2026-06-19 19:47:52 +00:00
dependabot[bot] a9a2b043b9 Bump guzzlehttp/psr7 from 2.11.0 to 2.12.1 in the composer group across 1 directory (#3806)
Bump guzzlehttp/psr7 in the composer group across 1 directory

Bumps the composer group with 1 update in the / directory: [guzzlehttp/psr7](https://github.com/guzzle/psr7).


Updates `guzzlehttp/psr7` from 2.11.0 to 2.12.1
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/2.12/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.11.0...2.12.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-version: 2.12.1
  dependency-type: indirect
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-19 20:47:05 +01:00
renovate[bot] 9d2e9cf387 Update dependency friendsofphp/php-cs-fixer to v3.95.10 2026-06-19 18:04:11 +00:00
Yağızhan Burak YakarandAdam Daley 7ade5bbdf3 Unify public tickets with client tickets (#3799)
* Merge public ticket logic into regular client tickets

* Unified email templates

* Unified events and listeners

* Remove passthrough service methods

* Corrected phpDocs

* Create a combined `author` array to replace `client`, `client_id`, `author_name`, `author_email`

* Switch to using "Author" instead of "Requester"

* Switch to using a single endpoint and single template for client and guest tickets

Also left a redirect behind to make sure previously sent emails still have a working link

* Add author_role parameter to onBeforeClientOpenTicket

* Adjusted rate limit ordering

* Update Twig templates and the update patcher

* "Public ticket" -> "Guest ticket"

* Addressed code review comments

* Address code review comments

* Also purge old pticket email templates

* Fix email sending

* Support: enforce auth, fix guest email links

* Migrate mod_support config key name

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-06-19 19:01:52 +01:00
Adam Daley f39fd44f0f Add is_cron flag and limit cron-admin fallback (#3805)
* Add `is_cron` flag and limit cron-admin fallback

* Restore cron context after cron runs

* Fix cron context restoration test
2026-06-19 11:50:14 +01:00
renovate[bot] 7a5a2f057b Update actions/checkout action to v7 (#3804) 2026-06-18 18:51:50 +01:00
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