* Rework reusable workflows to use composite actions (#1918)
* Update FOSSBilling/.workflows digest to 5c7b960
* Update dependency apexcharts to v3.44.2
* Update CKEditor to v39.3.0 (minor) (#1931)
Update CKEditor to v39.3.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency core-js to v3.34.0 (#1932)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency cypress to v13.6.1
* Update dependency flag-icons to v7.0.3
* Update dependency phpunit/phpunit to v10.5.2
* Bump lcharette/webpack-encore-twig to v1.2 (#1933)
Bump lcharette/webpack-encore-twig
Bump lcharette/webpack-encore-twig to ^1.2 and remove symfony/webpack-encore-bundle override as now fixed upstream.
* Move Dockerfile from Docker repo
* Add Docker preview build and push to CI
* Add workflow to build and tag Docker builds on release
* Update workflow to build and tag Docker builds on release
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Move PHP build and test steps to reusable workflows
* Update Spellcheck CI workflow
* Ignore erroneous PHPStan error in SentryHelper
* Update workflows to run on renovate branches
* Update rector config to include tests
* Run Rector against the tests
* Delete test-results
* Update .gitignore
* Correctly set the PHP min to 8.1, split the configs
* Corrected PHPDoc
* Deleted tests we can't really get to pass
PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).
No way to disable the exception as far as we can tell
* Update PHPUnit to version 10
Update composer and CI version of PHPUnit to 10, and migrate XML config to updated schema.
* Update tests for PHPUnit 10
Update tests to replace depreciated functions in PHPUnit 10. Also, remove risky tests which don't assert anything.
* Bump minimum PHP version to 8.1
* Missed these too
* Shit's broke and stupid as fuck
* Update SentryHelper.php
* Update package-lock.json
* I did the fixing
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Began implementing Sentry.io support
* Added to the installer
* Added the ID to the bug report template and UI
* Hook it into our error handler, added the ability to filter by error code
* Attempting to add the DSN via GH actions
* Spelling and making PHPstan happy
* Skip exceptions for various incomplete configurations
Also brings in some of the category suggestions made by @Anuril in #195
* Update tests to account for changes
* Added & renamed exception classes
* Fix tests
* Change a bunch of items to be InformationExceptions
* Use a lighter HTTP client, fixed API error reporting
* I guess that's not needed now?
Arighty then
* Improvements, additional info added
* Update SentryHelper.php
* Improved error logging, added instance ID to error page
Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions
* Make the tests happy
* Added the link, improved wording
Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that
* Began implementing UI alerts and info
* Added the ability to toggle, fixed tests, use path constants
* Added some useful info & links to the page
* These should be InformationException
* Fix the automated Sentry DSN entry
* Fix the install number text
* Minor cleanup, converted more to InformationException
* Replaced some direct config references with constants
We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.
Using the constant means there's less locations to update the reference if the config structure is changed
* Bugfix
* Consistency & fixed a PHPDoc
* Corrections
* We actually do want exceptions thrown here
* Change how we get the instance ID
* Stability improvements
Having support for translatable error pages was proving to be problematic, so I had to remove it.
I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)
* Missed this change on git
* Also fix the variable names...
* Re-added new deps after rebase
* This should also accept "Error" types
* Added more info to the bug report and removed a dug line
* This wasn't supposed to get renamed
* Updated some missed references to Box_Exception
* Rewritten bin/prepare & +FOSSBilling_Environment
* -redundancy
* - unnecessary bits
* nothing much
* Fix inverted logic, use new function in missed location
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Update labeler workflow
Update labeler workflow to remove old labels and paths, fix path patterns, and include more labels.
* Update release drafter workflow config
Update the release drafter workflow config to remove autolabeler options as unnecessary and currently broken.
* Update Dependabot workflow config
Update Dependabot workflow config with new Composer manifests location.
* Update spellcheck workflow
Update spellcheck workflow to change filename, also run on push, and to only check changed files.
* Merge PHP build and tests into one PHP CI workflow
* Update CKEditor workflow
Update CKEditor workflow to change file name and to only run on repos owned by the FOSSBilling organisation.
* Fix Preview double zip issue
* Introduce a cspell workflow
* Update cspell.yml
* Update cspell.yml
* Why is it seemingly ignoring the config?
* Waiit a min
* Fixed a bunch of spelling mistakes
* And set it back to incremental mode
* That is actually supposed to be spelled wrong..
Because BoxBilling :)
* Capitalization
* I swear I fixed this as well
* Update cspell.json
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* remove Gulp deps, set Encore deps and move theme deps
* install webpack-encore-bundle for twig extensions
* set encore extension for themes using Encore
* remove Gulp tasks and add Webpack Encore config
* set purgecss for build and improve broswerlist coverage
* import svg icons for svg-sprite
* set main entrypoints for Encore
* fix undefined errors
* replace tags with Encore twig functions
* remove duplicate dev dependencies from Wysiwyg
* remove bundle included spectrum assets
* replace artifact build command
* set locale flag tom-select
* remove purgecss