72 Commits
Author SHA1 Message Date
Adam Daley 0ac0cdafe0 Migrate frontend JavaScript to TypeScript (#3950)
* Migrate frontend JavaScript to TypeScript

* Fix Docker frontend TypeScript checks

* Address TypeScript migration review feedback

* Avoid duplicate cron system admin during patches
2026-07-11 08:07:26 +01:00
renovate[bot] af9f63d3f1 Update composer:2 Docker digest to 5946476 2026-07-08 01:33:01 +00:00
renovate[bot] 1cb8fdfe6d Update composer:2 Docker digest to 805ff9b 2026-07-07 00:59:48 +00:00
renovate[bot] cf547d76b1 Update composer:2 Docker digest to 7725eb4 2026-06-19 19:47:52 +00: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] cd92d51a6f Update composer:2 Docker digest to e8fdff9 2026-06-16 03:48:28 +00:00
renovate[bot] 1e0337c704 Update composer:2 Docker digest to 1c62c57 2026-06-15 02:52:37 +00: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
renovate[bot] 1ca173f5bd Update composer:2 Docker digest to c883af1 2026-06-11 18:54:32 +00:00
Adam Daley 09ae454b8f Add id to composer cache mounts in Dockerfile (#3727)
Add id to composer cache mounts in Dockerfile
2026-06-06 06:24:26 +01:00
renovate[bot] a64142f301 Update composer:2 Docker digest to 41959f5 2026-06-06 02:10:41 +00:00
renovate[bot] 59f1214b09 Update composer:2 Docker digest to 48a8cb8 2026-06-04 21:52:39 +00:00
Adam Daley 4315d610b2 Move E2E tests into modules and update test config (#3707)
* Move E2E tests into modules and update test config

* Update php-build-test.yml

* Remove premature curl_close calls

* E2E tests: clean assertions, cart client, currency

* Refactor E2E tests imports & assertions

* Fix Antispam E2E - skip disposable email test when domain list unavailable
2026-06-03 11:18:29 +01:00
Adam Daley dd3dcbfd52 Enhance type safety, authentication checks, and testing framework (#3701)
* Improve type safety, auth checks and PHPStan fixes (#3250)

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Improve type safety, auth checks and PHPStan fixes

* Remove @phpstan-ignore annotations

* Remove redundant @phpstan-ignore comment

* Improve code robustness and reliability (#3248)

* Harden code against null/undefined values

* Update dependency lockfiles

* Sanitize ticket input and use IDs in email list

* Restructure tests and add test utilities

* Move E2E tests to `Library\E2E` namespace

* Update `php-build` action ref in workflows

* Switch tests to Pest and add test scaffolding

* Refactor E2E tests to Pest-style tests

m

Skip E2E tests when env not configured

* Refactor Unit tests and update test config

Add test datasets and refine test helpers

* Add DEBUG guard, fix API JSON decode, update tests

* Refactor tests: add types and Mockery expectations

* Adjust tests, phpstan config, and composer script

* Instantiate test APIs locally, remove beforeEach

* Refactor runtime checks, types & logging

* Apply PHP Code Styling Changes

m

* Add PHPStan ignores, test renames & small fixes

* Enable Pest tests in CI workflow

* Remove legacy tests; add new unit tests/config

* Avoid undefined index in fingerprint comparison

* Ignore properties absent in both fingerprints

* Remove public_ticket_create API method

* Add Fingerprint unit tests

* Remove em dash from fingerprint test name

* Switch to Pest; assorted bug fixes & refactors

* Prefer getDi() and guard DEBUG define

* Refactor tests: DBAL, Antispam rename, helpers

* Refactor email tests to use Doctrine entities

* Update tests, use DBAL mocks & improve Formbuilder admin

* Validate plan_id and update unit tests

* Replace error_log with DI logger and update tests

* Expect db->store in Invoice Service test

* Use DI logger instead of error_log; fix tests

* Fix typo in Hook Service test

* Fix Staff test spelling fixture

* Complete Pest test migration

* Fix Product test spelling fixtures

* Fix Product test spelling fixtures

* Run live tests with Pest and load helpers

* Migrate tests to ApiClient; remove legacy APIHelper

* Fix Email test spelling

* Remove unused PHPUnit bridge

* Organize Cypress end-to-end tests

* Document Pest test directory root

* Remove noisy Pest comments
2026-06-02 07:43:01 +01:00
Adam Daley afee4c3cb9 Update Dockerfile version injection and add tests (#3665) 2026-05-30 11:40:34 +01:00
renovate[bot] a7539eebb1 Update composer:2 Docker digest to 1b73755 2026-05-29 02:13:29 +00:00
b08afe595d Revamp installer UI and enhance config validation (#3629)
* Robust config validation & installer cleanup

* Revamp installer UI, JS and messages

* Fix for pull request finding

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

* Fix installer redirect to only missing config case

* Add Config invalid-file regression tests

* Remove config.php chown/touch from Dockerfile

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-28 17:26:27 +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
474fa6b24c Introduce E2E tests using Cypress (#3563)
* Introduce E2E tests using Cypress

* Removed unrelated submodule

* Add Cypress Cloud project ID

* Save Cypress runs to Cloud

* Pass commit information to the container

* Added admin smoke tests

* Redo Cypress workflow

* Increase shm size

* Run Cypress using Electron

* Add dedicated Docker network alias

* Fixed hostname

* Validate sessions via browser navigation

* Disable session fingerprinting during Cypress tests

* Adjust smoke test paths

* Move Cypress usage to npx

* Remove redundant assertions

* Added basic tests for the client area

* Make spellcheck happy

* Fix test cases

* Added client support lifecycle tests

* Separate tests by directories

* Account for the max subject length

* Fix an actual FOSSBilling error

* Getting around the subject character limit

* Restored the long subject

* Timing issues with Bootstrap modals

* 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>

* Only upload artifacts when recording is disabled

---------

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-05-24 00:35:52 +03:00
renovate[bot] 24718cecd2 Update composer:2 Docker digest to b09bccd 2026-05-16 23:01:03 +00:00
renovate[bot] 8a1bb13533 Update composer:2 Docker digest to 1364b5b 2026-05-15 00:20:23 +00:00
renovate[bot] 6a20469667 Update docker/dockerfile Docker tag to v1.24 (#3532) 2026-05-14 12:00:43 +01:00
renovate[bot] 5af957a8a0 Update composer:2 Docker digest to 02062f7 2026-05-11 15:49:34 +00:00
renovate[bot] e945751ed6 Pin dependencies (#3512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 00:29:29 +01:00
renovate[bot] ffd7d63f8f Update docker/dockerfile Docker tag to v1.23 (#3513) 2026-05-11 00:19:27 +01:00
b82df887fe Enhance CI/CD with Docker optimizations and error handling (#3509)
* Bump Dockerfile syntax to 1.18

* Add getStatusCode to Response and update test

* Expect error code 740 for invalid theme action

* Use Docker-based CI/test image and live test script

* Add PHP 8.5 to CI matrix

* Add Buildx caching and optimize Docker build

* Add CI timeouts, quoting fixes, and release tree build

* Add concurrency, caching, and cleanup to CI

* Grant permissions for preview-build job

* Map error code 740 to HTTP 404 and update test

* Update cache-scope names in GitHub workflows

* Remove redundant status guard in theme admin test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/b20f484f-0aaa-4afc-ae43-adb264bb05aa

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Grant cache export permissions to CI build job

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/a088c94f-a176-40fb-9e0b-ee3cac2aeb5b

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Disable cache for release artifact build

* Fix for pull request finding

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

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-10 22:43:16 +01:00
Adam Daley f7f7fbc3df Enhance security, validation, and configuration for various services (#3507)
* Use `\A` and `\z` anchors in Finder regex

* Run config patches before core patches

* Ensure cron log exists and owned by www-data

* Change numeric inputs to text for plan limits

* Invoke global listeners for fired event

* Sanitize PDF filenames in `createPdfResponse`

* Use `array_key_exists` for blacklist check

* Prefer custom package value for DirectAdmin

* Validate password argument type in isPasswordStrong

* Skip non-installed non-core modules in Hook Service

* Instantiate `DoctrinePaginator` after limits

* Validate guest message is a string

* Adjust mocks in Hook ServiceTest

* Validate currency conversion rate input

* Stop accepting CSRF header token

* Add `.dockerignore` and modernize CI/Dockerfile

* Mock `CurrencyRepository` in `ServiceTest`

* Add antispam hooks for client/admin login

* Move password reset captcha before rate limiting

* Add sandbox attribute to email preview iframe

* Skip reprocessing and include payment_intent check

* Check password reset captcha after rate limit

* Enhance testCreateAndProcess with DB and TX mocks
2026-05-10 16:46:22 +01:00
renovate[bot] d49c3be4bc Update php:8.5-apache Docker digest to d81a85c 2026-05-10 05:58:52 +00:00
renovate[bot] e70a44b629 Update php:8.5-apache Docker digest to 9d8e90a 2026-05-09 05:02:04 +00:00
renovate[bot] 6e9789ea75 Update php:8.5-apache Docker digest to e55e196 2026-04-23 01:34:23 +00:00
renovate[bot] d6fa05ade2 Update php:8.5-apache Docker digest to 103a8cd 2026-04-11 01:05:26 +00:00
renovate[bot] 511d6cff6f chore(deps): update php:8.5-apache docker digest to 11a145b 2026-04-08 06:54:16 +00:00
renovate[bot] d9a1c894b3 chore(deps): update php:8.5-apache docker digest to e55a9f8 2026-03-18 00:15:38 +00:00
Copilotandadmdly 7ce4ff3f76 Fix cron logging, invoice status badges, address rendering, and test assertions (#3339)
Fix cron logging, invoice badge/address rendering, and test assertions

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-17 13:30:40 +00:00
renovate[bot] 5a9fb6bf1f chore(deps): update php:8.5-apache docker digest to f311cd4 2026-03-17 04:59:08 +00:00
renovate[bot] a1772b1457 chore(deps): update php:8.5-apache docker digest to 0a7f944 2026-03-14 01:48:08 +00:00
renovate[bot] bd07bea6c4 chore(deps): update php:8.5-apache docker digest to 8270b39 2026-03-13 02:43:12 +00:00
Adam DaleyandCopilot Autofix powered by AI 7b9ea209fb Fix for 1 code quality finding (#3275)
Apply suggested fix to Dockerfile from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-02-27 21:09:39 +00:00
Adam DaleyandCopilot Autofix powered by AI d80f6a456c Fix for 1 code quality finding (#3266)
Apply suggested fix to Dockerfile from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-02-27 13:34:35 +00:00
renovate[bot] 02697c3bef chore(deps): update php:8.5-apache docker digest to 9be84c4 2026-02-26 01:31:53 +00:00
renovate[bot] 1323879047 chore(deps): update php:8.5-apache docker digest to ec39469 2026-02-25 01:14:45 +00:00
renovate[bot] 1d79201ca3 chore(deps): update php:8.5-apache docker digest to 29e2ade 2026-02-14 06:06:17 +00:00
renovate[bot] a69098f0c4 chore(deps): update php:8.5-apache docker digest to 434b2fa 2026-02-04 06:28:56 +00:00
renovate[bot] 0d175d38ba chore(deps): update php:8.5-apache docker digest to 33ee34a 2026-01-18 01:13:58 +00:00
renovate[bot] 4756ba31d8 chore(deps): update php:8.5-apache docker digest to 30adf7f 2026-01-17 05:37:02 +00:00
renovate[bot] a34e8cf7c9 chore(deps): update php:8.5-apache docker digest to 78625ce 2026-01-16 08:13:52 +00:00
Copilotandadmdly 117eb1979a Improve Docker container practices in Dockerfile (#3153)
* Fix Dockerfile: update PHP version to 8.3 and improve Docker practices

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Revert PHP version back to 8.5 with SHA256 pin

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-01-14 12:48:12 +00:00
Copilotandadmdly 65ab68ca78 Fix Dockerfile: remove unused packages, improve caching, start cron daemon (#3151)
* Fix Dockerfile: update PHP version, remove unused packages, improve caching, and start cron daemon

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Revert PHP version to 8.5-apache with SHA pinning

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-01-14 10:59:36 +00:00
renovate[bot] f9c158ea2a chore(deps): update php:8.5-apache docker digest to 96b50b7 2026-01-14 02:10:33 +00:00
renovate[bot] 52fa9f1d7e chore(deps): update php:8.5-apache docker digest to ceff122 2026-01-10 02:01:55 +00:00