Skip to content

Commit

Permalink
Add screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
amandeepg committed Feb 12, 2024
1 parent 8c5fc32 commit 5c49ad5
Show file tree
Hide file tree
Showing 13 changed files with 279 additions and 60 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<img src="./play_store_512.png" width="256"/>
# Arrivals for PATH [![Build with Gradle](https://github.com/amandeepg/PathTimes/actions/workflows/gradle.yml/badge.svg)](https://github.com/amandeepg/PathTimes/actions/workflows/gradle.yml)

An Android app for riding [the PATH](https://en.wikipedia.org/wiki/PATH_(rail_system)) that shows the next arrivals for trains at every station.



Some features of the app:
* Modern design, more visually pleasing than the official app.
* Real-time display of upcoming trains at every PATH station.
* Utilizes authentic color-coding and styling, mirroring PATH signage and train visuals for a familiar experience to both new and seasoned commuters.
* Arranges listings based on proximity, eliminating the need for scrolling.
* Optional filtering to exclusively view trains bound for NYC when in NJ, or vice versa, so you only see the trains you actually care about.
* Flexibility in display naming, from concise "WTC" to extended "World Trade Center," accommodating varied levels of local familiarity.
* Functioning countdowns during WiFi/data signal loss, referencing the most recent app data.
* Uses [Matt Razza's API](https://github.com/mrazza/path-data), the same source of data used in Citymapper and Transit.
* Flexibility in display naming, from concise "WTC" to expanded "World Trade Center," accommodating varied levels of local familiarity.
* Functioning countdowns during WiFi/data signal loss, referencing the most recent data.
* Presents comprehensive PATH alerts, intelligently grouped to provide an up-to-date status overview for each incident and train line.
* Show PATH alerts specific to each line when seeing a train's ETA, so you know right away if your train is delayed.

Expand All @@ -24,3 +22,4 @@ Built with:
* [Android ViewModels](https://developer.android.com/topic/libraries/architecture/viewmodel)

## Screenshots
<img src="./screenshots/1.webp" width="400"/> <img src="./screenshots/2.webp" width="400"/>
1 change: 1 addition & 0 deletions app/src/main/kotlin/ui/main/MainUiState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ data class UiUpcomingTrain(
val isInOppositeDirection: Boolean = false,
val showDirectionHelpText: Boolean = false,
val alerts: ImmutableList<AlertData.Grouped> = persistentListOf(),
val forceAlertsOpen: Boolean = false,
)

fun Iterable<UpcomingTrain>.toUiTrains(
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/kotlin/ui/stations/Train.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ fun Train(
train = train,
now = now,
autoRefreshingNow = autoRefreshingNow,
alertsExpanded = alertsExpanded,
alertsExpanded = alertsExpanded || train.forceAlertsOpen,
setAlertsExpanded = setAlertsExpanded,
)
}
if (train.alerts.isNotEmpty()) {
ExpandableView(
isExpanded = alertsExpanded,
isExpanded = alertsExpanded || train.forceAlertsOpen,
) {
Surface(
shape = RoundedCornerShape(10.dp),
Expand Down
Loading

0 comments on commit 5c49ad5

Please sign in to comment.