* 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
* 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
* 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
* 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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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
* 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>
* 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
* 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
* 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>
* 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
* 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>
* 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
* 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
* 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>
* 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
* 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
* 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>
* 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
* 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
* 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
* 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>
* 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