* chore(deps): update dependency league/csv to v9.27.0
* Fixed the tests, also ran the cs fix script
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Refactor tests to replace depreciated functions
* Update Rector config and dependencies
* Rector: Add explicit string casting for stricter type safety
* Rector: Add return type hints to methods across codebase
* Rector: Increase dead code level and refactor invoice item logic
* Remove unnecessary `willReturn` from test mocks
Eliminate redundant `willReturn(null)` and similar calls from PHPUnit mock setups in legacy module tests, leaving only method expectations. Also update some test values to use floats for consistency.
* Refactor API controller and email adapter return values
* Update formatting and guidelines in `AGENTS.md`
* Make static messages translatable
* Typo
* Second batch
* Make static messages translatable
* Typo
* Second batch
* Applying suggested fixes
* Applying suggested fixes
* Missed this one
* Make documentation section titles untranslatable
* Use double quotes instead of escaping single quotes
* Introduce the new Paginator class
* Rename it back to Pagination
* Move #2756 here
* Use HttpFoundation\Request
* Restore Box_Paginator
* Tests
* Replace the deprecated methods wherever used
* No need
* Tests
* Tests again
* tests
* Tests hopefully for the last time
* Use a subquery instead
* Found a faulty query
`m.*` already includes `client_id`. was getting a duplicated column error.
* New pagination logic in Huraga & a couple of improvements
* Type safety
* Accessibility and other improvements
* Fixed tests
* Make aria tags translatable
* Update partial_pagination.html.twig
* Dot operator and little docblock improvement
---------
* +toHostingAccountApiArray
* +getAccountsSearchQuery
* +accounts_get_list & pagination fix for server_get_list
* Update AdminTest.php
* +tests for the account_get_list
* Update Admin.php
* Also return linked order and client data
* Update AdminTest.php
* Removed duplicated field
* Adam's suggestions
* Wording improvements (part 1)
Replacing things that are badly worded as I notice them.
* more
* .
* Update mod_email_template.html.twig
* Update mod_servicedomain_index.html.twig
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Update CI for PHP 8.4
* Update composer deps for PHP 8.4
* Updates
* This is the default mode and this constant causes test failutes
* Explicily install the PDO extensions
* Temporarily downgrade the live tests to PHP 8.3
It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin
* Update to address deprecations
* Make that nullable
* Fixed my typo
* Bump PHPunit to v11
* Also take care of two minor things
* Formatting fix
* Bumped the Rector deadcode level
* Added the instanceof setlist
* Increasded type coverage and updated tests config too
* Bumped type coverage & ran PHP-cs-fixer
* Implement `passwordlength` field for service hosting generated accounts
Fix testing DirectAdmin connections (it previously did nothing)
* Revert unintended change from the previous PR
* Fix changes not saving to db
* Fix `passwordlength` not showing everywhere
* Remove stray debug line
* Fix: passwords being incorrectly set to 7 asterisks when an order is uncancelled
* Requested changes + typo fix
* Include `passwordlength` as ignored term
* Fix typo change oversight
* Minor code clarity improvements
* Type safety for the `passwordlength` and `port` fields
* Fallback to the original model value
* Remove default value for new servers, to show the placeholder
* Improve customer UI
Increase padding for service hosting management tabs
Include missing badge styling for `canceled` orders
* More consistent button colours for orders
* Rename `passwordlength` to `passwordLength`
Remove `activate` and `uncancel` tests for now as they don't really work
* Remove spelling ignore for `passwordlength`
* Restore missing `$httpClient` variable
* Resolve comments
* More thorough port validation
* Fix errors caused by fixing the previous merge conflicts through the GH web interface
* Implemented SSO support for server managers
Co-Authored-By: Aziz Ozbek <aziza2772@gmail.com>
* Fixed typos
* Fixed a few untranslatable strings
---------
Co-authored-by: Aziz Ozbek <aziza2772@gmail.com>
* Begin migration from BS 3.4.1 to BS 4
This is still entirely untested, I just read the docs and made some quick changes to follow it. Now I need to actually dig in and fix what was broken by this.
This is going to be the most painful upgrade path as BS 4 basically rewrote everything
* Started porting Huraga over to bootstrap
* Fix public dashboard for guests
* Minor fix for a long-standing issue
Resolves#412
* Fix the breadcrumb placement
* Migrate the client balance page
* Migrate the order list template
* Migrated the news pages
* Fix & improve breadcrumbs
* Remove outdated options, update showcase
* Migrated the KB pages
* Removed the company name from the header
* Remove the order popup menu
The way it's done is ugly and I don't like it, so instead let's just have those buttons take you to the actual order page
* Migrate the error page
* Fix the mobile layout, make the menu work
This makes it actually functional on mobile, although the nav menu is hideous and needs more work
* Migrate the Invoice templates
* Replace old usage of bb-btn
* Migrate the profile page
* Improve invoice
* Migrated a bunch of templates
The order management screen needs work to make it usable, but the layout is done and functional
* Improved usability on small devices + nav fixes
* Migrated login, signup, and PW reset templates
* TOS, Privacy Policy, & About + made them full-page
* Migrated support related templates
* Completed order management page
* Mobile usability improvements
* Remove outdated table logic
* Enhance Huraga with Bootstrap 5 Support and Design Improvements (#1612)
* setup package json
* set encore and postcss config
* add Huraga sass and js
* partially bring in legacy Huraga design in BS5
* improve design
* replace f16 flag icons with flag-icons
* add more order status badge
* add breadcrumb and replace card design for footer pages
* improve card text color
* improve invoices index
* improve footer link color
* add failed_renew badge
* change paid invoice button color
* apply muted text color to whole footer texts
* replace bs colors with tailwind
* improve payment history and replace it with Wallet
* replace layout nav icons with MDI svg
* remove icon and rename ticket modal title
* improve order page design
* replace iframe with twig include and improve accordion
* fix tabs and improve account form
* remove accordion chevron icon
* add mistakenly removed postcode
* use tom-select for language selector
* fix the product config tabs and improve form
* improve order form
* fix and improve news module design
* improve and fix tabs of profile page
* fix spacing on card header
* improve public page design
* Improve emails card
* use API.js to login
* improve public pages by replacing jquery and bb-jquery
* improve contact us page and fix minor spacing
* improve Cookieconsent design
* minor improvements to auth error message
* fix toast message for funds form
* improve custom page card
* Improve Kb, servicedomain and orderbutton modules
* fix ticket modal submission
* improve Invoice page
* minor fixes
* Replace Google Font with local font for Inter
* Fix ticket modal
* add offcanvas and describedby
* fix service ticket modals
* set github markdown for support ticket conversation
* minor improvements to order and servicehosting
* improve error page design
* add flashMessage method
* Improve emails module
* hide warning on empty api key
* more improvements to Emails
* remove stripes from services table
* add BS5 support for pagination
* improve emails pagination
* place asterisk using js (Firefox does not support :has())
* add auth class for asterisk to be ignored
* Updated the npm lockfile, replaced BB_URL references
* Ported back some changes
* Use web-safe fonts (Verdana)
* Some adjustments
* Resolve issues after recent merger of KB and support
* Reviewed the BS 5 migration guide
* Remove the "proforma" labeling
AFAIK the old behavior was never truly proforma, but things have been changed since then anyways so now it's definitely not
* Bug fixes and removed unused deps
* Bug fixes
* Revised the KB article template
* Further improvements & fixes. New default config
* Update settings_data.json.example
* Fix: emails can change the page layout / styling
This was a PITA, but I got it to (mostly) work quite well.
The full list does as it should, but the individual email page didn't work correctly with the autosizing so that's just hardcoded in size.
I don't think most will use that page over the complete list, but even if they do an an email is too long a scroll bar will be visible so it's good enough till we find a better solution
* Spelling
* Ignore iframes for spelling
* Fix the checkout process
* Improved table consistency
* Migrated the new password reset template
* A create account button doesn't make sense there..
* QC: Replaced unnecessary custom JS code
* Fixed a grammatical error
Fix originates from PR #1868
Co-Authored-By: Duncan Bennie <33364216+DuncanBennie@users.noreply.github.com>
* Addressed feedback and suggestions
---------
Co-authored-by: Shamshid <shmshd12@gmail.com>
Co-authored-by: Duncan Bennie <33364216+DuncanBennie@users.noreply.github.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
* Apply PHP Code Styling & Quality Changes
* Delete these
* Update .gitignore
* Fixes for PHPStan
* Ignore spelling in the gitnore
* Allow null for that type
Honestly doing so makes ZERO sense, but it matches the current behavior.
---------
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Start replacing email templates with HTML ones
* Updated some more
* Spelling
* Completed some more email templates
* Completed the rest of them
* Fix spelling
* Some minor fixes + improvements