Change Log

Introduction

This documents aims to detail all the changes that have been made across the Tory Ferry platform.


Changes

Admin Updates | Up to 2026-11-12

Admin
  • ferry_admin is shared with Arranmore, and admin.toryferry.com deploys from the same main, so Tory got these changes too:
    • Ticket history shows each change's full date and time to the second, then how long ago, and who made it, with "(till)" after a POS device. Hovering a name shows their email
    • Every date picker sends the day picked as 12:00 UTC, matching how the API has stored days since 2026-11-05. They used to send local noon, and a form left untouched sent the moment it was opened
    • Saving a ticket as an open return clears its return date and time, and the return picker is hidden, since an open return has no sailing to pick
    • A View button on each row of the message log opens the message in a sheet, showing why a failed message failed and what to do about it. Push tokens are shortened
    • The Accounts filter matches email as well as name
    • The Accounts page waits for the sign-in before loading. On a full page reload it asked before Firebase had restored the session, so the API refused it
    • The POS Devices page was rebuilt around Arranmore's device accounts, which tf_api doesn't have yet, so it showed an empty, broken page. Where the API has no device accounts it now falls back to the old hand-typed list and its panels. This is temporary until tf_api has device accounts
    • Pinned Node 22.23.4 for the Brotli decoder fix (CVE-2026-111497)
  • Not working on Tory yet, as tf_api doesn't have the endpoints or fields: account aliases, the Notifiable badge, the message log's status and date filters, the Sent By column (it shows "Not recorded"), and the POS role on accounts

Dublin-Day Revenue and v1 Retirement | 2026-11-11

App
API
  • API:
    • Revenue and statistics now count Dublin days (Vikunja #20). The admin sends the picked day as the browser's midnight, which in Irish summer time is 23:00 UTC the day before, so from late March to late October the revenue page mostly showed the previous day's takings. In winter a sale between midnight and 1am still landed on the wrong day
    • Retired the old v1 admin routes now that tf_admin is no longer deployed and ferry_admin uses /v2/admin. Every route was checked against the app, the website, the admin, the POS apps, the till and the kiosk, and against 30 days of Loki traffic, before it went. They now answer 410 "Please update your app" and are logged as V1GONE. Several had no login check at all, so anyone could add, change or remove a sailing or read someone's tickets. This also retires the v1 admin routes that took raw dates (Vikunja #21)
    • The v1 routes still in use now need a login:
      • The crew list of a day's tickets, which includes names and contact details, now needs an admin login. The app has always sent the crew member's token
      • The ticket, buy and saved-card routes used by old app versions now need the caller's own login, as the account routes have since 2026-11-05. Before, anyone could read another person's tickets, list or remove their saved cards, or pay with them
    • The routes the admin, the website and the app still use, the timetables, error reporting and the Stripe webhooks are unchanged. The controllers weren't touched, so a retired route can be brought back by remounting it
  • App:
    • The 3-D Secure confirmation screen now loads the paid ticket through v2, retrying while the payment webhook catches up. The old v1 call always came back empty, so the screen told the customer they hadn't been charged. The screen isn't reachable at the moment, but it won't mislead if it comes back. The app no longer calls /app/v1/tickets/get
  • Merged into main

6.9.0 Release and Dublin Dates | 2026-11-05

App
API
  • App:
    • Released 6.9.0+10690. It carries the tablet and foldable layouts, the intro and what's-new tour, Pay Now, the "Your Activity" switch, signing back in after a lost session, the 2026-10-26 Bugsink fixes and the Flutter 3.47.7 upgrade
    • Changing a ticket loads the return date for return tickets again. The check was the wrong way round, so a return kept the form's old date and a single loaded its -1 as a 1970 return date
  • API:
    • Every day date is now stored at noon UTC on its Dublin day, ported from Arranmore. The server runs in UTC, so a Dublin midnight in summer (23:00 UTC the day before) was stored and matched a day early
    • Beyond the Arranmore change, the reservation ticket creator and the reroute handlers also store their dates this way. The cancel and reroute filters compare Dublin days, and availability, the v1 timetables and the admin dashboard pick the timetable by the Dublin weekday
    • Admin lookups by day, the filtered search and the POS ticket list use the whole Dublin day
    • Added the backfill scripts, which target toryFerry, ask for the container, check it holds toryFerry and stop if any backup fails
    • A signed-in caller can now only act on their own account and tickets, ported from Arranmore. v1 checked the token was valid but not whose it was, and the account and ticket routes took the uid from the body, so any signed-in user could read, edit or delete another account or its tickets. A uid that isn't the caller's is now refused and logged, and a missing one is filled in from the token
    • Creating an account only takes known fields and always makes a normal user, and updating one only takes the name, phone number, card details, device token and photo. Before, either could be used to make an account an admin. The app and website already send their own uid, so neither needed changing. Merged into main on 2026-11-06

Session and Privacy Fixes | 2026-10-26

App
API
  • App:
    • When a dead credential ends a session, a Google user is signed back in quietly and the request carries on. Anyone else is signed out properly, and My Ferry says they were signed out and how they signed in, with their email filled in for email sign-in. Before, My Ferry still showed a signed-in card for a session that no longer existed
    • Fixed Edit Account crashing for an account with no sign-in provider recorded (APP-TORYFERRY-43)
    • Notification topic switches on iOS wait for the APNs token, and every launch re-applies the switched-on topics (APP-TORYFERRY-44)
    • Apple sign-in error 1000 now tells the user to sign in to their Apple Account in Settings, and is no longer reported (APP-TORYFERRY-22)
  • API:
    • /app/account/email no longer returns the account. It takes no auth, so anyone with an email address could get that person's name, phone number and device token. The app and website only ever read the message

Tablet and Foldable Layouts | Up to 2026-10-25

App
API
Web
  • App:
    • Added a tablet layout, ported from Arranmore. From 600 wide, pages sit in a centred column and the app turns with the device. From 700 wide, the dashboard shows Tory and Magheroarty as two columns. On phones, only the dashboard button margins change
    • Added support for foldables and the iPhone Duo with duo_kit. Open, the dashboard stays on the left with the other tabs on the right, and dialogs and sheets keep to one side of the fold
    • The foldable display bridge only runs on iOS, as Android reports the fold itself and was raising an error on every debug launch (APP-TORYFERRY-45)
  • API and Web:
    • Pinned Node 22.23.4 for CVE-2026-111497, a Brotli decoder issue

Notifications and GTFS Update | 2026-10-18

App
API
  • App:
    • Added a "Your Activity" notification switch between Changes and News, on My Ferry and Setup Notifications. It's saved to the account, and a save that can't land is retried on the next launch or after sign-in
    • Setup Notifications draws its example notifications as the phone would, instead of showing screenshots. They can be translated now and stay sharp on large phones. The Irish strings are drafts
  • API:
    • Messages from the office and the reserved-ticket push are held back for anyone who turns "Your Activity" off, and logged as "suppressed". Texts are never held back
    • Set the GTFS feed's pier coordinates to the operator's figures for Tory Island and Magheroarty
    • The email tests now say so when they're run without --experimental-vm-modules, rather than every template failing

6.8.0 Release, Pay Now and Admin Parity | 2026-10-17

App
API
Admin
  • App:
    • Released 6.8.0+10680:
      • Fixed buying a ticket wiping the account's name. The hidden name field was still being saved, empty
      • Accepting or failing a reroute now says what happened, rather than "Ticket Refund Requested"
      • Web links open in the external browser again on Android
      • Fixed "pring" to "bring" in the SmartPass notice, and the SmartPass and student ID notices are translated
      • Cleaned up the code, taking 1,101 analyzer issues down to 3, and renamed 59 files to snake_case. Six imports only worked because macOS ignores case
    • Upgraded to Flutter 3.47.7 and current dependencies, including google_sign_in 7, font_awesome_flutter 11 and flutter_stripe 14. iOS plugins now come through Swift Package Manager
    • Google sign-in on Android opens Google's account sheet, falling back to the full screen only when there's no account to offer
    • Added a first-run intro and a what's-new tour, ported from Arranmore. Setup Notifications plays itself and only asks for permission when Turn On Notifications is tapped. People upgrading get the tour, not the intro, and both can be replayed from My Ferry
    • Reserved tickets show a Pay Now button and can be paid for with the Stripe sheet
    • Old Tickets loads 20 at a time, newest first
  • API:
    • Added payment for reserved tickets, ported from Arranmore. It always charges the price stored on the ticket. A declined card no longer cancels the reservation
    • A push telling the customer their reserved ticket can be paid for, behind SEND_RESERVED_TICKET_NOTIFICATIONS
    • The ticket archive is sorted newest first and can be paged, with a new index behind it. Without a limit it still returns everything, so older app versions are unaffected
    • Admin routes now verify the Firebase token, rather than trusting a uid header that anyone could set. v1's admin check had the same problem. Routes with no guard at all, including account, timetable, notes, notification and POS routes, now have one
    • Added the endpoints ferry_admin main needs, ported from Arranmore: paged accounts with edit, role, archive and restore, paged change lists and messages with stats, and a per-account activity log
    • Publishes a GTFS static feed at api.toryferry.com/gtfs, ported from Arranmore and rebuilt nightly
  • Admin:
    • tf_admin is retired in favour of ferry_admin

App 6.7.4 Release | 2026-10-14

App
  • Released 6.7.4+10674, and brought the version file up to date. It had been left at 6.5.2, which the deploy lanes read
  • The fastlane deploy lanes take bump: so they can run without prompts
  • Fixed the iOS deploy lane, which never started the archive and looked for the wrong .ipa name

App 6.7.3 Release | 2026-10-13

App
  • Released 6.7.3. Pods are raised to iOS 15.0, as Xcode 27 won't build anything lower
  • Play's pre-launch emulators are recognised even without the Test Lab flag, so their runs stop reaching Bugsink
  • A TLS handshake the network cut off is no longer reported, while a certificate failure still is

API Logging Fix | 2026-10-02

API
  • Fixed the Loki log transport freezing the API, which stopped responding on 2 October and needed a restart. Failed pushes were being retried forever, and the growing backlog blocked the server
  • Loki now uses fixed labels, and failed pushes show in the container logs
  • Log files rotate at 20MB, keeping 10. http.log had reached 660MB

App Crash and Error Reporting Fixes | 2026-09-24

App
  • Fixed opening the time picker offline crashing the screen (APP-TORYFERRY-30)
  • The Snapchat link opens in the browser when Snapchat isn't installed, instead of throwing (APP-TORYFERRY-38)
  • A "credential is no longer valid" error on Android now ends the session, rather than leaving the user signed in with no working token (APP-TORYFERRY-39)
  • Stopped reporting network drops, client timeouts and Play pre-launch test devices to Bugsink. Error responses from the server still report

App 6.7.2 and Ticket Lookup Fixes | 2026-08-31

App
API
  • App:
    • Released 6.7.2
    • After paying, the app keeps asking for the ticket until the Stripe webhook has activated it, rather than failing when it asked too soon (APP-TORYFERRY-31)
    • Draws edge to edge on every Android version, and back returns to the dashboard without switching off the predictive back gesture
  • API:
    • Looking up a ticket that doesn't exist now answers 404 rather than an empty success, and a malformed id answers 400 rather than throwing
    • Admin ticket search rejects an empty term, which used to return every ticket. Search terms are escaped, and a long term that isn't an id no longer throws (API-TORYFERRY-7)

6.7.0 Release | 2026-08-13

App
API
  • Released 6.7.0
    • A minor rather than a patch bump, as the release grew past its original scope - alongside the session and crash fixes it carries the profile fix, which changed how every sign-in path builds the user
    • The iOS build number skips 1073, which was already burned on a local test build - App Store Connect never lets a build number be reused
    • Corrected the version named in the auth-failure log comment, which is the reference point for judging any missing-token 403 seen after release

App Session and Profile Fixes (6.6.3) | 2026-08-12

App
API
  • App:
    • Fixed a dropped connection signing the user out - this was the highest-volume issue on the project, 90 events
      • refreshToken() caught every exception and signed out, and the token is refreshed over the network once it's an hour old, so opening the app on a weak connection destroyed a valid session outright
      • The request then went out with no auth token at all, came back 403, and the app showed that as the offline state - a passenger holding a valid ticket saw an empty list
      • It now signs out only for the four Firebase codes that mean the credential itself is dead. Keeping a dead credential costs one rejected request; dropping a live session makes someone log in again
      • The ticket calls bail on a missing token instead of sending a request that can only 403
    • Fixed the account screens crashing when there's no account - opening ticket details signed out took the screen down mid-purchase, on a screen that renders sign-in buttons further down
    • Fixed a sign-in erasing the name and phone number:
      • Reported as: sign out, sign in with Apple, sign out, sign in with Google - after which the account card showed the name as the word "null" and no phone number. The server still held both, so nothing was lost; the local copy was being overwritten with a worse one
      • The app took whichever provider Firebase listed first rather than the one being signed in with, and Apple only sends a name on the very first authorisation for an account
      • A null name was being converted to the four-character string "null", which is the literal word that appeared on screen. The API has scrubbed that on insert for years, a layer too late; it's now rejected at the source too
      • Firebase only fills in a phone number for phone sign-in, so signing in with Apple, Google or email was discarding the stored one every time
      • Sign-in now takes the account back from the API and uses it to fill gaps, since Logout clears the local copy before signing out
    • Google sign-in failing on a sideloaded or re-signed build is no longer reported as an error - the signature can't match anything registered against the Firebase project, so the refusal is correct. The same failure from a Play install still reports, because those do sometimes matter
    • Requests now send an X-App-Version header, e.g. 6.6.3+10663 - Dart's HTTP client sends the same user agent for every release ever shipped, so the access log couldn't tell one build from another
    • Added four signed-in Maestro flows - the existing ones all ran logged out, so none of them touched the code these fixes changed. They cover sign-in, an invalid password, My Tickets and the Edit Account screen
      • Also fixed dev builds being unable to reach a local API over plain HTTP at all, which targeting Android 16 had blocked
  • API:
    • The access log and the auth-failure log now record the app version, so a missing-token 403 after release can be told apart from a straggler still on 6.6.2

API Fix | 2026-08-09

API
  • Fixed two undeclared variables in the v1 test route

App and API Error Fixes (6.6.2) | 2026-08-03

App
API
  • App - fixed the error handling behind the top Bugsink issues:
    • The auth token returned an empty string on failure and every caller sent it to the API, which rejects it with a 403 - so a client-side token problem surfaced as a server error and an empty ticket list
    • Dropped the forced token refresh, a network round trip to Google on every API call that added latency and signed people out whenever it failed on a weak connection
    • Replaced 23 broken error handlers - each threw an ArgumentError in place of the real error, destroying the status code and URL, and 17 of them had no surrounding try at all
    • Fixed all 5 misuses of the request timeout, which threw instead of degrading
    • Dismissing the Google account picker crashed instead of cancelling
    • About half the app's reported error volume wasn't defects - dismissed sign-in and payment sheets, devices with no connectivity and ordinary password validation are no longer reported
      • The largest single source was the update check running at cold start before the device had brought the network up; it now checks connectivity first
      • Cancelling an Apple or Google sign-in no longer shows an error banner either - telling someone "couldn't log in" for something they chose to do is wrong
      • Timeouts, every HTTP error response and the sign-in failures that indicate a configuration problem are all deliberately still reported, and there are tests to keep it that way
    • The ticket service now checks the response shape before reading it - a non-JSON reply from the API or a proxy in front of it crashed, was swallowed, and showed to the user as "offline"
    • Removed the admin check-in button from the My Ferry page - check-in is handled in the web admin panel
    • Slowed the shimmer on the ticket buttons, which read as a flicker rather than a highlight
  • API:
    • Fixed admin authorisation 500ing when the account lookup finds nothing - a soft-deleted account, a uid from another environment's database or a stale header. Reported against the admin ticket lookup, which is why the admin app couldn't load ticket data
    • 403s are now diagnosable - both auth paths log a structured reason (no token, expired token, no account, not an admin) through winston into Loki, where before the only trace was a console line inside the container
    • The token itself is never logged, only whether one was present
    • Set trust proxy to one hop, so the access log records the real client address instead of Traefik's address on the Docker network for every request

Email and Privacy Update | 2026-07-29

API
Web
  • Updated the receipt and updated-receipt emails, and the shared email styles
  • Improved the privacy policy page on the website

Statistics Update | 2026-07-26

API
  • Ported the Arranmore statistics work over, adapted for Tory:
    • Statistics can now be narrowed to a single sailing - all three endpoints take an optional journey and time, and the return leg matches the opposite sailing
    • New totals endpoint returning tickets and passengers. No vehicle breakdown, unlike Arranmore, as Tory is passenger only
    • Soft-deleted tickets are now excluded from every statistics aggregation, so a single-sailing view agrees with the dashboard for the same ferry. Whole-day totals may drop slightly as a result
    • Checked against the local database for one day - 124 tickets and 265 passengers, matching an independent count, and summing all eight sailings reconciles to the whole-day figure exactly

Stripe Metadata Update | 2026-07-25

API
  • Stripe PaymentIntents are now tagged with the ticket id, ticket ref, user id and payment method
    • Payments are traceable back to a ticket from the Stripe dashboard for every ticket, not just ones that complete payment
    • All 8 PaymentIntent creation flows now go through the same insertTicketWithPaymentIntent and tagPaymentIntentWithTicket helpers

App and API Overhaul | 2026-07-22

App
API

Huge Update

  • API:
    • Upgraded the whole dependency stack to match the Arranmore API - Express 4 to 5, MongoDB 4 to 7, Stripe 10 to 19, firebase-admin 11 to 13, react-email 1 to 6, TypeScript 5.3 to 5.8. Node 20.19+ is now required
    • Migrated the v1 controllers off the MongoDB callback API that was dropped in driver 5 - 46 call sites. On the new driver those requests hung forever with no error, GET /timetables included, which the app calls on every launch
    • Fixed crashes found along the way:
      • Cancelling a sailing with tickets on it crashed the API and emailed nobody - the cancellation email was being called with one argument against a four-argument signature
      • An unknown user on getPaymentIntent carried on into a null dereference instead of stopping
    • Moved the database, Stripe and Twilio secrets out of the config files and into gitignored .env files, with a documented .env.example
      • This uncovered a dotenv ordering bug the hardcoded values had been masking - the config was read before the env file had loaded
      • The old credentials are still in the git history and need rotating
    • Error reporting added via Sentry and Bugsink, along with Loki log shipping and a request logger
    • The auth token moved from req.body.authUser to req.authUser - Express 5 leaves the body undefined on GETs, which would have 500'd every authenticated ticket read
    • Added a local test harness - 88 v2 routes are probed for the Express 5 upgrade and all nine email templates are rendered
  • App:
    • Fixed the sold-out guard - it compared seats against a car count, which is always 0 on Tory, so passengers could be added to a full sailing with the Buy button still live. Only the server-side check at payment stopped it
    • The ticket card now shows the price actually paid rather than recalculating it on the phone, so discounts and islander rates match the receipt
    • Fixed tickets greying out 30 minutes before departure instead of after - the grace period was added to the wrong side, so the QR code read as expired exactly when the crew needed to scan it
    • Free passenger bookings now go through the normal booking path - they were being sent to a reservation endpoint that doesn't exist in the API and failed with "Reservation Failed"
      • Free baskets are re-priced against the server price list before a ticket is issued, so a spoofed zero total can't mint a valid ticket
      • The genuinely free fares are islander children under 14 - the smartpass is charged for
    • Timetable parsing is now typed and guarded - one bad record used to take the whole timetables page down instead of being skipped
    • Translations now come from Tolgee as the source of truth, with a pull script that runs before a build
    • Now targeting Android 16 (API 36) ahead of the Google Play deadline on 31 August 2026
    • Added a Maestro device test suite - four flows passing on iOS 26.2 and Android 16
  • Wrote up the Tory/Arranmore parity audit and the upgrade in PARITY_WITH_ARRANMORE.md and UPGRADE_NOTES.md

Email Update | 2026-06-22

API
  • Removed "All tickets are non-refundable but fully transferable" from the cancellation emails

API Updates | 2026-06-13

API
Kiosk
  • Fixed a kiosk timezone bug - the weekday was worked out on the server's UTC clock, so a date picked at midnight rolled back a day and returned the wrong timetable
  • Ticket history now records who made the change, and sorts in the right order

API Updates | 2026-05-31

API
  • Email logging now includes the ticket reference and the recipient address

App Update | 2026-05-01

App
  • Updated to the latest Stripe plugin

App and Kiosk Update | 2026-04-29

App
Kiosk
  • App:
    • Updated Firebase Auth for reCAPTCHA 6.5.0
    • Improved profile editing
  • Kiosk:
    • Updated to the latest Next.js version

Admin Reroute Functionality | 2025-10-23

Admin
API
  • Added reroute functionality to the Admin panel
  • Added all reroute API endpoints
    • When rerouting a ferry, no emails are sent, just marked as "Requires Attention"
  • Added cancellation - "Mark as Requies Attention" to the cancellation panel

App Declaration Update | 2025-10-07

App
  • App Financial Features Declaration Completed

Web and Admin Updates | 2025-07-25

Admin
  • Added a new git branch for admin

Web and Admin Updates | 2025-06-18

Admin
Web
API
Kiosk

Huge Update

  • Server Updates:
    • Moved servers from Heineken to Rex (Hetzner)
    • Deployed using CI/CD pipeline
    • Moved from bitbucket to GitHub
  • POS Devices:
    • Added login functionality to the POS devices
      • Each device has a device_id registered in POS Devices tables
      • Always included in the POS headers
    • Improved the Revenue APIs
      • POS devices can now print out the full data
  • API:
    • Promo Code functionality exists in the API
    • Ready for Kiosk deployment
    • Device IDs
    • Revenue is available in admin and per device
  • Admin Panel:
    • Brought the admin panel in line with latest version, complete rewrite.
    • Updated the admin panel update functionality
      • Only makes changes to specific fields in the ticket
    • Added the "Push To Device"
      • Tickets can be push from admin
      • Tickets can be picked up on the admin till
  • Web:
  • Kiosk Updates:
    • Removed all references to snow in the kiosk
    • Added a preferred payment method when selecting the payment device from Stripe

App Update | Up to 2024-10-09

App
  • Support for iOS Dark and Tinted Icons and iOS 18.0
  • Support for Themed Icons on Android
  • All Flutter plugins up to date (Flutter v3.24.3)

App, Admin & API | Up to 2024-07-10

App
POS
  • Updated App
    • Updated styles for Stripe
    • Target Android Version 34
    • Configured a dev and prod app
  • Updated POS Ticket / Machine
    • Updated so that tickets with vehicles appear at the top
    • Updated to use a new version of Shorebird
    • Configured a dev and prod flavor
    • Updated to Flutter 3.22.0

hexa studios

mobile app and web developers

All rights reserved.