Commit Graph
5812 Commits
Author SHA1 Message Date
renovate[bot] 5d2e8be867 chore(deps): update phpmyadmin:5 docker digest to ac49935 2026-02-04 08:41:30 +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] ff728dda77 chore(deps): update actions/checkout digest to de0fac2 2026-02-04 02:34:57 +00:00
renovate[bot] fbbbdb49a5 chore(deps): update dependency prinsfrank/standards to v3.16.1 2026-02-03 09:10:04 +00:00
renovate[bot] d89f33a870 chore(deps): update dependency autoprefixer to v10.4.24 2026-02-03 04:48:42 +00:00
renovate[bot] e51690664f chore(deps): update github/codeql-action digest to 6bc82e0 2026-02-03 02:26:29 +00:00
renovate[bot] 69bf7e537b chore(deps): update dependency bootstrap to v5.3.8 (#3228)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-03 02:25:33 +00:00
renovate[bot] cec29e63b5 chore(deps): lock file maintenance 2026-02-02 00:33:49 +00:00
Yağızhan Burak Yakar e12280c10f Handle null refund in base currency conversion (#3227) 2026-01-31 23:45:36 +03:00
renovate[bot] 900953fee0 chore(deps): update dependency phpstan/phpstan to v2.1.38 2026-01-31 04:49:00 +00:00
renovate[bot] 88feea89e7 chore(deps): update dependency doctrine/orm to v3.6.2 2026-01-31 00:46:20 +00:00
Yağızhan Burak Yakar 446ffbd955 Import Collapse component in Huraga (#3226) 2026-01-30 23:12:48 +03:00
renovate[bot] 4d0a0d725c chore(deps): update actions/cache digest to cdf6c1f 2026-01-30 00:40:59 +00:00
Yağızhan Burak Yakar 5a6519dd3c AGENTS.md: Add ddev usage note for PHP configuration (#3221)
Add ddev usage note for PHP configuration
2026-01-29 12:42:26 +03:00
2c86db883c Replace Gravatar with local avatar generation (#3208)
* Replace Gravatar with local avatar generation

Removed Gravatar integration and implemented local avatar generation using DiceBear Identicon for user avatars. Updated Twig templates to use a new `.db-avatar` element and added supporting JavaScript for avatar rendering.

* Replace Gravatar with local avatar generation

Removed Gravatar integration and implemented local avatar generation using DiceBear Identicon for user avatars. Updated Twig templates to use a new `.db-avatar` element and added supporting JavaScript for avatar rendering.

* Add avatar SVG caching and simplify encoding

Introduced a cache for generated avatar SVGs to improve performance by avoiding redundant computations. Also simplified SVG encoding by removing unnecessary character replacements.

* Update src/themes/huraga/assets/js/avatar.js

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

* Update src/themes/admin_default/assets/js/avatar.js

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

* Update src/themes/huraga/html/layout_default.html.twig

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

* Update src/themes/huraga/html/mobile_menu.html.twig

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

* Improve avatar background rendering in themes

Added backgroundSize, backgroundPosition, and backgroundRepeat styles to avatar containers in both admin_default and huraga themes to ensure SVG avatars are properly scaled and centered without repeating.

* Downgrade @dicebear/core and identicon to v9.0.0

* Update live-tests.yml

* Update live-tests.yml

* Update package-lock.json dependencies

Marked several dependencies as peer, removed unused dev dependencies (balanced-match, brace-expansion, concat-map, minimatch), and added sass-embedded-darwin-x64. This cleans up the dependency tree and improves package management.

* Refactor avatar generation to use hashed seed

Replaces email-based avatar generation with a hashed seed using a new Twig filter. Updates all avatar-related HTML and JS to use `data-avatar-seed` and `data-avatar-size` attributes, improving privacy and consistency across admin and client themes.

* Update src/library/Box/TwigExtensions.php

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

* Update src/library/Box/TwigExtensions.php

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

* Update src/modules/Staff/html_admin/mod_staff_index.html.twig

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2026-01-29 12:40:36 +03:00
renovate[bot] 8aa281882e chore(deps): update symfony packages to v7.4.5 2026-01-29 08:33:59 +00:00
renovate[bot] bd734e84cb chore(deps): update dependency rector/rector to v2.3.5 2026-01-29 06:32:17 +00:00
renovate[bot] cd31b1b413 chore(deps): update dependency php-debugbar/php-debugbar to v3.3.0 (#3219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-29 06:29:31 +00:00
renovate[bot] b8620ff02e chore(deps): update dependency friendsofphp/php-cs-fixer to v3.93.1 2026-01-29 02:26:59 +00:00
Belle Aerni 6ce3bbae06 Introduce some simple phone number validation (#3186)
* Introduce some simple phone number validation

* Expanded client creation tests to include phone numbers

* Update Admin.php

* Addressed the review

* Ran CS fixes

* Fixed
2026-01-28 12:57:27 -08: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] a896eabe5a chore(deps): update dependency php-debugbar/php-debugbar to v3.2.3 2026-01-28 10:22:58 +00:00
renovate[bot] 0b28acdd17 chore(deps): update dependency purgecss to v8 (#3218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 10:21:51 +00:00
renovate[bot] 52cff7bb35 chore(deps): update dependency @fullhuman/postcss-purgecss to v8 (#3217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 10:14:09 +00:00
renovate[bot] ddd3dc52b0 chore(deps): update streetsidesoftware/cspell-action digest to d5d910b 2026-01-28 06:36:13 +00:00
renovate[bot] 0254fc915b chore(deps): update dependency phpunit/phpunit to v12.5.8 [security] 2026-01-28 01:02:32 +00:00
09c8721454 Switch Huraga theme to Bootstrap and update styles (#3184)
* Switch Huraga theme to Bootstrap and update styles

* Improve navbar and language selector alignment

* Fix broken banklink page

* Fixed missing modal import & the partial menu overflow

* Small spacing fix

* Clearer label

* Apply fixes

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Yağızhan Burak Yakar <yagizhan49@protonmail.com>
Co-authored-by: Yağızhan <hi@yagiz.dev>
2026-01-27 12:58:41 -08:00
renovate[bot] 085b23f414 fix(deps): update dependency mattketmo/email-checker to v3 (#3215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 07:22:42 +00:00
renovate[bot] 613869461e chore(deps): update dependency bootstrap to v5.3.8 (#3214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 07:11:08 +00:00
renovate[bot] 40d1726e5e chore(deps): update github/codeql-action digest to b20883b 2026-01-27 02:03:23 +00:00
Yağızhan Burak Yakar 07423d6eee Changed the Branding module's icon to a heart icon (#3213) 2026-01-26 11:19:27 -08:00
Belle Aerni 0a156f4161 Fix CS automation (#3209)
* Restore needed gitignore

* Ran the fixes since they are far behind

* Fix for rector causing a problem. Re-ran.

* Update ServiceTest.php
2026-01-26 11:18:35 -08:00
Yağızhan Burak Yakar b03ceaca56 Restored activation and settings buttons for extensions (#3211)
Restored activation button for extensions
2026-01-26 12:17:46 +03:00
renovate[bot] b69e98691d chore(deps): lock file maintenance 2026-01-26 05:05:28 +00:00
Adam Daley c896c60ef2 Sync CKEditor data and track required attribute (#3210) 2026-01-25 21:03:19 -08:00
renovate[bot] 2ae0e45d7f chore(deps): update dependency php-debugbar/php-debugbar to v3.2.2 2026-01-26 01:13:51 +00:00
Yağızhan Burak YakarandAdam Daley a443307d8a Allow controlling domain options for hosting products (#3160)
* Allow controlling domain options for hosting products

* Redo the domain form

* Make sure at least one option is enabled.

* Domain normalization

* Proper pluralization

* a11y improvements

* API wrapper should handle these by itself

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-01-26 01:12:42 +00:00
Adam DaleyandCopilot aefb9e7ea1 Improve API/JS error handling (#3206)
* Remove tab state management via URL hash

* Add global error handling to `admin_defaul`t and `huraga` themes

Introduced global handlers for unhandled Promise rejections and synchronous errors in both `admin_default` and `huraga` themes to improve error reporting. Updated `API.js` to handle errors more gracefully during API requests and when parsing API configuration.

* Remove prevention of default unhandledrejection handling

* Copilot suggested fix

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

* Refactor error handling in API.js

* Update src/themes/admin_default/assets/js/fossbilling.js

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

* Update src/library/Api/API.js

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-26 01:03:54 +00:00
renovate[bot] 217b32e440 chore(deps): update dependency friendsofphp/php-cs-fixer to v3.93.0 (#3207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-25 16:19:21 +00:00
renovate[bot] 9c29b7113b chore(deps): update symfony packages to v7.4.4 2026-01-25 14:37:25 +00:00
renovate[bot] cf4d1f81cb chore(deps): update dependency sass-embedded to v1.97.3 2026-01-25 13:38:21 +00:00
renovate[bot] 5d5d19f067 chore(deps): update dependency sass to v1.97.3 2026-01-25 13:04:17 +00:00
Adam DaleyandCopilot 0c44c7f624 Replace PDO usage with Doctrine DBAL (#2964)
* Refactor database connection to use `DriverManagerFactory`

* Add Doctrine DBAL connection to DI container

Revert "Add Doctrine DBAL connection to DI container"

This reverts commit bc2f9f4901d8baee4b12cd2795b0ef76156849cf.

Reapply "Add Doctrine DBAL connection to DI container"

This reverts commit 48debb74bbfa6c8cebf27ee20c222c911d508ccb.

* Refactor database access to use Doctrine DBAL

* Refactor DB config to use 'driver' instead of 'type'

* Refactor database connection to use `DriverManagerFactory`

* Add Doctrine DBAL connection to DI container

Revert "Add Doctrine DBAL connection to DI container"

This reverts commit bc2f9f4901d8baee4b12cd2795b0ef76156849cf.

Reapply "Add Doctrine DBAL connection to DI container"

This reverts commit 48debb74bbfa6c8cebf27ee20c222c911d508ccb.

* Refactor database access to use Doctrine DBAL

* Refactor DB config to use 'driver' instead of 'type'

* Refactor tests to use `dbal` mocks

* Replace `getQueryBuilder` with `createQueryBuilder

* Fix handling of empty query results and cleanup exception comment

* Update Composer lock file

* Refactor PDO initialization in DI container

Updated the DI definition for 'pdo' to directly use the PDO instance returned by Doctrine's DriverManagerFactory, removing unnecessary object casting. Also added missing import for DriverManagerFactory. Updated PHPStan config to remove a redundant ctype_alnum rule.

* Refactor query execution and result fetching logic

Updated database query handling in Extension and System Service classes to separate query building from execution and fetching. This improves code clarity and ensures consistent use of fetchOne for single-value results.

* Fix SQL where clause syntax in Service.php

Corrects the syntax of the where clause in several queries by changing 'where('param', ':param')' to 'where('param = :param')' for proper parameter binding and query execution.

* Refactor Stats module to use Doctrine DBAL

* Refactor Custompages Service to use dbal instead of pdo

Replaced all direct PDO usage with dbal methods for database operations in the Custompages Service. This improves consistency, leverages dbal's abstraction, and prepares the codebase for better maintainability and future enhancements.

* Refactor DBAL usage and update test mocks

Refactored DBAL service definitions and query builder usage to improve clarity and consistency. Updated tests to use anonymous classes for DBAL and query builder mocks instead of PHPUnit mock objects, simplifying test setup and improving maintainability.

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor DB queries to use executeQuery and executeStatement

Replaced manual PDO prepare/execute calls with Doctrine DBAL's executeQuery and executeStatement methods in UpdatePatcher and ApiRequestTable. This improves code consistency and leverages DBAL features for query execution and result fetching.

* Add input validation for DB charset, table, and column names

Introduces strict validation for supported database charsets in DriverManagerFactory, allowed column names in Custompages Service, and allowed table names in Stats Service to prevent invalid or unsafe input. Also updates UpdatePatcher with default values for new config keys and adjusts a Stats Service test to use a valid table name.

* Add 'CHARSETS' to cspell custom words list

* Refactor query execution in patcher and product domain

Updated query builder usage in UpdatePatcher and ProductDomainTable to separate query building from execution, aligning with best practices. Removed unused fetchOne stubs from ServiceTest to reflect these changes.

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>

* Refactor `getProductSummary` to use Doctrine DBAL

* Fix parameter binding for category and hash in UpdatePatcher

Updated the insert statement in UpdatePatcher to bind the 'category' and 'hash' parameters explicitly, ensuring correct handling of null values during database insertion.

* Update MySQL charset handling in PDO setup

Removes redundant charset initialization statements for MySQL connections, relying on DBAL to handle connection charset via DSN. Now only sets the server default charset and session timeouts.

* Set default DB driver to `pdo_mysql` in `UpdatePatcher`

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-25 13:02:23 +00:00
Adam Daley 9aa4b219a9 Fix typo in class name for autocomplete template (#3205)
Corrected 'text-body-seconday' to 'text-body-secondary' in the autocomplete template to ensure proper styling.
2026-01-25 12:43:51 +00:00
renovate[bot] 069aea7757 chore(deps): update dependency phpunit/phpunit to v12.5.7 2026-01-25 08:32:52 +00:00
renovate[bot] fb522d7b64 chore(deps): update dependency phpstan/phpstan to v2.1.37 2026-01-25 06:58:26 +00:00
renovate[bot] ce6555bd6e chore(deps): update dependency php-debugbar/php-debugbar to v3.2.0 (#3200)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-24 22:57:20 -08:00
renovate[bot] 3d47d2ff39 chore(deps): update twig monorepo to v3.23.0 (minor) (#3201)
chore(deps): update twig monorepo to v3.23.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-24 22:50:36 -08:00
Belle Aerni b5f45d52e1 Fix tomselect in the admin panel (#3203)
* Fix tomselect in the admin panel

* Fixed the text colors too

* This comment doesn't apply
2026-01-24 21:32:43 -08:00
renovate[bot] 2f778cc32e chore(deps): update github/codeql-action digest to 19b2f06 2026-01-25 01:35:10 +00:00