Commit Graph
305 Commits
Author SHA1 Message Date
renovate[bot] ff728dda77 chore(deps): update actions/checkout digest to de0fac2 2026-02-04 02:34:57 +00:00
renovate[bot] e51690664f chore(deps): update github/codeql-action digest to 6bc82e0 2026-02-03 02:26:29 +00:00
renovate[bot] 4d0a0d725c chore(deps): update actions/cache digest to cdf6c1f 2026-01-30 00:40:59 +00:00
30b6894600 Apply PHP Code Styling & Quality Changes (#3216)
* Apply PHP Code Styling & Quality Changes

* Remove unwnated file

* Apply PHP Code Styling & Quality Changes

* Remove unwnated file

* Update PHPUnit version to 12 in CI workflow

Bump the PHPUnit version from 10 to 12 in the GitHub Actions CI configuration to ensure tests run against the latest PHPUnit release.

* Refactor HTML sanitizer instantiation

* Refactor object instantiation

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-01-28 20:15:28 +00:00
renovate[bot] ddd3dc52b0 chore(deps): update streetsidesoftware/cspell-action digest to d5d910b 2026-01-28 06:36:13 +00:00
renovate[bot] 40d1726e5e chore(deps): update github/codeql-action digest to b20883b 2026-01-27 02:03:23 +00:00
renovate[bot] 2f778cc32e chore(deps): update github/codeql-action digest to 19b2f06 2026-01-25 01:35:10 +00:00
renovate[bot] 6df840680f chore(deps): update release-drafter/release-drafter digest to 6db134d 2026-01-23 05:32:05 +00:00
renovate[bot] 3e9c0b44fd chore(deps): update peter-evans/create-pull-request digest to c0f553f 2026-01-22 01:30:50 +00:00
renovate[bot] 5b1b3d1e84 chore(deps): update release-drafter/release-drafter digest to 267d2e0 2026-01-20 05:50:50 +00:00
renovate[bot] bc0c64e71b chore(deps): update actions/cache digest to 8b402f5 2026-01-17 02:03:12 +00:00
renovate[bot] 668d651e9b chore(deps): update actions/setup-node digest to 6044e13 2026-01-16 02:36:27 +00:00
renovate[bot]andAdam Daley 68d98bdb61 chore(deps): lock file maintenance (#3140)
* chore(deps): lock file maintenance

* chore(deps): lock file maintenance

* Update PHP 8.2 to 8.3 to complete transition

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-01-13 09:47:54 +00:00
renovate[bot] b3c6e6a71a chore(deps): update github/codeql-action digest to cdefb33 2026-01-13 01:51:46 +00:00
renovate[bot]andAdam Daley 23641e1dde chore(deps): update streetsidesoftware/cspell-action digest to 24fa8d3 (#3134)
* chore(deps): update streetsidesoftware/cspell-action digest to 24fa8d3

* Update PHPStan config to ignore `ctype_alnum` argument count

Added a new ignore rule in `phpstan.neon` for the 'Function ctype_alnum invoked with 1 parameter, 0 required' message in src/modules/Extension/Service.php. Minor formatting change in `phpstan-baseline.neon`.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-01-09 15:03:10 +00:00
renovate[bot] b6b3b01021 chore(deps): update fossbilling/.workflows digest to 11c3d3b 2026-01-06 01:55:25 +00:00
8dc2d0f39b Migrate asset build system from Webpack Encore to esbuild (#3126)
* Migrate asset build system from Webpack Encore to esbuild

Replaces Symfony Webpack Encore with esbuild for frontend asset compilation. Updates documentation, removes related dependencies and config files, and adds esbuild configuration for themes. This modernizes the build process for improved speed and maintainability.

* Remove redundant comments and spinner from build scripts

Cleaned up code by removing unnecessary comments and the spinner utility from esbuild scripts in admin_default and huraga themes. Also simplified logic in API handler, currency entity, currency service, and profile client validator by removing redundant comments and streamlining null/empty checks.

* Add new terms to cspell custom dictionary

Added 'Spriter', 'spriter', 'dataurl', and 'tomselect' to the cspell custom words list to prevent false spelling errors for these terms.

* Potential fix for code scanning alert no. 422: Shell command built from environment values

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

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

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

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

* Refactor theme build to use custom SASS and PostCSS pipeline

Replaces direct SCSS imports in JS with a custom esbuild pipeline for both admin_default and huraga themes. Adds SASS and PostCSS (autoprefixer) processing via esbuild plugins, improves tilde (~) import resolution, and ensures CSS is post-processed and source maps are handled. This change modernizes and unifies the asset build process, making it more maintainable and extensible.

* Update sass import and flag-icons path in themes

Changed sass import to use namespace import in both admin_default and huraga esbuild.mjs files for consistency. Set $flag-icons-path in huraga _flags.scss to ensure correct path resolution for flag-icons assets.

* Refactor theme CSS build to use vendor bundles

Introduces separate vendor.css files for both admin_default and huraga themes, consolidating third-party CSS imports. Updates esbuild scripts to build and include these vendor bundles, removes tilde (~) importers, and adjusts SCSS to use CSS variables instead of direct SCSS variable imports. Twig templates are updated to load the new vendor.css files, and Huraga's theme variables are migrated to CSS custom properties for better maintainability.

* Update `package-lock.json` with new CKEditor 5 packages

Added and updated multiple @ckeditor/ckeditor5-* packages to version 47.3.0 and related dependencies. This change likely prepares the project for enhanced or new CKEditor 5 features and plugins.

* Refactor theme build scripts and add shared utils

Introduces a new `@fossbilling/frontend-build-utils` package with shared helpers and esbuild plugins for theme builds. Refactors admin_default and huraga esbuild scripts to use these utilities, improving maintainability and reducing code duplication. Removes unused `sprite.js` and updates asset handling. Updates workspace configuration in `package.json` and `package-lock.json`.

* Refactor theme asset build paths and add svg sprite helper

Migrates theme asset outputs to 'assets/build' directories for both admin_default and huraga themes, updating all references and build scripts accordingly. Adds a Twig function for inlining SVG sprites. Updates SQL defaults and patcher for new asset paths. Removes direct jQuery imports from theme JS entrypoints and uses an esbuild inject shim for global jQuery. Also includes minor CSS and manifest adjustments.

* Potential 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 PurgeCSS plugin and integrate with theme builds

Introduced a new PurgeCSS plugin in frontend-build-utils to remove unused CSS from bundled files. Updated package.json and package-lock.json to include PurgeCSS and its dependencies. Integrated the plugin into the esbuild scripts for admin_default and huraga themes to enable CSS purging in production builds.

* Set NODE_ENV=production for frontend build

Ensures the frontend assets are built with production optimizations by explicitly setting NODE_ENV=production during the build step in the release workflow.

* Fix static analysis warning in module directory scan

Updated the type check in the module directory scan to use a null coalescing operator, improving compatibility with static analysis tools like PHPStan.

* Update PHPStan baseline for ctype_alnum argument count

Added a new baseline entry to ignore an argument count warning for ctype_alnum in src/modules/Extension/Service.php.

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2025-12-30 09:40:04 +00:00
Adam Daley 136480860b Raise minimum PHP version requirement to 8.3 (#3125)
* Raise minimum PHP version requirement to 8.3

Update all documentation, configuration, Composer requirements, and CI workflows to require PHP 8.3 or higher. Remove `symfony/polyfill-php83` and add `symfony/polyfill-php85`. Adjust installer and requirements checks accordingly.

* Update PHP version and dependencies

Remove PHP 8.5 from CI and workflows, standardizing on PHP 8.3 and 8.4. Update Composer dependencies in composer.json to latest compatible versions for both required and dev packages.
2025-12-30 08:13:04 +00:00
renovate[bot] 35bf1d3d72 chore(deps): update github/codeql-action digest to 5d4e8d1 2025-12-18 02:11:50 +00:00
renovate[bot] efb320c31a chore(deps): update fossbilling/.workflows digest to 684dd30 2025-12-18 00:02:34 +00:00
renovate[bot] e098925f0c chore(deps): update github/codeql-action digest to 1b168cd 2025-12-13 04:12:11 +00:00
renovate[bot] b7b6635ace chore(deps): update peter-evans/create-pull-request action to v8 (#3095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 03:39:24 +00:00
renovate[bot] 49df27d339 chore(deps): update github artifact actions (major) (#3102)
chore(deps): update github artifact actions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 03:23:20 +00:00
renovate[bot] 432620bfe1 chore(deps): update actions/cache action to v5 (#3101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 03:15:41 +00:00
renovate[bot] f573bc26cc chore(deps): update streetsidesoftware/cspell-action digest to e5a858a 2025-12-12 03:37:54 +00:00
renovate[bot] d33d8b2c38 chore(deps): update peter-evans/create-pull-request digest to 22a9089 (#3093)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 12:24:41 +00:00
renovate[bot] d5de6b0b52 chore(deps): update github/codeql-action digest to cf1bb45 2025-12-06 03:34:15 +00:00
renovate[bot] b293710d12 chore(deps): update actions/setup-node digest to 395ad32 2025-12-04 02:38:36 +00:00
renovate[bot] 0c7360d6cb chore(deps): update actions/checkout digest to 8e8c483 2025-12-03 03:03:41 +00:00
renovate[bot] d7bed940d7 chore(deps): update github/codeql-action digest to fe4161a 2025-12-02 02:51:43 +00:00
renovate[bot] f4ac181081 chore(deps): update shivammathur/setup-php digest to 44454db 2025-11-27 02:51:23 +00:00
renovate[bot] a868d962c9 chore(deps): update github/codeql-action digest to fdbfb4d 2025-11-25 00:02:49 +00:00
renovate[bot] 1d2d9c1161 chore(deps): update peter-evans/create-pull-request digest to 84ae59a 2025-11-23 00:44:31 +00:00
renovate[bot]andAdam Daley 302206803e chore(deps): update dependency sass to v1.94.2 (#3045)
* chore(deps): update dependency sass to v1.94.2

* Fix Renovate `npm install`/`package-lock.json` issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-11-20 21:17:37 +00:00
renovate[bot] f05148e197 chore(deps): update actions/checkout action to v6 (#3043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-20 19:54:22 +00:00
renovate[bot] 342003969f chore(deps): update github/codeql-action digest to e12f017 2025-11-19 01:35:50 +00:00
renovate[bot] 48836e16cb chore(deps): update actions/checkout digest to 93cb6ef 2025-11-18 02:58:17 +00:00
renovate[bot] 7c1bdb7195 chore(deps): update github/codeql-action digest to 014f16e 2025-11-14 03:48:15 +00:00
renovate[bot] adb001cfbc chore(deps): update streetsidesoftware/cspell-action action to v8 (#3022)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-12 23:34:59 +00:00
renovate[bot] 532100b289 chore(deps): update fossbilling/.workflows digest to efee8f8 2025-11-07 00:34:33 +00:00
renovate[bot] f82a1d980e chore(deps): update github/codeql-action digest to 0499de3 2025-10-31 00:12:42 +00:00
renovate[bot] 06e24e5925 chore(deps): update dependency node to v24 (#2996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 15:55:26 +00:00
renovate[bot] 0c01cbbe63 chore(deps): update github artifact actions (major) (#2990)
chore(deps): update github artifact actions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 06:15:52 +00:00
renovate[bot] c963a4be8d chore(deps): update streetsidesoftware/cspell-action digest to 76c6f6d 2025-10-27 02:45:03 +00:00
renovate[bot] 3cb461cc8f chore(deps): update github/codeql-action digest to 4e94bd1 2025-10-25 00:46:40 +00:00
renovate[bot] 0c5ba50dc3 chore(deps): update github/codeql-action digest to 16140ae 2025-10-19 03:11:17 +00:00
renovate[bot] 65ad15905f chore(deps): update actions/setup-node action to v6 (#2972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-16 17:54:00 +01:00
Adam Daley a9b903c222 Codebase modernisation, configuration cleanup, and improved type safety (#2957)
* Refactor tests to replace depreciated functions

* Update Rector config and dependencies

* Rector: Add explicit string casting for stricter type safety

* Rector: Add return type hints to methods across codebase

* Rector: Increase dead code level and refactor invoice item logic

* Remove unnecessary `willReturn` from test mocks

Eliminate redundant `willReturn(null)` and similar calls from PHPUnit mock setups in legacy module tests, leaving only method expectations. Also update some test values to use floats for consistency.

* Refactor API controller and email adapter return values

* Update formatting and guidelines in `AGENTS.md`
2025-10-11 23:39:44 +01:00
renovate[bot] 1243615b47 chore(deps): update github/codeql-action digest to f443b60 2025-10-11 00:54:59 +00:00
renovate[bot] b80a1da238 chore(config): migrate renovate config (#2959)
chore(config): migrate config .github/renovate.json

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-09 02:55:48 -07:00