Commit Graph

123 Commits

Author SHA1 Message Date
Arthur Parienté
992b6d343a
[8.x] feature: upgrade to Laravel 13 (#2204)
* upgrade to laravel 13

* phpstan

* rollback to symfony 7.4

* fix: ModuleService merge

* refactor: new rector rules
2026-05-06 11:27:21 -05:00
Nabeel Shahzad
7b390d42b7 refactor(pirep): migrate widgets and DevCommands to Pirep::activeFlights scope 2026-04-27 16:36:09 -05:00
Arthur Parienté
379a9b38cc
[8.x] feat: improve tests suite (#2166)
* wip

* fix simbrief tests

* more fixes

* run pint

* fix(tests): fake notifications in registration test

* refactor(tests): AI suggestions and performance improvements

* deprecation warning with PHP85

* fix(tests): fake notifications in access with valid invite test

* refactor(build): optimize autoload and remove unnecessary commands

* refactor(tests): update PHPUnit configuration and improve test structure

* refactor: put GeoJson under the right namespace
2026-03-18 16:35:19 -05:00
Arthur Parienté
489a68b54e
[8.x] feat(phpstan): support levels 3, 4 and 5 (#2095)
* wip

* feat(phpstan): support level 3

* feat(phpstan): support level 4

* feat(phpstan): support level 5

* fix(phpstan): fix Money constructor

* some fixes after merge

* fix time during tests
2025-10-21 13:05:36 -05:00
Arthur Parienté
0695ed0823
chore(phpstan): setup and add level 1 (#2073)
* wip

* refactor: phpstan level 1

* refactor: how the amount of people per fare is passed in the simbrief resource

* ci: add phpstan

* refactor: phpstan level 2

* fix: new avatar column name

* refactor: rollback avatar column name

* fix: type in FareService
2025-08-20 11:32:48 -05:00
Arthur Parienté
89cefb9342
refactor: move database folder to root and add dedicated routes directory (#2065)
* refactor: move routes to the routes folder

* refactor: move database to the root level

* fix: factories in tests

---------

Co-authored-by: Nabeel S. <99736+nabeelio@users.noreply.github.com>
2025-08-13 17:01:54 -05:00
Arthur Parienté
a715ddf486
feat(admin): upgrade to Filament v4 (#2062)
* remove filament-clusters

* upgrade livewire

* remove coolsam modules and resolve modules providers before filament

* update dependencies

* run upgrade script

* refactor: module links plugin

* refactor: version widget

* refactor: admin panel

* refactor: create custom theme to use tailwindcss classes

* feat: add language switcher plugin

* refactor: migrate ActivityLogResource

* refactor: migrate SimBriefAirframes

* refactor: migrate AirlineResource

* refactor: translate FilesRelationManager

* refactor: migrate AirportResource

* refactor: translate FilesRelationManager

* refactor: translate ExpensesRelationManager

* refactor: migrate AwardResource

* refactor: migrate ExpenseResource

* refactor: migrate FareResource

* refactor: migrate FlightResource

* refactor: migrate InviteResource

* refactor: migrate ModuleResource

* refactor: migrate PageResource

* refactor: migrate PirepFieldResource

* refactor: migrate PirepResource

* refactor: some translations in the FlightResource

* refactor: migrate RankResource

* refactor: migrate SubfleetResource

* refactor: migrate AircraftResource

* refactor: migrate TyperatingResource

* refactor: migrate UserFieldResource

* refactor: migrate UserResource

* refactor: remove the emptyStateActions

* refactor: migrate Finances

* fix: SimBriefAirframe

* refactor: migrate Maintenance

* refactor: migrate Settings

* refactor: remove old pages views

* refactor: NavigationGroups

* feat: upgrade SystemPanel, Update page and add streamed response to migrations

* fix: canAccess in Updater

* feat: upgrade the whole SystemPanel

* remove tests migrations (oops)

* refactor: remove system theme

* chore: update filament

* fix: role system and custom permission generator

* fix: airport translation

* feat: translate dashboard widgets

* fix: version major number

* refactor: update IconColumn boolean

* chore: upgrade to vite v7 and fix some CVEs

* feat: run pint in parallel and add rector to pre-commit

* chore: downgrade openspout to support php 82

* feat(admin): add prefetching

* fix(pre-commit): run pint only on staged files

* fix(seeds): in_progress.yml seeds

* refactor: add full type coverage to admin

* fix: permissions in PirepFieldsAction and UserFieldsAction

* refactor: translation for PIREPs Fields

---------

Co-authored-by: Nabeel S. <99736+nabeelio@users.noreply.github.com>
2025-08-13 10:20:23 -05:00
Arthur Parienté
9bf5473a70
[8.x] migrate to pest (#2048)
* update packages

* add type coverage

* more pest plugins

* update ci

* fix parallel testing

* run rector
2025-06-21 10:57:51 -05:00
Arthur Parienté
28e2d33b88
[8.x] Add RectorPHP (#1986)
* Add rector

* Remove cache

* Run rector again

* Run pint

* Run Rector in CI

* Update composer.lock
2025-03-14 11:38:16 -05:00
Arthur Parienté
b7e2ea4c85
[8.x] Fix mariadb driver (#1968)
* Update CreateDatabase command to support mariadb driver

* Add prefix to mariadb driver
2025-01-20 10:56:08 -06:00
Arthur Parienté
11747da6ba
[8.x] New Admin Interface, Laravel 11 Upgrade and Vite Upgrade (#1953)
* LatestPirepsChart Widget

* Apply fixes from StyleCI

* Fix Pirep widgets

* Add missing icons

* Migrate permission system to spatie and add filament shield

* Apply fixes from StyleCI

* Fix AircraftResource

* Use global RelationManagers when possible

* Apply fixes from StyleCI

* Update Maintenance page

* Update AirlineResource

* Add emptyStateActions

* Apply fixes from StyleCI

* Fix SubfleetResource

* Update Resources

* Apply fixes from StyleCI

* Add Filament Cluster

* Publish Filament Assets

* Use RichEditor for notes and descriptions

* Add Filament Global Search

* Apply fixes from StyleCI

* Remove old admin interface

* Update old admin theme (for backward compatibility)

* Add UpdatePending Middleware to Admin Dashboard

* Add OldModulesLinks widget

* Apply fixes from StyleCI

* Fix Edit Module

* Update arthurpar06's fork of coolsam/modules

* Enable shield auto-discovery

* Update arthurpar06's fork of coolsam/modules

* Update arthurpar06's fork of coolsam/modules

* Make sure only super_admins can edit roles

* Update arthurpar06's fork of coolsam/modules

* Apply fixes from StyleCI

* Remove role permissions from ShieldSeeder

* Move the upgrade role system migrations to a single one. Make previous admin users admin again

* Fix fares relationship pivot

* Fix drop table order for roles migrations

* Run the ShieldSeeder on install

* Remove sample module from old module links

* Fix permission upgrade migration

* Apply fixes from StyleCI

* Migrate from webpack to vite

* Fix missing icons in login

* Fix leaflet-bar on hover

* Fix sass division

* Build new assets

* Update brand name

* Apply fixes from StyleCI

* Add link to frontend in admin

* Apply fixes from StyleCI

* Add user avatar in filament

* Use tabs for settings

* Apply fixes from StyleCI

* Fix composer.lock

* Add backups page in admin

* Apply fixes from StyleCI

* Fix Flight Level in FlightResource

* Hot reload for filament in local

* Improve global search in admin

* Apply fixes from StyleCI

* Upgrade to filament 3.1

* Update filament

* Fix dev seeds

* Add migrations for roles and permissions

* Apply fixes from StyleCI

* Delete temp tables after new roles import

* Add missing permission checks

* Add more sortable/searchable fields

* Use ActionGroup in PirepResource

* Add UsersRelationManager in AwardResource

* Apply fixes from StyleCI

* Add sortable and searchable to AwardResource

* Apply fixes from StyleCI

* Rework PirepResource form

* Apply fixes from StyleCI

* Fix recordUrl in PirepResource

* Add aircraft button in subfleet edit page

* Add placeholders for pivot

* Add Fare > Flight relationship

* Update modules stub

* Update arthurpar06's fork of coolsam/modules

* Apply fixes from StyleCI

* Fix modules stub replacements

* Add Favicon to Filament

* Remove webpack dependencies

* Delete cache files

* Fix composer.lock

* Allow more control over custom Pirep Fields

* New actions in Maintenance

* New Aircraft Fields

* Upgrade to vite 5

* Upgrade to tailwindcss 3.4

* Move import roles and permissions to migrations data

* Apply fixes from StyleCI

* Upgrade to filament 3.2

* Upgrade filament

* Add InviteResource

* Add ability to create user from admin

* Apply fixes from StyleCI

* Fix composer.json

* Update composer.lock

* Update composer.lock

* Fix composer.lock

* Add ActivityLog to filament

* Apply fixes from StyleCI

* Upgrade dependencies

* Fix OldModulesLinksWidget

* Add access_admin gate

* Update filament plugins

* Update seeders and migrations related to permissions upgrade

* Upgrade filament

* Add unsaved changes alerts

* Remove laravelcollective/html

* Use fork for queueworker/sansdaemon

* Remove laravelcollective/html provider

* Bump dependencies

* Add mariadb db driver

* Apply fixes from StyleCI

* Update money config file

* wip

* Add ModuleLinksPlugin

* Add permissions check in ModuleLinksPlugin

* Remove OldModulesLinks Widget

* Update AdminPanelProvider stub

* Apply fixes from StyleCI

* Fix webcron id cache

* Remove some old controllers

* Add ajax calls for airports in admin

* Update Dependencies

* Hide internal userfields in admin

* Fix Expenses

* Add ability to edit news

* Apply fixes from StyleCI

* Add optimize in maintenance

* Add update app to maintenance

* Add installer in filament

* Node dependencies upgrade

* Fix new installer

* wip

* Add LegacyImporter

* Add Updater

* Add pages slugs

* Remove system link from module links

* Update redirect url

* Add migrations output to installer

* Update system middleware links

* Remove old system

* Some fixes

* Apply fixes from StyleCI

* Fix InstalledCheck middleware

* Improve Installer Page

* Apply fixes from StyleCI

* Fix Installer

* Add more types to system pages

* Add some phpdocs

* Apply fixes from StyleCI

* Update composer.lock

* Add ability to add multiple ranks to a subfleet at once

* SimBrief Airframes & Aircraft Weight Casting in filament

* Apply fixes from StyleCI

* Update primary color

* Upgrade packages (for security reasons)

* Upgrade some npm packages

* Apply fixes from StyleCI

* Upgrade to vite v6

* Use FiltersForm in Finances and migrate AirlineFinanceTable to a TableWidget

* Apply fixes from StyleCI

* Add missing policies

* Apply fixes from StyleCI

* Fix ShieldSeeder namespace

* Update composer.lock

* Remove v7 migrations

* Do not seed roles via yaml

* Update installer

* Apply fixes from StyleCI

* Migrate queueworker/sansdaemon

* Fix Finance Widgets

* Apply fixes from StyleCI

* Update ability middlewares

* remove old admin views

* make columns toggleable in AirportResource

* update sail and docker to php84

* update php versions in build

* upgrade packages to support php8.4

* fix: Implicitly marking parameter ... as nullable is deprecated, the explicit nullable type must be used instead

* fix: Implicitly marking parameter ... as nullable is deprecated, the explicit nullable type must be used instead

* add missing pagination for old admin

* Apply automatic changes

* update composer.lock

* update AdminPanelProvider stub

* update UserResource icon

* hide internal user fields

* Add go back to app in admin panel provider stub

* Apply automatic changes

* Update ModuleLinksPlugin

* Add ModuleSetupFilament command

* Apply automatic changes

* Change migrations date to ensure good order

* Update composer.lock

* Migrate create_phpvms_table migration to laravel 11 syntax

* Don't show in progress, draft and cancelled pireps in admin

* Add missing 's' in ranks navigation label

* Don't create old role tables on fresh installs

* Add back default

* Redirect /update to /system/update

* Change news default pagination

* fix admin link in nav

* fix permissions for updater

* fix permissions for updater

* Lint code

* Remove PHP 8.1 from workflow

* fix findUsersOnLeave

* update composer.lock

* Update role export

* Fix export table names

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: ArthurHetem <arthurhetemgames@gmail.com>
Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2025-01-16 10:24:26 -06:00
Nabeel S.
a652f0b90c
Fix how the version is parsed when there's no pre-release version spe… (#1955)
* Fix how the version is parsed when there's no pre-release version specified

* Fix the version output string
2025-01-15 20:54:58 -06:00
Nabeel S.
273cb86bc5
Add Laravel Pint linting (#1933)
* Run linter

* Run Pint in github action

* Run the linter verbose
2025-01-11 17:03:03 -06:00
Arthur Parienté
32ca1eed43
Squash migrations and migrate db to utf8mb4 (#1804)
* Squash migrations

* Don't seed modules that aren't installed by default

* Apply fixes from StyleCI

* Add testing-schema.sql to git

* Update dumps to match latest dev

* Update dumps to match latest dev

* Migrate to utf8mb4

* Fix update db charset

* Apply fixes from StyleCI

* Fix failsafe for db charset

* Fix create db command

* Debug for CI/CD

* Fix failsafe for db charset

* Add migrations back

* Update dumps to match latest dev

* Update dumps to match latest dev

* fix charset in mysql-schema.sql

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2025-01-10 13:03:20 -06:00
Nabeel S.
2ae4b07615
Use Nerdbank.GitVersioning instead (#1844)
* Use Nerdbank.GitVersioning instead

* remove old GitVersioning

* Make sure version is read for deployments

* Syntax error

* Syntax errors fix

* Syntax errors fix

* Apply fixes from StyleCI
2024-07-15 17:16:34 -05:00
Nabeel S.
268f12d582
Add altitude AGL and MSL columns (#1838)
* Add altitude AGL and MSL columns

* Apply fixes from StyleCI

* Backwards compat for altitude changes

* Apply fixes from StyleCI

* test changes

* Apply fixes from StyleCI

* test changes

* Apply fixes from StyleCI

* Debugging

* Debugging

* Apply fixes from StyleCI

* Adjust workflows

* Add time between the requests

* Apply fixes from StyleCI
2024-07-15 12:34:41 -05:00
Arthur Parienté
1f5b83ba31
Replace semver/semver by nikolaposa/version (#1754)
* Apply fixes from StyleCI

* Replace semver/semver by nikolaposa/version

* Update composer.lock

* Update composer.lock

* Update composer.lock

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-03-05 10:50:39 -06:00
Nabeel S
a1fc564753
Fix for roles importing (#1624)
* Fix for roles importing

* Style fixes

* Rename ImporterService to LegacyImporterService
2023-10-06 14:42:09 -05:00
Nabeel Shahzad
b7c409e558 Cleanup artisan createconfigs 2023-10-03 09:35:16 -05:00
Nabeel S
55773db851
Rename env file (#1597)
* Rename/use .env file

* Remove extra lines

* Fix file name for tests

* Fix file name for tests

* Style fixes

* Force-add the test env file
2023-08-23 11:27:22 -05:00
Nabeel S
59e2ffb1b1
Block read-only PIREP from being updated #1415 (#1529)
* Block read-only PIREP from being updated #1415

* styleci, my old friend

* styleci, my old friend
2023-03-20 12:41:46 -05:00
Nabeel S
12848091a2
Laravel 9 Update (#1413)
Update to Laravel 9 and PHP 8+

Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
2022-03-14 11:45:18 -04:00
Nabeel S
78fd8367a1
Add separate cron runner that doesn't use proc_open (#1405)
* Add alternative to using the artisan schedule runner

* StyleCI fixes

* Add additional cron time periods

* Style fixes

* Typo

* Update the web cron to use the new system

* Write out JSON for which tasks were run

* Rename cron.php to just cron
2022-02-11 16:24:06 -05:00
Nabeel S
9b2e466b7e
Discord notifications for PIREP and News events #433 (#1215)
* Discord notifications for events #433

* Style fixes

* Check for blank webhook urls and disable

* Cleanup items after review

* Changes and fixes

* Style fixes

* Don't load env for testing

* Fix status text

* Refactor saving fields/fares so events get the latest data

* Cleanup

* Style fixes
2021-06-04 10:51:59 -04:00
Nabeel S
e7bbd6cccb
Use queues for notifications #1154 (#1174)
* Use queues for notifications #1154

* Styles

* Update defaults

* Include queueworker
2021-05-20 11:54:07 -04:00
Nabeel S
ac64a5db75
Migrate all configs into the env.php file #1075 (#1128)
* Migrate all configs into the env.php file #1075

* Style fixes

* Fix config names in CreateConfig

* Fix installer/installer error messages
2021-04-10 17:19:45 -04:00
Andrew Roberts
4026fe9149
Fix location of configservice (#977)
Pointing to wrong location of file which is throwing errors as a result
2021-01-03 07:39:02 -05:00
Nabeel S
1be68d1e63
Flight/Subfleet fares not returning in API #899 (#900)
Make sure proper fares are returned from the API #899
2020-10-24 15:11:08 -04:00
Nabeel Shahzad
b83f7dcac8 Updated seed data for dev 2020-10-24 09:26:14 -04:00
Yash Govekar
5803487d51
Installing and managing modules from admin panel (#847) 2020-10-19 10:10:28 -04:00
Nabeel Shahzad
688be6f75a Fix params for launching process #724 2020-05-23 12:53:39 -04:00
Nabeel S
1054d53826
Emails/notifications not sending #675 (#686)
* Add test call to test notification #675

* Fix queue driver with emails not sending; formatting #675
2020-05-09 11:31:25 -04:00
Nabeel S
7e742518bc
Module/plugin installation working #593 (#594)
* Remove the Sample module

* 593-Fix-Modules-From-Composer

* Fix pre/post install scripts in composer #593

* Formatting
2020-02-28 16:06:45 -05:00
Nabeel Shahzad
574768262d Include full build id 2020-02-23 20:59:09 -05:00
Nabeel S
0e13905098
Upstream null version; build version tags not being saved properly #575 (#578)
* Check for null version from upstream #575

* Fix for pre-release version numbering

* Move popup to right

* Split get/generate build ID #575
2020-02-23 12:23:19 -05:00
Nabeel S
b36a3009dd
Cleanup Utils #467 (#547)
* Remove Utils Facade
2020-02-11 12:32:41 -05:00
Nabeel S
de8046288b
Add new command to export a specific PIREP for debugging (#501) 2020-01-15 11:50:42 -05:00
Nabeel S
a58bca390b
Fix BindingResolutionError when debug toolbar isn't present (#465)
* Fix BindingResolutionError when debug toolbar isn't present

* Formatting
2019-12-11 15:12:31 -05:00
Nabeel S
e6d38f9338
Add PHP 7.4 support (#464)
* Add PHP 7.4 to build matrix

* DB fix

* YAML parser fix in test data

* Show versions

* Package updates

* Track used ICAOs

* 7.4 METAR parsing fix

* METAR parser fix

* Formatting

* Add meters to response units

* Call instance for unit conversion

* Return value

* Catch exception for unknown quantity

* Comment fix

* Formatting

* METAR parsing fixes on PHP 7.4

* Package updates

* More random airport ID

* More random airport ID

* Properly disable toolbar

* Semver written out to version file

* Use dev as default identifier
2019-12-11 12:57:18 -05:00
Nabeel S
50dc79bc8d
Refactor and add importer to Installer module #443 (#444)
* Refactor and add importer to Installer module #443

* Refactor for finances to use in import

* Import groups into roles

* Formatting

* Formatting

* Add interface in installer for import

* Notes about importing

* Check for installer folder

* Formatting

* Fix pirep->user mapping

* Unused import

* Formatting
2019-11-27 09:19:20 -05:00
Nabeel S
ec4f10d43a
359 Select theme in settings (#423)
* Update composer package versions

* Laravel version

* Change theme in the admin settings page closes #359

* Fix comment
2019-10-30 09:05:18 -04:00
Nabeel S
aedb1f22b6
Don't allow cancels from certain states (#396)
* Don't allow cancels from certain states

* Unused imports

* Don't reset the state doubly

* Move SetUserActive into listener; code cleanup

* Unused imports

* Add missing files into htaccess

* Move Command contract to correct folder
2019-09-16 13:08:26 -04:00
Nabeel Shahzad
3c21047c15 Fix playback file path 2019-09-14 11:15:42 -04:00
Nabeel S
23eb9dcbda
384 Laravel 6 changes (#385)
* 384 Laravel 6 changes

* Library versions

* Update package versions

* Add keyType to models

* Remove unused dependencies

* StyleCI fixes

* Fix models for test

* Fix tests output and update test runner

* Unused imports

* Update exceptions handler

* Fix login page
2019-09-13 08:05:02 -04:00
Nabeel S
dc51897314
Additional logging for the stats recalculation (#358)
* Additional logging for the stats recalculation

* style fix
2019-08-10 20:42:35 -04:00
Nabeel S
c1103afe8f
Add missing expiry time for PIREP API (#356) 2019-08-09 22:49:25 -04:00
Nabeel S
5cafebe4d6
Fix/metar reading (#353)
* Fix reading of the METAR information for AviationWeather. Fix the DI

* StyleCI fixes
2019-08-08 14:52:34 -04:00
Nabeel Shahzad
becf6c95f0 StyleCI fixes 2019-08-08 13:44:18 -04:00
Nabeel Shahzad
380c9d13b6 Error handling around reset install; clear cache 2019-08-08 13:42:43 -04:00
Nabeel S
5cce1b3040
Multiple ticket crash fixes (#347)
* Fix for initial seed data not being run during install closes #346

* StyleCI keepin' me honest

* Tooltips for ranks
2019-08-07 12:32:49 -04:00