Commit Graph
3240 Commits
Author SHA1 Message Date
Copilot 6a01a07ffd Type and escape Twig asset tags, improve timeago plural forms, and cover installer debug-mode installed check (#3631)
* Initial plan

* Harden Twig asset tags and improve installer debug test coverage

* Finalize Twig escaping, pluralization, and installer debug coverage fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-28 18:40:16 +01:00
Adam Daley 146d43dfcf Treat presence of config file as installation (#3630) 2026-05-28 18:19:43 +01:00
b08afe595d Revamp installer UI and enhance config validation (#3629)
* Robust config validation & installer cleanup

* Revamp installer UI, JS and messages

* Fix for pull request finding

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

* Fix installer redirect to only missing config case

* Add Config invalid-file regression tests

* Remove config.php chown/touch from Dockerfile

---------

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

* Removed unrelated submodule

* Add Cypress Cloud project ID

* Save Cypress runs to Cloud

* Pass commit information to the container

* Added admin smoke tests

* Redo Cypress workflow

* Increase shm size

* Run Cypress using Electron

* Add dedicated Docker network alias

* Fixed hostname

* Validate sessions via browser navigation

* Disable session fingerprinting during Cypress tests

* Adjust smoke test paths

* Move Cypress usage to npx

* Remove redundant assertions

* Added basic tests for the client area

* Make spellcheck happy

* Fix test cases

* Added client support lifecycle tests

* Separate tests by directories

* Account for the max subject length

* Fix an actual FOSSBilling error

* Getting around the subject character limit

* Restored the long subject

* Timing issues with Bootstrap modals

* Fix for pull request finding

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

* Fix for pull request finding

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

* Only upload artifacts when recording is disabled

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-24 00:35:52 +03:00
renovate[bot] 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
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
Copilotandadmdly c893a444c6 Escape admin search input and tighten search action accessibility (#3595)
* Initial plan

* fix search action escaping and admin client test naming

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/bc59e45b-61a3-4ec4-a80e-8f2469986d3a

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-20 19:40:48 +01:00
Yağızhan Burak YakarandAdam Daley 6426a68765 Fix search input height for search boxes with filter toggle (#3586)
Fix serach input height for search boxes with filter toggle

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-20 06:56:26 +01:00
Adam Daley 084e3ba365 Require staff permission to delete expiring reminders (#3592)
Require staff delete perm for expiring reminders
2026-05-20 06:37:08 +01:00
89b9102787 Enforce active status checks and validate staff permissions (#3591)
* Enforce order active status checks

* Default missing form field flags to 0

* Validate and enforce staff permission updates

* Use `createStub` in Staff tests

* Enforce permission checks for bank params

* Allow client profile/logout pages w/o validation

* Set order status to active in Api_ClientTest

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

* Add testServiceNotActiveException for non-active order status guard

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/2a58a630-cf21-4358-804d-9a9d8be70d21

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

* Use FOSSBilling\InformationException in Admin API

---------

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>
2026-05-20 00:14:54 +01:00
renovate[bot] aed08fa28b Update dependency postcss to v8.5.15 (#3590)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-19 23:47:44 +01:00
renovate[bot]andAdam Daley 7dce9dbe47 Update dependency ckeditor5 to v48.1.1 (#3588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-19 23:11:31 +01: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
9a1ac2a7b1 Normalize module names in hasManagePermission (#3584)
* Normalize module names in hasManagePermission

* Fix Extension service test mod_service mock signature

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/4ef94929-a11e-45a9-ae6b-51571ce64e1c

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

* Rename $permissionModule to $permission_module for consistency

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/352f1681-92c0-45cf-b923-d87d8684a141

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:10:28 +01:00
ac00bf1bda Refactor dashboard and enhance charts with transaction support (#3581)
* Support optional `transaction.ipn_hash` with repair

* Refactor dashboard tables and product sales card

* Refactor dashboard client/avatar and activity tables

* Replace ApexCharts with Chart.js sparklines

* Preserve decimal income and enhance chart tooltips

* Normalize admin navigation URIs

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

* refactor(Stats): split _genFlotArray into typed _genFlotArrayInt and _genFlotArrayFloat helpers

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fb8520de-2038-4e33-af3e-3520d999c939

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

* fix(Invoice): use processTransaction return value in markAsPaidByAdmin instead of returning true unconditionally

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fc7131ac-81aa-416b-af57-7d65d9bd20c3

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

* fix(Invoice): remove runtime DDL migration from ServiceTransaction; simplify supportsTransactionIpnHash to schema-check only

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e4b07e3f-7660-4fba-84c0-0105d6b2a318

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

---------

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>
2026-05-18 08:57:37 +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
Adam Daley a31a0f4636 Fix honeypot checkbox false-state rendering (#3576) 2026-05-17 03:22:08 +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
Copilotandadmdly a276a14046 Normalize Antispam settings template consistency and Guest API test/message wording (#3574)
* Initial plan

* Fix antispam template consistency and guest test/style updates

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/963452fe-b40d-4834-be28-2f3451252219

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 01:12:56 +01:00
79e797fd39 Enable honeypot prevention by default (#3542)
* Enable honeypot prevention by default

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@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-17 00:41:40 +01:00
7c04d4dbf6 Enhance security and permissions for client operations (#3572)
* Always send client password reset email

* Sanitize email content and sandbox iframes

* Remove API key info methods

* Add `InvoiceOperation` enum and validate gateways

* Normalize `ext` and enforce permission in getConfig

* Require staff permissions and simplify sessions

* Fix imports, formatters, perms, tests

* Remove array return type from getEnv

* Add staff permission checks to admin APIs

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

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

* Remove strtolower normalization from getConfig to preserve original casing behavior

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/cfcdb64d-db87-4603-ab22-ac0e8a5c4720

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

* Remove unused $data parameter from Profile Admin destroy_sessions

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/a42719bb-cbae-4e3b-994c-b429a0757447

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

* Move extension permission check to Admin API

* Use gh CLI to cleanup untagged GHCR versions

---------

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>
2026-05-17 00:00:32 +01:00
ecd74a7b65 Harden session cookie handling and simplify legacy tests (#3570)
* Initial plan

* fix session cookie handling and clean legacy tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/9e1e623b-d220-42b5-a434-5ddee8324bc3

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>

* Fix for pull request finding

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

* Remove incomplete EntityManagerFactory test instead of leaving markTestIncomplete placeholder

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/48e905a2-4d3c-4b73-93b4-de6101030d14

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-16 21:48:30 +01:00
Adam Daley 6f4fefe7f7 Handle non-scalar period codes safely (#3566) 2026-05-16 16:15:21 +01:00
Adam DaleyandYağızhan 7131eea3d3 Normalize legacy period fields (#3560)
* Normalize legacy zero period sentinel

* Add patch62 to normalize period fields

* Ignore zero-price or no-period lines, normalize periods

* Add patch 62 to the list of patches

* Fixed tests

---------

Co-authored-by: Yağızhan <hi@yagiz.dev>
2026-05-16 13:57:17 +01:00
Adam Daley 8f3796340d Fix obsolete sessions persisting past regeneration grace period (#3562)
* Fix obsolete session grace-period invalidation

* Remove obsolete comments from Session.php
2026-05-16 12:23:20 +01:00
Copilotandadmdly 09ce074384 Fix Client Admin API docs/guards and correct Guest API test fixture typos (#3561)
* Initial plan

* fix client admin api docs and validation edge cases

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/4dcf2f2c-77f2-4343-83ef-ecd1e9d63d82

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

* refactor currency assignment in client admin update

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/4dcf2f2c-77f2-4343-83ef-ecd1e9d63d82

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-16 12:10:11 +01:00
Adam Daley 3bd8e853b5 Add cache namespace seed for entity metadata (#3559) 2026-05-16 11:05:02 +01:00
Adam DaleyandCopilot Autofix powered by AI b2be307766 Enhance session management and image output configurations (#3558)
* Add session regeneration with grace period

* Enable push and canonical name for image outputs

* Remove redundant Docker Hub login scope

* Clear runtime cache around patching

* Add `default_currency` global to Twig

* Make default currency nullable

* 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-16 08:19:12 +01:00
Adam DaleyandCopilot Autofix powered by AI 2d137acdd1 Fixes for 2 code quality findings in Client module (#3556)
* Apply suggested fix to src/modules/Client/Api/Admin.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 src/modules/Client/Api/Admin.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-16 06:37:56 +01:00
Adam Daley fb5863f7b1 Fix undefined birthday access in admin client update (#3549)
Fix birthday key guard in admin client update
2026-05-15 01:14:12 +01:00
Copilotandadmdly 9a25eb7953 Refactor blocked IP config handling and fix profile/staff/huraga validation and template defects (#3546)
* Initial plan

* Apply requested Antispam, Profile, Staff and Huraga fixes

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fa1bc0c9-8908-4805-9013-c48a6f6fad57

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

* Improve readability of blocked IP parsing helper

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fa1bc0c9-8908-4805-9013-c48a6f6fad57

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-14 22:47:01 +01:00
Belle AerniandAdam Daley ac508b96b4 Fix issues with client profile saving (#3541)
* Fix issues with client profile saving

* didn't need that

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-14 22:23:04 +01:00
Belle AerniandAdam Daley 9942355eb8 Prevent admin from blocking own IP (#3543)
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-05-14 22:14:45 +01:00
Copilotandadmdly 814f762b1e Fix CI spellcheck: correct typo in staff settings warning (#3544)
* Initial plan

* Fix spelling typo: 'resses' → 'addresses' in staff settings template

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/f8b22249-99ee-4690-93f9-f3379ef30af9

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-14 22:07:22 +01:00
4a9d44ff06 Refactor currency formatting and enhance admin UI features (#3539)
* Remove currency format fields & refactor formatting

* Handle missing currency and remove bold

* Adjust column widths in redirect settings form

* Add unified filter panel & request globals

* Normalize admin path and revamp activity UI

* Fix ADMIN_PREFIX check and ignore search filter

* Point docs links to docs.fossbilling.org

* ci: make live installer step retry before phpunit-live

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/3c14643b-8b1c-441d-8592-c3ba09df048f

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

* ci: avoid duplicate install attempt in live test retries

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/3c14643b-8b1c-441d-8592-c3ba09df048f

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

* Remove currency_format and simplify request handling

* Ensure request exists in DI for Twig tests

---------

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-14 18:55:36 +01:00