Skip to content

Commit

Permalink
Merge pull request #147 from vatsimnetwork/development
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck authored Oct 17, 2024
2 parents 281d6f5 + 8885ba8 commit d22b5e2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
2 changes: 2 additions & 0 deletions app/Console/Commands/PopulateTracksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Services\TracksService;
use Exception;
use Illuminate\Console\Command;
use function Sentry\captureException;

class PopulateTracksCommand extends Command
{
Expand All @@ -21,6 +22,7 @@ public function handle(TracksService $tracksService): void
$tracks = $tracksService->getTracks();
$this->line('Downloaded tracks.');
} catch (Exception $e) {
captureException($e);
$this->error('Could not download tracks.');

return;
Expand Down
5 changes: 5 additions & 0 deletions app/Http/Livewire/Controllers/ConflictChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@
use Carbon\CarbonPeriod;
use Illuminate\Database\Query\Builder;
use Illuminate\Support\Collection;
use Livewire\Attributes\Reactive;
use Livewire\Component;

class ConflictChecker extends Component
{
#[Reactive]
public $callsign;

public $originalLevel;

#[Reactive]
public $level;

public $originalEntry;

#[Reactive]
public $entry;

public $originalTime;

#[Reactive]
public $time;

public $conflicts = [];
Expand Down
1 change: 1 addition & 0 deletions app/Http/Livewire/Controllers/LtNewPending.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function configure(): void
// })
$this->setDefaultSort('request_time', 'asc');
$this->setTrimSearchStringEnabled();
$this->setRefreshTime(10000);
}

public function columns(): array
Expand Down
1 change: 1 addition & 0 deletions app/Http/Livewire/Controllers/LtNewProcessed.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function configure(): void
// })
$this->setDefaultSort('request_time', 'asc');
$this->setTrimSearchStringEnabled();
$this->setRefreshTime(10000);
}

public function columns(): array
Expand Down
8 changes: 4 additions & 4 deletions resources/views/controllers/clx/rcl-messages/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,19 +274,19 @@
</div>
<script type="module">
$("#atc_fl").change(function () {
$wire.dispatch('levelChanged', { newLevel: this.value });
Livewire.dispatch('levelChanged', { newLevel: this.value });
});
$('#entry_time_requirement').blur(function () {
$wire.dispatch('timeChanged', { newTime: this.value });
Livewire.dispatch('timeChanged', { newTime: this.value });
});
$('#new_track_id').change(function () {
$wire.dispatch('trackChanged', { newTrackId: this.track });
Livewire.dispatch('trackChanged', { newTrackId: this.track });
});
$('#new_random_routeing').blur(function () {
$wire.dispatch('rrChanged', {newRouteing: this.value });
Livewire.dispatch('rrChanged', { newRouteing: this.value });
});
</script>
@endsection
17 changes: 0 additions & 17 deletions resources/views/livewire/controllers/create-manual-clx.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,4 @@
</div>
</form>
</div>
<script type="module">
$("#atc_fl").change(function () {
$wire.dispatch('levelChanged', { newLevel: this.value });
});
$('#entry_time_requirement').blur(function () {
$wire.dispatch('timeChanged', { newTime: this.value });
});
$('#new_track_id').change(function () {
$wire.dispatch('trackChanged', { newTrackId: this.track });
});
$('#new_random_routeing').blur(function () {
$wire.dispatch('rrChanged', {newRouteing: this.value });
});
</script>
</div>
6 changes: 5 additions & 1 deletion resources/views/tracks/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<div class="container">
<h2 class="fs-2 font-display text-primary-emphasis mb-4">Tracks</h2>
<div class="alert alert-info">
<span>This page shows the tracks in use on natTrak. These tracks are sourced from the VATSIM Gander Oceanic tracks API. Active tracks are in use and valid for requesting clearances. Inactive tracks are no longer valid and cannot be requested, but remain visible for clearances that were on that track. Concorde tracks are based off historical data and are request-able by aircraft detected as Concorde only.</span>
This page shows the tracks in use on natTrak.
Active tracks are in use and valid for requesting clearances.
Inactive tracks are no longer valid and cannot be requested,
but remain visible for clearances that were on that track.
Concorde tracks are based off historical data and are only available to aircraft detected as Concorde.
</div>
<div class="vstack gap-4">
<div>
Expand Down

0 comments on commit d22b5e2

Please sign in to comment.