Commit Graph
6331 Commits
Author SHA1 Message Date
FOSSBilling BotandFOSSBilling Bot be71ae3138 Apply PHP Code Styling & Quality Changes (#3628)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-05-28 15:53:14 +01:00
Adam Daley 8c67932831 Exclude provenance.json from packaged artefacts (#3627)
Exclude provenance.json from packaged artifacts
2026-05-28 15:30:22 +01:00
renovate[bot] 396fc97375 Pin dependencies (#3626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-28 13:12:12 +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
renovate[bot] 869c64d74d Update dependency phpstan/phpstan to v2.2.0 (#3624)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-28 11:13:51 +01:00
Adam DaleyandCopilot Autofix powered by AI cefbfdb11e Fix for Semicolon insertion (#3623)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-28 10:23:24 +01:00
581664029d Update dependency @dicebear/core to v10 (#3621)
* Update dependency @dicebear/core to v10

* Add server-side avatars via DiceBear

* Initialize locale selector with saved/default

* Add 'dicebear' to cspell word list

* Fix for pull request finding

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@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-05-28 09:45:10 +01:00
Adam Daley 78d212860a Refactor UpdatePatcher to use DBAL and PDO connections (#3622)
* Register 'dbal' service in UpdatePatcher

* Introduce getDbalConnection in UpdatePatcher

* Use unquoted-name SchemaManager APIs

* Replace DBAL with PDO in UpdatePatcher
2026-05-28 07:05:17 +01:00
renovate[bot] cb8b776a3c Update symfony packages to v7.4.13 2026-05-28 05:20:17 +00:00
renovate[bot] 976cb73f0b Update docker/setup-compose-action action to v2.2.0 (#3620)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-28 06:18:51 +01:00
renovate[bot] 71a82ee3cc Update dependency phpunit/phpunit to v12.5.28 2026-05-28 05:00:59 +00:00
renovate[bot] 0091f7e170 Update dependency stripe/stripe-php to v20.2.0 (#3618)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-28 05:59:38 +01:00
renovate[bot] 8ddd212928 Update dependency twig/twig to v3.27.0 (#3619)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-28 05:48:32 +01:00
Adam Daley 78728b0fdd Register dbal service and add getDbalConnection method (#3617)
* Register 'dbal' service in UpdatePatcher

* Introduce getDbalConnection in UpdatePatcher

* Use unquoted-name SchemaManager APIs
2026-05-27 05:15:21 +01:00
Adam DaleyandCopilot Autofix powered by AI f101226bf5 Register 'dbal' service in UpdatePatcher (#3616)
* Register 'dbal' service in UpdatePatcher

* Fix for pull request finding

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

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-27 04:17:24 +01:00
277ce9b50e Rework the Update FOSSBilling page (#3607)
* Rework the Update FOSSBilling page

* Add preflight PHP version checks and fix Twig i18n variables

* Implement better loading state and increase timeout limit

* Add mandatory backup checkbox

* Neutralize update button href while disabled to prevent bypass via middle-click

Set href="#" initially (button starts disabled) and store the real
endpoint in data-update-href. The JS updateButtonState() function now
also toggles href: "#" when disabled, real URL when enabled. This
prevents middle-click / open-in-new-tab from triggering the update
before the backup acknowledgement checkbox is checked.

* Add unit test for FOSSBillingExtension::trans placeholder replacement

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-27 03:41:50 +01:00
Adam Daley 37f96c08e7 Fix download button image link in README (#3615)
Updated the download button image link in README.md.
2026-05-27 03:26:23 +01:00
renovate[bot] a6cee32a68 Update dependency rector/rector to v2.4.5 2026-05-26 21:28:27 +00:00
Adam Daley 6db60bc343 Revamp issue templates and add default prefixes (#3614)
* Revamp GitHub issue templates and config

* Add default prefixes to issue templates
2026-05-26 22:17:32 +01:00
Adam Daley 1d895f1388 Restore Currency module manage_settings permission (#3613)
Restore currency manage_settings permission gate
2026-05-26 19:44:10 +01:00
Adam Daley b7b85cd061 Fix duplicate custom page slug exception constructor arguments (#3612)
Fix Custompages exception argument order
2026-05-26 19:19:29 +01:00
renovate[bot] 66938a9529 Update dependency phpstan/phpstan to v2.1.56 2026-05-26 17:41:24 +00:00
renovate[bot] 2f0148f8b9 Update dependency phpunit/phpunit to v12.5.27 2026-05-26 17:26:42 +00:00
cdcbb71296 Apply PHP Code Styling & Quality Changes (#3611)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-26 18:25:23 +01:00
renovate[bot] cef3ecf5ff Update dependency symfony/polyfill-php84 to v1.38.1 (#3608)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-26 17:06:09 +01:00
renovate[bot] d5927cbf39 Update dependency symfony/polyfill-php85 to v1.38.1 (#3609)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-26 16:35:52 +01:00
Adam Daley 233bb833c0 Update FOSSBilling logo URLs in README.md (#3610) 2026-05-26 15:55:00 +01:00
renovate[bot] aed2360c33 Update dependency doctrine/orm to v3.6.7 2026-05-26 04:54:53 +00:00
renovate[bot] 1d11a9b2ab Update release-drafter/release-drafter digest to 693d20e 2026-05-26 01:39:12 +00:00
Adam Daley 9a14103cd0 Add database configuration retrieval and normalize driver (#3605)
Add getDatabaseConfig and normalize DB driver
2026-05-25 01:59:13 +01:00
Copilotandadmdly c30c1f772c Fix exit() bypass, stale created_at overwrite, wrong log message, and octal literal in tests (#3604)
* Initial plan

* Fix exit() bypass, tax update bugs, and octal literal in tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/7383b918-6a3a-429b-8fc1-99d271e31248

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-05-24 23:23:54 +01:00
a7ef873368 Revamp admin UI and improve dashboard layout and functionality (#3596)
* Adjust admin alerts and installer warning

* Make dashboard cards full-height and align badges

* Split dashboard cards into partials and add AJAX

* Replace status badges with ribbon elements

* Revamp activity panel layout and responsiveness

* Adjust dashboard card spacing and styles

* Style dashboard links and adjust chart heights

* Back-to-top: update classes and styles

* Fix client admin UI labels and flags

* Improve API response parsing and errors

* Mark action columns no-sort, add table-hover

* Update table classes for hover and wrapping

* Refactor admin templates to card-header layout

* Update admin templates layout and semantics

* Tidy admin templates; remove tabs, update notice

* Standardize admin alert styles and messages

* Handle null/empty status in status_name macro

* Validate resolved renewal price before invoicing

* Keep IP actions inline in activity table

* Right-align activity pagination controls

* Align pagination and export buttons in admin lists

* Improve admin pagination & per-page defaults

* Extract record selector into partial

* Add tab deep-linking and URL hash persistence

* Refactor search controls & capitalize 'One Time'

* Refactor client search filters and toggle state

* Refactor activity filters UI and tomselect styling

* Redesign admin filters; capitalize 'On Hold'

* Revamp admin filter panels (Invoice & Support)

* Group search clause in Massmailer query

* Add filters and expanded search for pages/gateways

* Add filter panels, refine search logic, tests

* Add advanced search filters for activity modules

* Add structured filters, date/ip search & tests

* Add Email queue filters and admin tab

* Add collapsible filter panel to Staff settings

* Refactor badges to use shared macros

* Add massmailer statuses & boolean badges

* Add search icon and refine search input layout

* Update admin templates layout and markup

* Use modals for creating clients/groups

* Centralize tab header action buttons

* Centralize toolbar actions; add Order modal

* Bump Composer dependencies (lockfile)

* Capitalize 'One Time' payment label

* Return raw API body; use button for search

* Wrap search button in input-group-text

* Make search max width configurable

* Fix malformed aria-label Twig expression in layout_default.html.twig

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c8db6ba9-bda4-413a-989f-e4777e06bd12

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

* Fix XSS risk in updateExternalIP: append IP via createTextNode instead of innerHTML concat

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/0c435e52-1784-4466-a8dc-c41e12443a6f

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

* Refactor New Client modal layout and styles

* Limit and style phone country code field

* Use `country_names` helper and `country_name` filter

* Use Symfony Intl for currencies & locales

* Use Symfony Intl for currencies; drop built-in country lists

* Refactor Currency module API, entity and service

* Remove system checkLimits usages from modules and tests

* Remove `currency.title` column and update APIs

* Add inputmode and maxlength to cspell dictionary

* Fix dropdown toggle accessibility: use button instead of anchor

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/b7f9474b-1988-4c08-aec0-f8991edfea71

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

* Improve multi-currency handling and installer

* Log currency code when changing cart currency

* Use removeCurrency in Admin API and update tests

* Use Intl currency symbols and fraction digits

* Use currency filters in templates

* Rename currency title to name and update schema

* Remove deprecated Service::getLanguages

* Capitalize system permission labels and fix messages

* Use Symfony Countries and remove phone codes list

* Validate country codes; use country select

* Set fb_locale cookie and fix admin locale display

* Validate locales and add default locale selector

* Use Locales::getNames; tweak language selector CSS

* Tweak header spacing and make nav links icon-only

* Localize client login texts

* Add phone country-code attrs and styles

* Center .modal-dialog in two themes

* Add phone_codes API to list calling codes

* Make form the modal-content wrapper

* Move create forms to Bootstrap modals

* Convert new-item tabs to modals in admin UI

* Revamp admin UI, embed snippets & modal

* Revamp admin settings UI and templates

* Revamp Formbuilder & Redirect admin UIs

* Add 'Segoe' and 'minmax' to cspell dictionary

* Rename warning() to warn() in test logger

* Refactor admin templates to card-based layout

* Expose initAvatars globally and scoped init

* Add 'view' permissions and enforce checks

* Refactor Servicehosting admin UI and scripts

* Add staff permission checks and module permissions

* Refactor admin templates layout and forms

* Add staff permission checks and module perms

* Add staff permission checks and module perms

* Refactor admin Twig templates and UI

* Refactor client admin UI to use summary/form cards

* Refactor admin invoice/subscription/transaction templates

* Refactor Order admin UI; fix country labels

* Refactor admin templates and add IP country filter

* Add 'view' permissions and checks to admin APIs

* Use detail/related partials in admin templates

* Refactor admin product templates to use partials

* Add endembed to cspell ignoreWords to fix spellcheck CI failure

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e8973bef-7364-4b30-8dd8-13701ca15c5d

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

* Refactor admin templates to use common partials

* Validate order status, add permission checks

* Center form buttons and add horizontal padding

* Introduce createAdminApi and BBTestCaseContainer

* Refactor admin UI templates and forms

* Run intl compression after composer install

* Disable provenance in buildx outputs

* Revamp admin templates for UI and previews

* Refactor admin templates, pricing UI & styles

* Refactor admin invoice sidebar and SEO settings UI

* Use minor currency units, country list & API fixes

* Rename language selector class to locale-selector

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-05-24 23:10:28 +01:00
renovate[bot] 12aab5493a Update docker/setup-buildx-action digest to d7f5e7f 2026-05-24 04:47:26 +00:00
renovate[bot] a08858131c Update docker/build-push-action digest to f9f3042 2026-05-24 00:52:01 +00:00
b90728e4e6 Harden support ticket loader toggle and align Client Admin test mocks/naming (#3603)
* Initial plan

* fix: apply null guard and AdminTest consistency updates

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/17c37e88-7f83-4900-97b8-8a3fd314c492

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>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-24 01:51:07 +01:00
renovate[bot] ee444c8957 Update actions/upload-artifact action to v7 (#3602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-24 01:41:59 +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
Adam DaleyandCopilot Autofix powered by AI 285968db11 Fixes for 4 code quality findings in legacy tests (#3601)
* Apply suggested fix to tests-legacy/modules/Client/Api/AdminTest.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 tests-legacy/modules/Client/Api/AdminTest.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 tests-legacy/modules/Client/Api/AdminTest.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 tests-legacy/modules/Client/Api/AdminTest.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-05-23 21:23:01 +01:00
renovate[bot] 79fef3c7e6 Update dependency sass to v1.100.0 (#3600)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-23 21:15:08 +01:00
renovate[bot] f6314df250 Update phpmyadmin:5 Docker digest to 7dfd52c 2026-05-23 19:39:38 +00:00
renovate[bot] 754d52bb1d Update github/codeql-action digest to 7211b7c 2026-05-23 13:13:07 +00:00
renovate[bot] d2eb9fd653 Update docker/setup-buildx-action digest to d7f5e7f 2026-05-23 08:56:07 +00:00
renovate[bot] 4cf5f19205 Update docker/metadata-action digest to 80c7e94 2026-05-23 06:28:50 +00:00
renovate[bot] 12b84da7fc Update docker/login-action digest to 650006c 2026-05-23 02:33:44 +00:00
renovate[bot] e2df27bbcc Update dependency phpunit/phpunit to v12.5.26 2026-05-22 04:41:45 +00:00
renovate[bot] 9f415bf661 Update dependency doctrine/orm to v3.6.6 2026-05-22 04:19:33 +00:00
renovate[bot] 65ad46d1a1 Update docker/build-push-action digest to f9f3042 2026-05-22 00:40:48 +00:00
Adam DaleyandCopilot Autofix powered by AI a5c2567ed2 Fixes for 3 code quality findings in legacy tests (#3598)
* Apply suggested fix to tests-legacy/modules/Client/Api/AdminTest.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 tests-legacy/modules/Client/Api/AdminTest.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 tests-legacy/modules/Client/Api/AdminTest.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-05-21 23:34:40 +01:00
bba52db22b Apply PHP Code Styling & Quality Changes (#3597)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-21 22:41:44 +01:00
renovate[bot] 3863deb949 Update symfony packages to v7.4.12 2026-05-21 12:53:45 +00:00