Skip to content

Conversation

rnowotniak
Copy link

@rnowotniak rnowotniak commented Oct 12, 2025

rnowotniak Quick rnowotniak /FIX/1939_Flights-widget-issues → Lissy93/dashy Commits: 2 | Files Changed: 1 | Additions: 2 Label Powered by Pull Request Badge

Category:
Bugfix (widget)

Overview

The Flights widget in Dashy 3.1.1 didn't work because it tried to use a non-existing field .movement.actualTimeUtc from Aerodatabox API endpoint. In the proposed PR, movement.scheduledTime and .movement.revisedTime are used instead, which fixes the Flights widget.

Before:

screenshot-20251011-140220 471301841-9PhXlF

After:

screenshot-20251011-141937 607171730-m9b64L

Additionally, the logic for Departures/Arrivals is fixed. Display Departures/Arrivals list in the widget per the direction setting.

Issue Number

#1939

New Vars

None

Screenshot (if applicable)

No UI changes. Just fix the Flights widget, and make it work again.

Code Quality Checklist (Please complete)

  • All changes are backwards compatible
  • There are no (new) build warnings or errors

Use .revisedTime.local and .scheduledTime.local instead of
.actualTimeUTC which is no longer present in the API schema.
Display Departures if direction = 'departure' or 'both'
Display Arrivals   if direction = 'arrival'   or 'both'
@rnowotniak rnowotniak requested a review from Lissy93 as a code owner October 12, 2025 13:07
Copy link

netlify bot commented Oct 12, 2025

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit 7d44e8e
🔍 Latest deploy log https://app.netlify.com/projects/dashy-dev/deploys/68eba7fb5513e00008248fc3
😎 Deploy Preview https://deploy-preview-1940--dashy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant