Giter VIP home page Giter VIP logo

ferry.fyi's People

Contributors

adamloving avatar anstosa avatar dependabot[bot] avatar srt4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ferry.fyi's Issues

Footer menu style is broken when loaded from iphone home screen

image

OS: iOS 15.3.1
Browser: Safari (home screen)
Repro Steps:

  1. Open https://www.ferry.fyi on iPhone Safari
  2. Click the share icon from the url bar
  3. Click "Add to Home Screen"
  4. Open the page from the added home screen button
  5. click any location to display footer menus

Footer menu style is broken when the page is loaded from the iPhone home screen. It looks fine when it is opened on a regular safari tab or other browsers. I did a little debugging and it looks like the env(safe-area-inset-XXXXX) values break the style.

Overwriting values to 0 on margin bottom on the Footer and the padding top and bottom on the child fixes it.

It might need to use a media query of [display-mode: standalone](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/display-mode) to make the spacing values conditional.

Bug: difficult to tap menu with one item

To repro

  1. Select Seattle -> Bainbridge
  2. Tap the right hand menu, then tap on the bottom half of the text ("Bremerton")

Expected
Shows Seattle -> Bainbridge

Actual
Tap is not detected (due to gradient overlay at bottom of menu)

Screen.Recording.2021-07-27.at.4.45.47.PM.mov

Swipe gestures

  • Swipe left to open/close menu
  • Swipe down to close flyups
  • Swipe down to close notificatitons

Update README.md with local development instructions

Wanted to check this out and run it locally to see how it works, trying to create a similar UI for work shuttle arrivals. Ran into a few issues, following the README instructions verbatim:

  1. Font Awesome token is missing

    1. This is expected, since it's a secret. However, local development instructions can include that this value needs to be replaced in .npmrc. Alternatively, I have commented out all dependencies for Font Awesome to get around this issue.
  2. npm run server doesn't seem to be a command that works. I get this response, after running brew update && brew upgrade npm && npm update && npm install:

    $ npm run server
    npm ERR! missing script: server
    npm ERR! 
    npm ERR! Did you mean this?
    npm ERR!     worker

    It looks like the corresponding run command should be web, if my understanding is correct.

  3. There's a PostgreSQL server which needs to be running, defined in server/lib/db.js#8:

    const [, dialect] = process.env.DATABASE_URL.match(/^(\w+):\/{1,2}(.*)$/);
    1. I'm going to try to run this against an empty database instance, but I'm not sure if schema provisioning is required for this to work. Since there's a server/migrations and server/model folder I'm thinking it will create the necessary tables.

Let me know if there's anything I missed in getting my environment up and running. I'm happy to submit a PR for items 1 and 2 if the workarounds make sense. Still looking into 3.

Same vessel is an hour late and on time

1012FDBD-0469-4FE0-B02D-CBF9F1396F47

At 2020-01-07 18:30 PST the M/V Suquamish was simultaneously reported to be an hour late for the 5:35 sailing from Clinton and also on time for the 6:35 sailing. This seems like a bug, though it could originate on the WSF side.

Capacitor push notification system

  • Infrastructure for sending alerts based on filtered WSF bulletins and detected delays.
  • Allow user to filter by day of week and route

Can this be done without accounts?

Get location and suggest relevant ferry

If the user grants location permission and they are within a few miles of a ferry terminal, suggest that they view that terminal

Solves the problem where you are accidentally viewing the right schedule in the wrong direction

Forecast schedule recovery

F08D7C73-1309-41EC-AC9C-115DBCBA2E42

Mukilteo-Clinton ferries typically stay on time in the AM (uni-directional peak volumes eastbound) but get progressively later throughout the afternoon (bi-directional peak volumes). They then gradually return to on-time operation in the late evening. Currently late ferries are predicted to stay late all night.

Bug: Terminal chooser dropdown selects wrong route

To repro

  1. Open ferry.fyi (in a private browser it defaults to Mukilteo -> Clinton
  2. Tap Seattle (top left)
  3. Tap Bainbridge (top right)

Expected
shows Seattle -> Bainbridge

Actual
shows Bremerton -> Seattle

Saw this on my iPhone as well, but this video is from desktop

ferry.mp4

Add NLP parsing for cancellations

Cancellations may need to be inferred from human-readable ferry alerts, TIS data, and/or user reports if they are not reflected in the WSF schedule.

321A17DD-0B32-4654-95D9-614984E2AE96
6427332F-3102-4E65-97FD-38C42E3C594A

Add saved passes

  • Scan barcodes with Quagga
  • Detect reservation barcode and save it with special tag
  • Allow user to tag other barcodes with set of sensible tags (route, multi-use pass, etc)
  • Tap to view barcode in full screen with jsbarcode

Late ferry (still at dock) shown as having departed early

At 6:27 p.m., ferry.fyi was showing that the 6:10 departure from Mukilteo was predicted to be 28 minutes late, i.e. at 6:38. This is accurate. I'm on board at 6:33 and it's still loading vehicles.

But, it also says that the 6:10 ferry already departed 38 minutes ago at 5:49. That's clearly incorrect.

F1D2FD83-2662-4E16-A3EA-3455266B13FF

Process for working around incorrect stats from API

Tokitae (scheduled 6:40 PM) is shown as having departed 32 minutes late at 7:12 PM but is still docked as of 7:20 PM.

If the API lies about departure times, maybe we could learn actual departure times from vessel position data instead?

5E6760EC-90FA-4EBF-BCC2-08EE73D50FEC
63CB3C6A-56B9-4760-BCBE-932D247E4085

Holiday schedule

On the 4th of July, ferry.fyi showed a regular weekday schedule instead of the holiday schedule. The extra evening runs were not shown.

Terminal Picker shows incorrect selection

(probably a duplicate of #31 )

Steps to Repro
While viewing Bainbridge -> Seattle

  1. Select Seattle (left)
  2. Select Bremerton (right)

Expected
Shows Seattle -> Bremerton

Actual
Shows Bainbridge -> Seattle

RPReplay_Final1627340822.MP4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.