552 Commits
Author SHA1 Message Date
Yağızhan Burak Yakar 846e159e20 Fixed Cypress test cases after the autologin changes (#3666) 2026-05-30 13:06:16 +03:00
Yağızhan Burak Yakar 22832ee02e Implement reCaptcha v3 (#3655)
* Implement score based reCaptcha v3

* Apply suggestions from code review
2026-05-29 22:41:21 +03: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
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
FOSSBilling BotandFOSSBilling Bot 14b4f69c07 Apply PHP Code Styling & Quality Changes (#3589)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-05-19 10:31:17 -07:00
Copilotandadmdly 75adc6b68a Tighten Extension and Support tests for search, filtering, and cleanup behavior (#3585)
* Initial plan

* test: tighten extension and support assertions

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/d0a59b4d-2d45-4554-8421-7e284d2b02c0

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-18 12:33:47 +01:00
Copilotandadmdly d95cb87ab9 Improve test clarity in Stats and Support test suites (#3583)
* Initial plan

* Improve test clarity: rename $service, strengthen support ticket assertions

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/61bfd3c5-c19a-4b3e-83cb-b0225d0883cb

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

* Fix live test: use correct hash param and actual API response fields for ticket_get

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e8fb2514-db0a-418a-a5ff-e2612aa236c8

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-18 10:45:45 +01:00
b17d218c43 Fixes for 2 code quality findings in Support module legacy tests (#3580)
* Apply suggested fix to tests/Modules/Support/GuestTest.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/Modules/Support/GuestTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Fix Support GuestTest expected guest-disabled message

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/af77878f-4387-4a3e-8d5b-da7003f35918

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

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@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-18 07:49:01 +01:00
a25247dda1 Simplify Antispam template conditionals/handlers and harden Support GuestTest config restoration (#3579)
* Initial plan

* refactor antispam settings template and support guest test cleanup

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ede2c4f7-bcca-42f7-bb2b-cd8f324ba00a

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

* Fix for pull request finding

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

* test: restore full Support config snapshot in GuestTest teardown

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/dcaa48e9-3f13-48bf-9eb6-c6633a6152b6

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>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-18 06:48:53 +01:00
fc619fabc0 Enhance payment UI, add locale settings, and improve email templates (#3575)
* Add `auto_detect_locale` setting, API, UI and tests

* Add public tickets toggle and templates

* Add meta descriptions and OG/canonical tags

* Render invoice gateways as logo buttons

Replace plain radio labels for invoice gateways with a styled button-like radio group: add helper text, wrap gateways in a flex container, generate unique input IDs (`order-gateway-<id>`), use `btn-check` inputs with `.btn` labels showing gateway logos (or title fallback), include tooltip and `aria-label`, and retain the original currency filtering and first-item checked behavior. This updates markup/CSS classes for improved UX and visual clarity without altering payment selection logic.

* Remove plaintext password exposure

* Client welcome email, password reset & tests

* Refactor admin system messages to alerts

* Fix password reset audit IP source

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/d307ec12-1c92-4e31-9369-9d74d3be7a04

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

* Use Tools::normalizeBoolean for localization settings

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/8329021b-ded8-4906-9615-fb48472ac4b4

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-17 03:03:03 +01:00
50d976a05c Optimize patcher cache handling and tighten system/theme validation (#3536)
* Initial plan

* Apply system and theme review fixes

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Refine patcher cache shortcut

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Polish patcher and test constants

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Clean up review polish

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Finalize validation polish

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Document helper intent

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/04e9c3b0-aa3b-4af8-8f42-b73ed4d4b0aa

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

* Fix for pull request finding

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

* test: relax theme payload key assertions in live admin tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/da2430a4-c9d5-4dac-897b-db34790a2348

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>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-14 17:17:52 +01:00
FOSSBilling Bot c421efba3a Apply PHP Code Styling & Quality Changes (#3527) 2026-05-13 00:44:26 +01:00
Adam DaleyandCopilot Autofix powered by AI 267905784b Fix for 1 code quality finding in Theme legacy tests (#3525)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-11 23:26:38 +01:00
Adam DaleyandCopilot Autofix powered by AI 95ce4405cc Fix for 1 code quality finding in Theme legacy tests (#3523)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-11 20:23:18 +01:00
Adam DaleyandCopilot Autofix powered by AI ef84f36976 Fix for 1 code quality finding in Theme legacy test (#3522)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-11 20:00:25 +01:00
Adam DaleyandCopilot Autofix powered by AI 2b9d5b9e58 Fix for 1 code quality finding in Theme legacy test (#3521)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-11 19:34:08 +01:00
Adam DaleyandCopilot Autofix powered by AI bfa8143e29 Fix for 1 code quality finding in Theme legacy test (#3518)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-11 15:43:15 +01:00
Copilotandadmdly e6601c7054 Harden request URL handling in bootstrap and stabilize Theme API not-found test assertions (#3511)
* Initial plan

* fix: harden index URL handling and relax brittle theme API error assertions

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1a498284-9424-42d6-8e7f-dfe061a51478

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

* chore: address review nits in index and theme admin test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1a498284-9424-42d6-8e7f-dfe061a51478

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

* fix: keep url fallback type-safe when parse_url fails

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1a498284-9424-42d6-8e7f-dfe061a51478

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

* test: clarify 740 error code reference in theme admin test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1a498284-9424-42d6-8e7f-dfe061a51478

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

* fix: add explicit null fallback for parsed request path

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1a498284-9424-42d6-8e7f-dfe061a51478

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-10 23:55:59 +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
Copilotandadmdly 35ae244041 Gate debug bar to debug mode, harden URL/error handling, and fix UpdatePatcher query typing/binding (#3508)
* Initial plan

* fix: apply requested routing, patcher, and test hardening diffs

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e959bfdb-4f67-4b6b-a029-cc296b5e8057

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

* test: make theme invalid-action status assertion compatible with live API helper

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/675d486f-4242-4143-9d17-987d7e104fd2

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-10 17:39:58 +01:00
Copilotandadmdly a0add76892 Clarify lookup error variable intent and tighten invalid action assertion (#3500)
* Initial plan

* Refine test naming and endpoint error assertion

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c72c8914-fa26-41e3-8318-66a8eb660534

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-10 06:58:01 +01:00
Copilotandadmdly aa45a9dbd1 Initialize Plesk DNS params, normalize Staff service naming/docs, and harden admin integration tests (#3499)
* Initial plan

* Apply requested fixes for Plesk, Staff service, and tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/bac3f6d2-a36b-4de4-b716-074e94a52148

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-08 08:00:43 +01:00
Copilotandadmdly 654ea31f2f Clarify exception annotations, remove dead massmailer code, normalize staff permission schema, and harden integration test assertions (#3498)
* Initial plan

* Apply requested fixes for annotations, permissions, and tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/724562e3-bb44-420b-9399-fef57791b724

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

* Narrow ip lookup test error suppression to warnings only

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/724562e3-bb44-420b-9399-fef57791b724

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

* Simplify invalid action regex and document error severity delegation

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/724562e3-bb44-420b-9399-fef57791b724

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

* Sanitize ip lookup warning text before logging in system test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/724562e3-bb44-420b-9399-fef57791b724

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-08 07:06:28 +01:00
FOSSBilling BotandFOSSBilling Bot 0ba0512618 Apply PHP Code Styling & Quality Changes (#3497)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-05-08 05:47:16 +01:00
Copilotandadmdly 3ddd77f505 Improve staff password update form accessibility and strengthen invalid theme action error assertions (#3491)
* chore: outline plan for accessibility and test assertions fixes

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/daf9b5cb-e907-47da-a054-c0efce9e49a9

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

* Initial plan

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

* fix accessibility in staff password update form and strengthen theme invalid-action test

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/daf9b5cb-e907-47da-a054-c0efce9e49a9

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

* add aria-readonly to readonly email field in staff password update form

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/daf9b5cb-e907-47da-a054-c0efce9e49a9

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

* refine test assertion message and keep readonly email input minimal

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/daf9b5cb-e907-47da-a054-c0efce9e49a9

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

* fix Theme Admin invalid-action test to assert API error payload from response

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/b050fc4d-67fd-4d52-b1c0-3a4916c2a801

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-07 00:04:08 +01:00
Copilotandadmdly 435852feb9 Fix label/input mismatch, duplicate autofocus, and improve error test assertions in staff password reset (#3493)
* Initial plan

* Fix email input accessibility, label/for mismatch, duplicate autofocus, and improve error test assertions

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ff78cfe6-ae66-4c93-ba35-5af569b40725

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-06 23:42:05 +01:00
Adam DaleyandCopilot Autofix powered by AI 0215699491 Fix for 1 code quality finding (#3488)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-06 21:09:28 +01:00
Adam Daley 53eb4f2fca Refactor Twig environments and extensions (#2752)
* Replace Custom Twig components

Replace custom Twig components with native Twig components, remove unused custom Twig components, and move functionality to macros where appropriate.

m

Update partial_extensions.html.twig

* Update Twig components and migrate to FOSSBilling namespace

* Update Currency module...

* Refactor Twig environment config and loading

* Switch CSRF to cookie-based double-submit

* Add Api Twig extension and restore widget/svg helpers

* Cast language flags; improve JSON parsing

* Add markdown DI service and use in Admin API

* Refactor Twig extensions and markdown, simplify APIs

* Add sandboxed email Twig env, update render APIs

* Fix pagination URL usage and menu class

* Fix HTML markup in email templates

* Use macro for avatars and status badges

* Fix Twig spacing and pagination URL filter order

* Replace Custom Twig components

Replace custom Twig components with native Twig components, remove unused custom Twig components, and move functionality to macros where appropriate.

m

Update partial_extensions.html.twig

* Update Twig components and migrate to FOSSBilling namespace

* Refactor Twig environment config and loading

* Add Api Twig extension and restore widget/svg helpers

* Cast language flags; improve JSON parsing

* Add markdown DI service and use in Admin API

* Refactor Twig extensions and markdown, simplify APIs

* Fix pagination URL usage and menu class

* Fix Twig spacing and pagination URL filter order

* Use `current_theme` global and refactor `period_title`

* Allow markdown and date in email Twig sandbox

* Update email template examples

* Fix Twig URLs, quoting, and logo alt text

* Fix Twig templates: URLs, i18n, search params

* Use `templates/*` directories for module templates

* Tighten Twig sandbox and add tests

* Add Twig environment and template docs to `AGENTS.md`

* Use Symfony Filesystem/Finder and assorted fixes

* Fix ticket reply link fragment concatenation

* Close missing divs in dashboard template

* Use detailed `toApiArray` for client

* Fix module name resolution for email templates

* Regenerate `composer.lock`

* Use `markdown_to_html` filter in admin macro

* Handle null price/quantity and rename test method

* Use `Tools::isHTTPS()` for HTTPS checks

* Add 'area' param to `url` filter and update templates

* Use client area URLs in admin templates

* Use client area and guest API URLs in templates

* Remove client-side invoice delete feature

* Create Twig env via `TwigFactory` for PDF rendering

* Add embedded orderbutton JS and update render

* Add 'srclink' to cspell allowlist

* Use `renderEmailTplString` for email rendering

* Bump twig/markdown-extra to v3.24

* Use `markdown_to_html` for privacy policy

* Escape API JSON, handle null IP, client URLs

* Remove initial admin creation flow

* Handle HTTP failures and make tests robust

* Use `api_url` helper in admin templates

* Use `url` filter for footer link 5

* Add patch53 to remove legacy html templates

* Bump setting last_patch to 53

* Add patch54 to restore legacy email templates

* Use renderEmailTplString for email templating

* Remove redundant else/endif in order template

* Add file-hash cache buster for asset URLs

* Remove raw Twig filter and handle missing modules dir

* Return '-' for future timestamps

* Register and reuse TwigFactory and add CSRF cookie

* Adjust API URL helper and add Twig error handling

* Update composer.lock and package-lock.json

* Add twig_factory to ServiceTest DI

* Use url filter for link_page in template

* Composer - update deps and add markdown-extra

* Remove docblocks and inline comments in `TwigFactory`

* Add patches 53-55 and update `last_patch`

* Add `has_permission` Twig function; exclude `href`

* Remove duplicate network interface form

* Guard removal of legacy dirs; add network input

* Handle null category descriptions in template

* Add Twig adapter env and sandbox policy

* Add 'striptags' to cspell word list

* Update composer.lock (deps updated/removed)

* Sanitize custom payment adapter templates

* Remove redundant legacy API tests

* Bump `last_patch` setting to 56

* Coalesce null before `markdown_to_html`

* Move update patcher to system CLI command

* Remove stray `endif` from recaptcha macro

* Update composer.lock

* Fix extra closing brace in Api ServiceTest

* Fix test errors from main merge

- Remove testGetRequestCount tests (method moved to RateLimiter)
- Remove testGetDi from Staff and System GuestTest (protected method)
- Fix IP error message in testLoginCheckIpException
- Add rate_limiter mock to Staff GuestTest tests that need it

* Fix remaining Staff GuestTest issues

- Add extension service mock for captcha check
- Fix error message from 'User not found' to 'Admin not found'

* Fix Staff GuestTest: update query and add logger mock

* Fix Staff GuestTest: set admin status to active for password reset flow

* Fix stale API calls and inverted required condition

- Notification: replace removed system_string_render with direct output
- Antispam settings: replace |alink/|link with |url/|api_url filters
- build_form macro: fix inverted required condition for non-textarea inputs

* Sanitize JS/data URIs and disable buttons by permission

* Use client login/profile links in support emails

* Encode fb-api JSON and tighten URL sanitization

* Prefer session auth for API key methods

* Remove stray endif and fix template formatting

* Add CSRF token to CSV exports; fix template

* Remove stray endif in currency template

* Make invoice PDF generation return Response

* Fix Twig filters, templates, and form handling

* Remove readonly from anonymous class in test

* Inline DebugBar CSS/JS in renderHead

* Add Bootstrap Tab to global bootstrap

* Capitalize template UI strings

* Use CKEditor API for reply quotes

* Remove WYSIWYG module and move CKEditor to themes

* Bump `last_patch` in install SQL to 59

* Remove Spamchecker module

* Run domain management script only for active orders

* Standardize UI text capitalization & minor fixes

* Remove Spamchecker legacy tests; fix period test

* Rename Spamchecker tests to Antispam

* Restore antispam config in tests; remove fixture

* Refactor Antispam Guest tests for config checks

* Update theme build docs; remove Wysiwyg module

* Remove spamchecker from cspell and tweak comment

* Add spamchecker to cspell word list

* Capitalize 'Update Graphs' button label
2026-05-06 21:02:16 +01:00
Adam DaleyandCopilot Autofix powered by AI 6a6ff9d37e Fix for 1 code quality finding (#3487)
Apply suggested fix to tests/Modules/Theme/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-06 15:07:47 +01:00
Copilotandadmdly 0c9a5fe6a7 Refactor test doubles, fix cron admin mock inconsistency, and add missing coverage (#3486)
* Initial plan

* Refactor test helpers: extract named doubles, fix mock inconsistencies, add return types and negative test cases

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e732bafd-6bd7-40c6-b976-f13240612867

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

* Fix CI failures: use named class instead of addMethods(), fix checkInvoiceAuth assertion

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c519e2d3-203c-4eba-962a-547a5f1ddfe0

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

* Fix testTryTokenLoginRejectsCronAdminToken: give dbAdmin and cronAdmin the same ID so the ID-match check throws the expected exception

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ae7acf19-c6bf-43c4-abaf-d50a321d69b3

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-06 14:59:18 +01:00
Yağızhan Burak YakarandAdam Daley 091bd5c67b Refactor guest API routes and reduce the information passed (#3474)
* Remove guest API system version endpoint

* Moved theme information to Admin API

* Removed references to the old "comment" module

* Remove unused cron endpoints

* Don't pass registrar information to guests

* Filter out Product toApiArray properties

* Redact public ticket information passed via the guest API

* Move redaction logic to the serializer

* Moved honeypot information to a Twig function

* More redaction

* Fixed tests

* Block additional paths

* Reduce the amount of information passed to clients

* Mask file downloads behind sendFile rather than serializing original path

* Move honeypot information to the new Twig function

* Add missing curly bracket

* Removed unused `get_slider` endpoint

* Turn publicMessageToApiArray into an allowlist

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-04 21:48:11 +01:00
Yağızhan Burak Yakar e05ce7a7e2 Rate limit system improvements (#3461) 2026-05-04 16:53:28 +01:00
Copilotandadmdly cfa1c16a6b Fix spelling, grammar, strict comparison, and style issues in UpdatePatcher and AdminTest (#3478)
* Initial plan

* fix: correct spelling, grammar, strict comparison, and code style in UpdatePatcher and AdminTest

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/96e4e3ba-aa45-4ff5-b9f9-5d47a74424bf

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-03 23:47:21 +01:00
Copilotandadmdly 6f609e982a Fix missing isIpLookupAvailable() method and test cleanup issues in AdminTest (#3473)
* Initial plan

* Fix missing isIpLookupAvailable(), remove redundant comment, add try-finally in AdminTest

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/46242128-f435-4909-a07b-2ecd4b43f029

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-02 03:55:22 +01:00
Adam DaleyandCopilot Autofix powered by AI 87d7e2b99b Fixes for code quality findings in System module (#3470)
* Apply suggested fix to tests/Modules/System/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/Modules/System/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-02 03:31:15 +01:00
Copilotandadmdly 5292c10d0e Fix spelling, test correctness, and code quality across System/Invoice modules (#3469)
Apply fixes: spelling, test assertions, strict equality, try-finally, and named constants

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/a85810bc-0126-402f-89ac-2da2d08d8fd9

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-02 03:14:06 +01:00
Copilotandadmdly 0cd6913d7f Remove invalid loading="lazy" from script tags; improve AdminTest coverage (#3462)
* Initial plan

* fix: remove invalid loading="lazy" from script tags; improve AdminTest coverage and DataProvider usage

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/2b9d02ed-eb73-469b-8286-b311d701efb7

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

* fix: rename 'subshell' key to 'sub-shell' to fix spellcheck CI failure

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/be0ff0c6-9e75-4078-a5fe-a598fc47110d

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-04-30 18:51:21 +01:00
FOSSBilling BotandFOSSBilling Bot 47944d18ea Apply PHP Code Styling & Quality Changes (#3460)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-04-30 16:44:41 +01:00
f86498c187 Fix for 1 code quality finding (#3457)
* Apply suggested fix to tests/Modules/System/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Fix call site for renamed method isIpLookupAvailable in AdminTest

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/57c457e8-07ac-40a6-9640-e05601d5e656

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

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@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-04-28 19:59:07 +01:00
Copilotandadmdly 3c8298056d Fix multiple code quality bugs in API controller, Client service, and tests (#3456)
* Initial plan

* Apply code quality fixes across Api/Controller/Client.php, Client/Service.php, and tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/8f544bdc-a7a5-47aa-b25f-bafe2536dd5c

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

* Add nullable type declaration for apiConfig property

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/8f544bdc-a7a5-47aa-b25f-bafe2536dd5c

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

* Fix test expectations to match corrected SQL placeholders in Client/ServiceTest.php

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1f23a81e-b05f-4684-86df-aa53a165b298

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-04-28 18:47:32 +01:00
FOSSBilling BotandFOSSBilling Bot ae4ed4410c Apply PHP Code Styling & Quality Changes (#3454)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-04-28 15:33:40 +01:00
72c6dcc532 Fixes for 3 code quality findings (#3450)
* Apply suggested fix to tests/Modules/System/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/Modules/System/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/Modules/System/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* fix: add VERIFYPEER and VERIFYHOST to cspell ignoreWords

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c79bcd25-22d6-424f-b7cb-b17b6ef16246

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

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@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-04-26 23:01:11 +01:00
Adam DaleyandCopilot Autofix powered by AI 9ba38e4fea Fixes for 2 code quality findings (#3448)
* Apply suggested fix to tests/Modules/System/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/Modules/System/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-04-26 22:11:02 +01:00
Adam DaleyandCopilot Autofix powered by AI f981ceb518 Fixes for 4 code quality findings (#3446)
* Apply suggested fix to tests/Modules/System/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/Modules/System/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/Modules/System/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/Modules/System/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-04-26 21:41:16 +01:00
Adam DaleyandCopilot Autofix powered by AI e2052adbb2 Fixes for 2 code quality findings (#3445)
* Apply suggested fix to tests/Modules/System/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/Modules/System/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-04-26 21:12:02 +01:00
Copilotandadmdly ade0c4d0c1 Fix bugs and typos in installer/pricing templates, improve System admin test coverage (#3444)
* Initial plan

* Fix HTML/JS bugs and typos in installer and pricing templates, improve test coverage

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/d16eb3f4-9538-40af-a14b-3f110fe8bed1

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-04-26 21:04:48 +01:00
52081d284a Improved type casting and removed unnecessary parameters (#3431)
* Cast ticket ID to integer

* Added type casting and removed unnecessary $per_page params

* Fixed tests

* Updated ddev PHP and nginx config

* Support ticket validation and upgrade checks

* Add order mock and constants in ServiceTest

* Require active status for API auth and clear tokens

* Validate client/admin sessions against DB

* Invalidate sessions on user status deactivation

* Check locale availability before toggling

* Escape database name properly

* Validate and cast rel_id to int in ticketCreateForClient to prevent TypeError

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ce700346-2168-43cc-8309-fc6baee7cc82

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

* Improve rel_id validation error message to include the invalid value

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/ce700346-2168-43cc-8309-fc6baee7cc82

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

* Fix Notification AdminTest mock expectation to match actual paginateDoctrineQuery call

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/2fb587cf-6312-4b98-89e5-10f074646eaa

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

* Validate interface and custom interface inputs

* Tighten custom interface hostname validation

* Accept `per_page` in paginated API responses

* Validate HTTP interfaces and normalize upgrades

* Enforce active status and secure config export

* Cast rel_type/rel_task/rel_status to string in SupportTicketValidator to prevent TypeError

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/1ecf2bb3-1139-420f-8421-41ae8f6d1d5f

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

* Use FILTER_VALIDATE_INT instead of is_numeric for rel_id validation in Service.php

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/7bacd505-ba15-42da-8f52-7621afa1d634

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

* Validate rel_new_value as a positive integer before using as Product ID in upgrade tickets

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/842c7e1c-255b-4f09-8235-f34681e0392b

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

* Tighten `sValidHttpInterface` validation

* Add page parameter to pager calls

---------

Co-authored-by: Adam Daley <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-04-26 20:30:22 +01:00
Copilotandadmdly 230b285dd7 Fix SSL typo, invalid transaction status, and unsafe array access in APIHelper (#3399)
* Initial plan

* Fix typos, invalid transaction status, and unsafe array access in APIHelper

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/5ec74911-4de8-4620-a3e3-cd6e36a975fb

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

* Fix getHasSll typo in Directadmin.php to match baseline suppression

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e74d2b4a-d375-4c99-b557-9050dc9f0c55

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-04-08 07:46:23 +01:00
FOSSBilling BotandFOSSBilling Bot 3b14e9214b Apply PHP Code Styling & Quality Changes (#3393)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-04-08 06:48:11 +01:00
Adam Daley 435944defa Refactor pagination and API with strict types and validation (#3391)
* Add strict types; refactor pagination, tools & API

* Replace `Box_Paginator` with FOSSBilling `Paginator`

* Clarify paginator comment wording

* Validate JSON response and include HTTP code

* Cast language params to bool and add JSON preview
2026-04-06 22:06:13 +01:00