Commit Graph

434 Commits

Author SHA1 Message Date
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é
06426afe25
[8.x] feat(simbrief): use json format instead of xml (#2149)
* db changes

* allow simbrief username to be updated in profile

* ask for the simbrief username

* update how an ofp is created and retrieved

* first implementation of dto

* update and fix everything

* update tests

* fix phpstan, add caster and refactor namespaces

* fix phpstan

* fix alternate_navlog type

* fake storage for tests

* add an observer to delete the json when deleting the simbrief sql entry

* apply some coderabbit fixes

* more coderabbit fixes

* update DTOs

* make sure all DTOs are final

* fix naming conventions

* make etops and tracks optional

* fix phpstan

* try to fix ci by using sqlite instead of mysql

* Update composer.lock

* move simbrief ofp url to config

* run pint
2026-03-15 10:35:20 -05:00
Arthur Parienté
b2bc7b0900
[8.x] refactor: upgrade pint (#2152)
* refactor: upgrade pint

* exclude modules from pint

* apply ai suggestions
2026-03-14 13:34:18 -05:00
Arthur Parienté
07faf8640a
[8.x] Drop PHP 8.2, add PHP 8.5 support & upgrade core dependencies (#2142)
* remove php82 support

* bump pest to v4

* bump a bunch of packages for PHP85

* upgrade filament and livewire

* replace all the deprecated request::get (symfony 7.4)

* update livewire config file

* update php versions in ci

* fix phpstan

* add a check for the diversion handler
2026-02-03 11:29:44 -06: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é
b621dff96a
[8.x] fix(expenses): daily and monthly expenses not applied (#2107)
* fix(expenses): daily and monthly expenses not applied

* fix(expenses):  might not be defined

* fix(expenses):  might not be defined

* fix(expenses):  might not be defined

---------

Co-authored-by: Nabeel S. <99736+nabeelio@users.noreply.github.com>
2025-10-21 11:20:15 -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é
b69979ef1e
Merge branch 'feature/8.0' (#2041)
* Run rector

* Run rector
2025-05-05 19:58:37 -05:00
Nabeel Shahzad
00c6942e73
Merge remote-tracking branch 'origin/feature/8.0'
# Conflicts:
#	.github/version.yml
#	app/Console/Commands/Version.php
#	app/Database/seeds/permissions.yml
#	app/Http/Controllers/Admin/UserController.php
#	app/Models/UserOAuthToken.php
#	app/Providers/AuthServiceProvider.php
#	composer.json
#	composer.lock
#	config/version.yml
#	modules/Sample/Providers/SampleServiceProvider.php
#	resources/views/admin/menu.blade.php
#	resources/views/layouts/seven/nav.blade.php
#	version.json
2025-05-05 11:14:06 -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é
eb8bc63784
Add Refresh Token System for OAuth Tokens (#1997)
* Add OAuthTokens refresh logic

* Add tests

* Run pint

* Update IVAO tokens policy

* Update tests

---------

Co-authored-by: Nabeel S. <99736+nabeelio@users.noreply.github.com>
2025-03-13 10:23:39 -05: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.
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
Taylor Broad
b0e299eb30
Fix/flight-deletion (#1929)
* Modify flight importer

* Apply fixes from StyleCI

* styleci fix

* fix delete previous error

* fix: bug with importer

* add additional tests for flight importer on deletion

---------

Co-authored-by: Taylor Broad <BossOfGames@users.noreply.github.com>
2025-01-11 09:05:45 -05: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
Arthur Parienté
a1b94e99dd
Add docker for production (#1914)
* Add docker for production

* Add custom dockerfile

* Add trusted proxies

* Add mariadb client (required for backups)

* swap prod and dev docker compose names

* remove sample module

* Add .env.example

* Add support for installer to handle existing .env file and create only DB entries

* Add some documentation about the docker stack

* Align user and group variable names with sail conventions

* Fix tests

* Apply fixes from StyleCI

* Update composer.lock

* remove default db credentials from .env.example

* upgrade nesbot/carbon

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2025-01-09 11:02:55 -06:00
B.Fatih KOZ
5862b4061f
SimBrief Airframes & Aircraft Weight Casting (#1892)
* SimBrief Airframes

* Update AirframeController.php

* Settings and Manual Update

* Convert Aircraft Weights to Pounds

If the 'kg' is selected as weight unit.

* Fix Fuel Casting

* Update simbrief_form.blade.php

* Display weights with local units

* StyleFix CI Fixes :)

* StyleCI Fix 2 :)

* Update aircraft.csv for tests

Provide some weights

* Update ApiTest with AC Weights

* Update ApiTest.php

* Don't check the weights during tests (to test)

* Update ImporterTest.php

Add weight to importer

* Fix for wrong airframe_id generation.

Ref PilotID should be used.

* Use ENUMS instead of strings

For separating Internal / External airframes

* Forgot one :)

* Update Aircraft Resource

* Update Aircraft.php
2024-11-18 11:53:09 -06:00
Arthur Parienté
4e6f08a37a
API Optimizations (#1871)
* Make subfleets optional in flights search

* Remove acars relationship from get pirep

* Remove subfleets from get user

* Paginate /user/fleet

* Optimize get bids

* Use with logic in flights search

* Fix get pirep finances

* Add missing eager loading

* Disable settings route in api

* Apply fixes from StyleCI

* Remove test for settings endpoint

* Fix SimBrief Resource

* Fix UserTest

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2024-08-30 10:18:41 -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
Nabeel S
7e037ecb1f
Make sure airline IDs are added to the expense (#1725)
* Make sure airline IDs are added to the expense

* Style fixes

* Remove debug line

* Remove extra returns

* Cleanup

* Get the airline through the relationship

* Cleanup some code

* Add data migration for the expenses

* Address PR comments

* Apply fixes from StyleCI
2024-07-02 10:04:48 -04:00
Arthur Parienté
2693acab8a
Add IVAO OAuth (#1828)
* Add IVAO OAuth

* Apply fixes from StyleCI

* Fix OAuthTest

* Update composer.lock

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-02 09:45:50 -04:00
Arthur Parienté
d39eb77159
VATSIM OAuth (#1761)
* Add socialiteproviders/vatsim

* Add vatsim_id field

* Fix OAuthTest

* Add vatsim to OAuthController

* Add vatsim login button

* Apply fixes from StyleCI

* Add vatsim profile buttons

* Add vatsim_id to sortable array in User

* Update composer.lock

* Update composer.lock

* Update composer.lock

* 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-07-01 13:25:23 -04:00
Nabeel S
523c78b023
Revert "Add IVAO OAuth (#1818)" (#1827)
This reverts commit 2285b78e9e.
2024-07-01 13:16:54 -04:00
Arthur Parienté
2285b78e9e
Add IVAO OAuth (#1818)
* Add IVAO OAuth

* Apply fixes from StyleCI

* Fix OAuthTest

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-07-01 13:16:14 -04:00
Arthur Parienté
287b3bf201
Add ability to edit news (#1814)
* Add ability to edit news

* Apply fixes from StyleCI

* Add option to send notifications

* Add option to send notifications when a news is updated

* Apply fixes from StyleCI

---------

Co-authored-by: arthurpar06 <arthurpar06@users.noreply.github.com>
2024-05-29 21:06:14 -05:00
Arthur Parienté
cc074f861b
Add FareType to Import/Export (#1794)
* Add FareType to Import/Export

* Update testFareImporter
2024-03-28 11:58:31 -04:00
Arthur Parienté
110e6b584b
Upgrade to PHPUnit 10 (#1764)
* Remove sempro/phpunit-pretty-print

* Bump PHPUnit dependencies

* Bump nunomaduro/collision and filp/whoops

* Update phpunit.xml

* Change setUp to protected

* Remove --verbose option

* Update phpunit.xml

* Remove Bootstrap

* Add types in tests

* Make tests class final

* Remove unused variables

* Add .phpunit.cache to .gitignore

* Apply fixes from StyleCI

* Update phpunit.xml

* Break tests (to test CI/CD)

* Revert "Break tests (to test CI/CD)"

This reverts commit 928b199bc4ee09238f83f33cc7c12304992368ab.

* Update composer.lock

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-02-21 13:43:35 -06:00
B.Fatih KOZ
499bca3e8d
Update FlightService > Duplicate Flight Check (#1773)
* Update FlightService.php

A flight should NOT be marked as duplicate unless

* Airline
* Flight Number
* Route Code
* Route Leg Number
* Origin
* Destination
* Scheduled Days

are identical with another flight.

We can import flights with same numbers but with different origins and destinations, but can not edit them in admin due to very limited "duplicate check".

Imagine you have a flight

TK1 AYT-DUS
TK1 DUS-BER
TK2 BER-AYT

You can import this, but can not edit TK1 because v7 thinks it has a duplicate.

Change extends the check properly to consider origin, destination and weekdays.

* Update FlightTest.php

Test should consider the same fields as the function
2024-02-12 11:34:50 -06:00
Arthur Parienté
c88fae112c
Use new AviationWeather API (#1767)
* Update AviationWeather endpoints

* Update MetarTest

* trim METAR/TAF API responses

* Apply fixes from StyleCI

* Add missing kphx.txt

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-02-05 14:28:35 -06:00
Arthur Parienté
225c4377be
Add settings to disable registration or make it invite-only (#1739)
* Update settings

* Add invites table

* Create User from admin

* Add invites to admin

* Update settings names

* Registration changes

* ClearExpiredInvites

* Fix RegisterController

* Add some tests

* Apply fixes from StyleCI

* Add test for wrong email

* Apply fixes from StyleCI

* Add test for standard registration

* Apply fixes from StyleCI

* Use string for token instead of longText

* Allow to add users from admin regardless of registration settings

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-01-23 22:37:40 -06:00
Arthur Parienté
80edbe8f38
OAuth improvements (#1735)
* Do not create account if email already exists in OAuth

* Remove DB constraints in Discord OAuth

* Apply fixes from StyleCI

* Add flash to login_layout

* Fix logoutProvider for tests

* Update OAuth Callback

* Remove register with discord

* Remove DISCORD_BOT_TOKEN

* Add OAuthTest

* Apply fixes from StyleCI

* Update avatar in OAuthTest

* Debug test

* Revert "Debug test"

This reverts commit ddef2f64b3f5c6e999202353fd6fcafc37091240.

* Debug test

* Apply fixes from StyleCI

* Still trying to debug tests

* Add avatar to UserFactory

* Remove debug stuff

* Update OAuthTest

* Return discord_id in API

* Check for UserState in OAuthController

* Update OAuthTest

* Apply fixes from StyleCI

* Retrieve discord_private_channel_id

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2024-01-23 16:47:51 -06:00
Arthur Parienté
6b9658a4e3
Add test for PirepDiversionHandler (#1736)
* Add test for PirepDiversionHandler

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-12-24 08:12:52 -06:00
B.Fatih KOZ
9cacb6f081
NewAircraftFields (#1728)
dow, mlw, selcal and simbrief_type
2023-12-19 10:57:08 -06:00
Nabeel S
ca565fc563
Fix bug in seeder with missing optional param (#1724)
* Fix bug in seeder with optional missing param which was causing seeds to be skipped

* Style fix

* gitignore file path

* Additional test case

* Split up test cases
2023-12-16 16:23:01 -06:00
Nabeel S
a0ed2467bd
Sort the aircraft by putting the bidded aircraft on top (#1683)
* Sort the aircraft by putting the bidded aircraft on top

* Style fixes

* If there's an aircraft on a bid, return only that

* Filter selected aircraft for bids

* Style fixes

* Fix filtering

* Style fix

* Unused parameters

* Use mysq

* Use a root password

* Add wait for mysql

* wait fix

* Fix password

* Root password

* Update the mysqladmin ping command

* Change mysql host

* Fix passwsrd
2023-11-22 11:03:32 -06:00
Nabeel S
3f19c49f61
Fix for Ledger Import being in wrong unit (#1678)
* Fix for Ledger Import being in wrong unit

* Style fixes
2023-11-14 11:21:02 -06:00
B.Fatih KOZ
54574c0071
Fix Flight Importer/Exporter and Aircraft Importer (#1649)
* Row fixes

* Fix FIN field

* Fix test files

* fix files again for typo

* Again !

* Fix distance calculation

* Attempt to fix FirstOrNew

---------

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2023-10-30 12:43:28 -05:00
Arthur Parienté
219a837bd9
Fix Ranks Seeder (#1636)
* Fix Ranks Seeder

* Create default rank with rank table

* Apply fixes from StyleCI

* Fix tests with new ranks id

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-18 15:19:13 -05:00
Arthur Parienté
98fb622576
Fix Email Verification (#1629)
* fix registration flow

* Add buttons to request new email verification / to verify email in admin

* Request new email verification when email changes

* Apply fixes from StyleCI

* Fix tests

* Use build-in laravel method for email verification

* Send a verification email to user when admin requests new verification

* Fix tests and dispatch Verified event on manual email verification

* Override verification logic

* Apply fixes from StyleCI

* Force user to active state

* Remove forced state change

* Remove unused service in VerificationController

* Apply fixes from StyleCI
2023-10-17 08:34:46 -05:00
Nabeel S
5356d2cd89
Check for unique among non-deleted items for subfleets (#1626)
* Check for unique among non-deleted items for subfleets

* Style fixes
2023-10-09 15:05:11 -05:00
Nabeel S
fce71e96d9
Importer fixes for dirty fields (#1623)
* Importer fixes for dirty fields

* Code cleanup
2023-10-03 19:00:24 -04:00
B.Fatih KOZ
7261bc5292
Elevation and Region (#1618)
* Elevation and Region

Add elevation and region data to model, which is already being returned during lookup.

Provide export/import for these new fields

Implement sortable columns to admin airports table.

* Improve import test (airport)

* Update airports > show.blade.php

Added elevation to the title
2023-09-27 15:00:19 -05:00
Nabeel S
105c7acd0f
Profile updated event (#1599)
* adds 100ll option to airport admin

* Adds profile updated event

* fix style ci issues

* UserTest style ci

* Fix test

* Fix the test

* style fixes

---------

Co-authored-by: Russell West <russellwwest@gmail.com>
2023-08-23 13:00:30 -05:00
Arthur Parienté
1def25e8c7
Aircraft booking (#1580)
* Add migration and update models

* Add a setting to enable/disable bids aircraft restriction

* Fix Aircraft > Bid relationship

* Add api route to get flight's aircrafts

* Fix Bid Model

* Add support for aircraft booking in api

* Add support for aicraft bookin in bid js

* Add aircraft booking modal

* Add booked aircraft to simbrief generate url

* Style CI

* Style CI (again)

* Make aircraft null by default in addBid

* Add test for bid with aircraft

* Add bids block aircraft logic to FlightService

* Fix add bid without aircraft

* Hide bids_aircraft modal if bids.block_aircraft is disabled

* Fix filterSubfleets in FlightService

* Eager load aircraft bids in BidService
2023-08-23 08:47:06 -05:00
Nabeel S
69ce6f4ea6
Search for airports by xhr request (#1574)
* Search for airports by xhr request

* Style fixes

* Split out tests

* Fix for the search dropdown

* Add IATA to the search

* Restore update_pending middleware

* Remove debug flags
2023-08-15 11:46:43 -05:00
Arthur Parienté
65d6f96983
Add ranks to SubfleetImporter and SubfleetExporter (#1577)
* Add ranks to SubfleetImporter and SubfleetExporter

* Add ranks to SubfleetImporter test

* StyleCI

* Sortable Columns (#1576)

* install dependency

* FontAwesome5 compatible config

* Models

* Controllers

* Blades

* StyleCI Fixes

* Another StyleCI Fix

* Change imported rank default name

---------

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
2023-08-14 15:53:16 -05:00
B.Fatih KOZ
1e71d251ab
Fleet Identification Number for Aircraft (#1560)
* Fleet Identification Number

Add fin field to aircraft

* import/export and test

Add FIN number to csv export/import operations

* fix test case

* Update aircraft-update.csv

* Make FIN SimBrief compatible

Revert from integer to string, limit to 5
2023-06-26 12:08:07 -05:00
arthurpar06
16a31d2b82
Upgrade to Laravel 10 (#1546)
* Update dependencies

* Update to Laratrust v8

* Update public path declaration

* Add return types in Unit and Metar

* Laravel 10 changes

* New types for Controllers

* Update gh actions to php 81

* Fix dbal version

* Style CI

* Style CI

* Fix new public path

* Fix view:cache command not working

* Fix laratrust new methods

* Upgrade PHP Domain Parser

* Update some more controller parameters

* Style fixes

---------

Co-authored-by: Nabeel Shahzad <nabeelio@users.noreply.github.com>
2023-06-21 11:34:11 -05:00
Nabeel S
75d6e2a6a5
Make a copy of the fares when saving them (#1545)
* Make a copy of the fares when saving them

* Style fixes

* Fix fares being editable in admin

* styleci

* Only copy over fields which don't have values

* Set the capacity before checking the count

* Remove use

* Additional comments

* Style fixes

* More style fixes

* Fix tests for fares

* Style fixes
2023-06-16 11:13:51 -05:00
Nabeel S
aa41bfd9e3
Only single journal should be initialized for an airline (#1532) 2023-03-30 16:33:53 -05:00