* wip
* refactor: update enum handling and improve type hints across models
* refactor: deprecate labels and select methods in HasSelect trait for better separation of concerns
* copilot suggestions
- NewsService: direct News::create/find/fill+save/delete calls, no more
repo dependency
- Api/NewsController: News::with/latest/paginate instead of repo chain
- LatestNews widget: same, using Eloquent latest() and paginate()
- Remove dead public static array $rules from News model (unused by
anything — was a Prettus validator hook that was never activated)
The Phase 0 NewsListShapeTest locks the JSON contract, so API
consumers see no behavioral difference.
Part of Phase 1b of the Prettus repository removal.
* Use eager loading in SubfleetRepository
* Remove useless queries from LiveMapController
* Use eager loading in LatestPilots
* Load page_links only in nav view
* Store settings in cache when env is production
* Style CI fix
* Store modules queries when env is prod
* Style CI fix
* Don't check env before forgetting settings or modules cache
* Fix DeletedUsers being displayed at Homepage
Deleted users should not be displayed at homepage / newest pilots list. PR fixes that problem.
* Do Not Display Deleted Users with LatestPireps
As the main page, Latest Pilots widget should not display GDPR/Soft deleted users too.
* StyleFix
* Change LatestPireps Widget Sort Order
Latest pireps should be ordered by `submitted_at` instead of `created_at` .
Pirep may be created even a day before others (with the pause/resume ability we have in acars) but it gets submitted once when the flight is ended, thus I think it should be our reference to sort them in proper order.
* Trying to Pass UnitTest
* Update AviationWeather.php
Added the ability to fetch latest TAF report of given icao from ADDS/NOAA
* Update Weather.php
Used updated Metar\AviationWeather service to improve the widget ability and provide raw TAF data for the view
* Style Fix 1
* Update weather.blade.php
Updated blade to match updated Metar\AviationWeather service and the Weather widget controller.
Also fixed the order of temp - dewpoint - humidity - visibility display according to aviation usage.
Widget now displays raw TAF data just below raw METAR data.
* Update Metar inferface and wrap TAF retrieval in cache
* Styles fix
* Add call to getTaf. Don't call AviationWeather directly
* Fix cache lookup strings
* Fix recursion error
* Update weather.blade.php
Used latest weather.blade , added $taf['raw'] after raw metar.
* Compatibility Update
Updated the widget controller to match latest dev (added raw_only to config)
* Update Weather Widget Blade
Made the widget blade compatible with the TAF reports, widget will display raw metar and taf after the decoder, if no metar or taf recieved it will be displayed in its own row. Also added the new option of raw_only to blade, if it is true, metar decoding will be skipped and only raw values will be displayed. ( Useful when displaying multiple wx widgets at the same page for departure, destination and alternate etc )
Co-authored-by: Nabeel Shahzad <nshahzad@live.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>