Commit Graph
481 Commits
Author SHA1 Message Date
Belle Aerni 8bd8211a2a Minor bugfixes for 0.6.0 (#1928) 2023-12-06 12:28:28 +01:00
FOSSBilling BotandFOSSBilling Bot 04af9aa5d7 Apply PHP Code Styling & Quality Changes (#1923)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-12-05 13:14:36 -08:00
Adam Daley 3ca602d5c6 Update CI to include preview build and upload steps (#1915) 2023-12-04 10:05:59 +00:00
Belle Aerni 4b0390bb1c Fixed issue with the domain management page (#1914)
Just replaces the jQuery code that's not working correctly
2023-12-02 22:41:38 -08:00
Belle Aerni 59027a10f4 Add a configurable cron API guest endpoint (#1909)
* Add a configurable cron API guest endpoint

* PHPDoc changes

* Fix the test, added a last run check
2023-12-02 18:44:13 -08:00
Belle Aerni d0b92b4231 Fix TLD and registrar deletion (#1910)
* Fix TLD and registrar deletion

* Remove the unused function
2023-12-02 01:00:17 +00:00
Belle Aerni 9191c0e1e1 Ensure invoice authentication is on by default + bugfix (#1905) 2023-11-29 19:50:09 -08:00
Belle Aerni be36d68f61 Restructure the redirect after login functionality (#1897)
* Restructure the login after redirect functionality

* Initialize the session in the start of the app

* Fix the test

* That 100% needs to come after the fallback patcher
2023-11-29 08:45:55 +02:00
Belle Aerni a106ecaac6 Use a better disposable domain email database (#1893)
* Switched the disposable email list

* Correctly remove comments

* Mention what DB is used and their license
2023-11-29 01:56:22 +00:00
Belle Aerni e4b871d259 Begin replacing outdated jQuery in Huraga (#1889)
* Begin replacing outdated jQuery in Huraga

* Handled some more stuff

* Replaced bb.msg usage with FOSSBilling.message
2023-11-28 16:47:57 -08:00
e640e83d58 Apply PHP Code Styling & Quality Changes (#1892)
* Apply PHP Code Styling & Quality Changes

* Update SentryHelper.php

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-28 16:41:31 -08:00
Belle AerniandAziz Ozbek b94d9321de Implemented SSO support for server managers (#1888)
* 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>
2023-11-26 14:37:02 -08:00
Belle Aerni a3b6180abf Fix the issue John noticed (#1870)
* Fix the issue John noticed

* QoL: Don't delete it when debug mode is enabled
2023-11-25 04:01:08 +00:00
FOSSBilling BotandFOSSBilling Bot f136352b31 Apply PHP Code Styling & Quality Changes (#1865)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-25 02:55:31 +00:00
Belle Aerni 5c7718bf89 Prevent duplicated email logs in DB (#1866)
* Prevent duplicated email logs in DB

Also fixed installer the massmailer module

* Fix the test
2023-11-24 22:42:12 +00:00
51cbebda71 Migrate Huraga and all client templates to bootstrap 5 (#1602)
* 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>
2023-11-24 12:28:43 -08:00
Belle Aerni cd002b4729 Rebuilt the requirements class (#1858)
* Rebuilt the requirements class

* Update cspell.json
2023-11-22 15:05:50 +03:00
Belle Aerni 5bd3ff7751 Begin reworking permission management (#1545)
* Begin reworking permission management

* Tests

* This.. tested functionality that didn't exist in the app

* Fixes

* Added permission checks for the system module

* Implemented extension settings permission

The "extension" settings page will now check for permission before allowing a staff member to even visit the settings page for a client.

FOSSBilling will also check for permission before saving a new config so the API can't be used to bypass this limitation.

I also removed a test as it was checking a function which only ever had one possible return value, no point in updating it to work with this PR

* This should fix the test

* I got a little mixed up with that, but this should work

* Fixed the tests

* Implemented give all & revoke all buttons

* Implemented more, enhancements, & bugfix

* Rename function

* Fix tests

* Optimize, address comment

* Now let's make the tests happy again

* Deduplicate code, cleanup a bit

* Bugfix

* Added selectbox support to the front-end

* Quick bugfix

* Fix issue PHPStan detected

* Bug fix

* Improved page layout & styling

* Implemented more checks

* Fix the tests

* Update error.html.twig

* Cleanup

* Fix the tests

* Updated the design to be more space efficient

* Don't list module access when always given

* Updated the exception type

* setMethod -> onlyMethods

* I donno how that got goofed up

* Fix the test, email module should always be accessible

* Removed the broken test

It's.. not really checking anything anyways. Just that the `extension` module is in a hardcoded array.
2023-11-21 16:18:53 -08:00
Belle Aerni 64edea94c4 Cache extension configs (#1848)
* Cache extension configs

* Adjusted the tests

* Use ArrayAdapter
2023-11-19 01:24:36 +01:00
Belle Aerni 6006bfa264 Resolve events being duplicated in Sentry (#1844)
* Resolve events being duplicated in Sentry

* Fixed a typo

* Aaaand restored the placeholder

* Also adjust the API code
2023-11-17 09:00:05 +02:00
Belle Aerni 60f1f5c155 Enable stock control for all product types (#1840) 2023-11-17 08:59:51 +02:00
FOSSBilling BotandFOSSBilling Bot a73c570abc Apply PHP Code Styling & Quality Changes (#1841)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-16 07:51:45 -08:00
Belle Aerni 0136740a9e Fix email resend option (#1833)
* Fix email resend option

* Return the testing check
2023-11-14 19:37:53 +00:00
Belle Aerni add20b6281 Resolve reported errors (#1836)
* Resolve reported errors

* Update ServicePayGatewayTest.php
2023-11-14 19:25:17 +01:00
FOSSBilling BotandFOSSBilling Bot 9f3fb51377 Apply PHP Code Styling & Quality Changes (#1834)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:43:14 -08:00
FOSSBilling BotandFOSSBilling Bot e315b1a23a Update CKEditor and Related Dependencies (#1835)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:42:28 -08:00
Belle Aerni 7c36b25763 Remove the generate EU VAT rates button (#1826)
* Remove the generate EU VAT rates button

* Update AdminTest.php
2023-11-14 10:07:56 +01:00
Belle Aerni d9d97c9a64 Allow clients to choose if they want a subscription (#1800)
* Allow clients to choose if they want a subscription

* Spelling

* Fixed it

* Improved wording

* I wish I had spellcheck in VS Code

* Made it configurable
2023-11-13 10:44:49 +01:00
Belle Aerni 63b1e66caf Massmailer bugfixes & improvements (#1817)
* Prevent Massmailer from duplicating recipients

* Minor optimization

We don't need this info as it's actually fetched in a later step. All we need from this step is the ID of each client

* Further optimize using the DISTINCT SQL query option

Thanks to @evrifaessa for pointing out this is an option.
Should be more efficient to let the SQL engine do the worth rather than doing it via PHP

* Further optimization, fixed filter selection in the UI

* Added the ability to see the list of recipients

* Update cspell.json
2023-11-13 10:42:23 +01:00
Belle Aerni 50cc54ed4e Improved email validation & spam prevention (#1806)
* Improved email validation

* Fixed spelling & PHPDoc, updated module description

* Removed accidental leftovers from debugging

* Rremoved PHP 81 pollyfil, assume email valid if there's an error
2023-11-11 21:44:08 +02:00
Belle Aerni 50043e6211 Run Rector against our tests (#1761)
* 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
2023-11-11 18:41:09 +00:00
Yağızhan 7762b12e32 Replace hardcoded slashes with DIRECTORY_SEPARATOR (#1816)
* +DIRECTORY_SEPARATOR

* +DIRECTORY_SEPARATOR
2023-11-11 09:56:24 -08:00
Belle Aerni 24eecb736c Fix extension installation (#1815) 2023-11-11 20:55:03 +03:00
FOSSBilling BotandFOSSBilling Bot 9e85bcecef Apply PHP Code Styling & Quality Changes (#1793)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-08 06:51:20 +00:00
Belle Aerni a64b5e6821 Improve email queue behavior (#1789)
* Improve email queue behavior

* Also ensure it works from oldest -> newest

* Update the tests to reflect the changes

* Whoops
2023-11-08 06:49:56 +00:00
Belle Aerni 371fa59f70 Minor changes / improvements (#1783)
* Make IDs links in the order management screens

* Remove messages about version 0.0.1

* Fix spelling mistake. Closes #1794
2023-11-07 17:46:13 -08:00
Belle Aerni f8d1e90d78 Drop the Queue module (#1777)
* Remove the Queue module and update massmailer

Queue module was only used by the massmailer module & it duplicated the functionality of the email service, resulting in added complexity for no real benefit.

This commit removes the Queue module outright and points the massmailer to the email service instead, which already implements queing, retires, and time limits.

* Added the ability to view the email queue

* Minor front-end improvements, added removal patch

* Cleanly handle a client being removed
2023-11-07 17:45:46 -08:00
Belle Aerni b8de2c1dc9 Fix & improve client search (#1786)
* Fix & improve client search

* And fix a bug that was introduced
2023-11-07 23:07:58 +02:00
Adam Daley 230b10f6ea Replace direct config references with constants (#1768)
* Fix PATH_DATA constant to use config

Update `PATH_DATA` constant to use the `path_data` config option.

* Replace direct config references with constants

Replace direct references to `config.php` file and specific config options in favour of global constants, where available.

* Drop BB prefix on global constants

Rename global constants to drop `BB_` prefix, where appropriate.
2023-11-06 07:55:23 +00:00
Adam DaleyandBelle Aerni b35b2efc52 Merge Kb and Support modules (#1180)
* Merge Kb and Support modules

Merge the Kb and Support modules as they contain related functionality.

* General improvements to Support module UI

Update Support module copy and navigation to be more consistent, and other general improvements.

* This was missed.. and now it's not 😉

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-06 04:10:09 +00:00
FOSSBilling Bot 7717e185aa Apply PHP Code Styling & Quality Changes (#1772) 2023-11-01 08:36:29 +01:00
Belle Aerni a4c32d70a7 Minor improvements to Sentry.io integration (#1769)
* Remove php-http/message-factory

* Don't report error reporting changes on preview builds

We don't have a way to reliably track / compare this, so the message would otherwise almost always be displayed.

Hiding the massage on preview builds resolves that

* Downgrade errors in the API controller

None of these are really errors, so let's convert them to InformationException so they aren't captured and sent to Sentry
2023-10-31 08:14:17 +01:00
Belle Aerni 602b537996 Opt-in error reporting via Sentry.io (#1732)
* 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
2023-10-28 18:40:39 -07:00
Jelmer Visser 4c33386675 Redirect admin to previous url after login (#1745)
* 1224: Redirect to previous url after login

* 1224: Early return when logged in

* 1224: Unset _url to remove it from query params

* 1224: Added redirect for guests, use of session

* 1224: Use admin prefix from config instead of static prefix

* Use the ADMIN_PREFIX constant
2023-10-27 21:17:18 +03:00
JAndreuSolerandJoan Andreu Soler 32e4b626ad Set document_nr to the Registrar_Domain_Contact (#1754)
Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
2023-10-24 22:43:52 +02:00
FOSSBilling BotandFOSSBilling Bot 7b624248e2 Apply PHP Code Styling & Quality Changes (#1752)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 13:39:02 -07:00
FOSSBilling BotandFOSSBilling Bot e7d07afa31 Update CKEditor and Related Dependencies (#1753)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 14:36:17 +02:00
7f689a7bba Set related order to Registrar_AdapterAbstract (#1737)
* Set related order to Registrar_AdapterAbstract

* Very minor change

---------

Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-10-23 23:18:30 +02:00
Jelmer Visser 2723fab090 Extend search functionality to include multiple client fields (#1746)
1686: Fixed searching multiple client fields
2023-10-21 21:00:43 +02:00
Jaap Marcus c9685e6412 #1717 Add "Port" option on add hosting server page (#1725)
* Add "Port" number on add hosting server page

* Set default value to ""

* Allow Directadmin to use configured port instead of 2222
2023-10-16 00:36:23 -07:00