HustleTime Development: Ignoring specific train lines (part 2)

So, I’m getting back to work on the next big feature, which is to allow the user to ignore specific train lines. I wasn’t 100% sure how to actually give the user an intuitive way to set this, but I’ve decided to build on my idea in my last post.

I’ve set the modal to have 2 ‘tabs’

My hope is that the user understands that each of the lines is a clickable object that will set that specific train to be ignored or not.

Each train line image is rendered as a <TouchableOpacity> which sets the state for each individual line to toggle a boolean. The opacity of the image rendered is influenced by the value of the bool:

I’ve clicked on the C and the F trains.

I’m pleased with this implementation so far. I still feel confused as to how to deal with the Franklin Avenue Shuttle and the Grand Central/Times Square Shuttle, but for now, I’ll leave that be.

The next steps:

  • save this information to UserDefaults so your preferences remain saved to your device
  • automatically load these preferences on open
  • include this information in the api call to the back end
  • set up the back end to be able to receive this array
  • change the redis search to disregard ignored lines
  • clean up some of the margins/padding etc.

I think this is a pretty exciting new feature and I’m sure people will use it. I personally find myself needing an F train in manhattan and when I open HustleTime and see two incoming M trains, I’m disappointed.

I’m actively working on this app, so if anyone has any suggestions for features that aren’t on my Trello Board please comment and let me know of a feature you’d like to see (and yes, I know people are hoping for buses).

You can get HustleTime on both Android and iPhone free!