Commit graph

50 commits

Author SHA1 Message Date
c74e6166bf Fix status text contrast on green rows
Green status rows used white text, which was difficult to read against the green background. This change selects a contrasting text color based on the status color so green rows use black text and other statuses keep white text for better legibility in the status table.
2026-08-23 21:46:15 -04:00
915d0ec2dc Train status is now coloured coded for your convenience
- Introduced TrainLateness enum to represent on-time, early, late (with minutes), and unknown states, including description text, color, and formatting logic.
- Replaced TrainStatusRow.status String with TrainLateness and update ContentView to render a colored status pill and to return TrainLateness from isOnTime.
2026-08-23 21:23:45 -04:00
3533e5d4b8 Train status now properly gives minutes (or hours) a train is early or late
- Convert AmtrakDateFormatting API from static to instance properties/methods and added parsedDate(from:) to return Date.
- Update time(from:) and date(from:) to instance methods. Improve isOnTime logic to compute actual vs scheduled differences (minutes/hours) and report early/late/on-time.
- Updated ContentView to create an AmtrakDateFormatting instance and use the new API. Remove the Train.serviceDate extension.
2026-08-23 20:32:33 -04:00
69fc10c6f2 Renamed Refresh button to Submit 2026-08-23 20:02:10 -04:00
bf67475107 Cleaned up and removed columns so it is what an actual Solari board would show
- This update adds ISO date/time helpers for Amtrak timestamps, refactors the train table to show arrival time, status, and track details, and tracks the current station context in the UI.
- It also hardens station status decoding with a safe fallback to Unknown and simplifies the row model to match the new display.
2026-08-23 19:52:27 -04:00
ebff2c9c32 Expand station and status models
Added richer station metadata and status handling to match the Amtrak API payload. This commit introduces new station fields for name, timezone, schedule/actual timings, platform, and status, along with extra train row properties for origin and arrival/departure details used by the UI.
2026-08-23 18:19:55 -04:00
6f8cca9dc9 Removed on time column for now
- Added origin and destination columns
2026-08-23 07:12:40 -04:00
f0b71b3762 Brought back the background section 2026-08-22 19:11:06 -04:00
6220887e5d Fixed a typo 2026-08-22 18:50:27 -04:00
0475e39760 Ideal width 2026-08-22 18:37:20 -04:00
789e697828 Added a few pre-selected stations
- Went with the popular Virtual Railfan ones first.
- Moved the error message to its own dedicated space so it doesn't pop up out of nowhere
- Fixed a few typos
2026-08-22 18:19:14 -04:00
b9349e2c24 Fixed a typo in the license file name 2026-08-22 17:58:24 -04:00
adeada6496 Forgot to rename route column to "Route" 2026-08-22 17:55:32 -04:00
f20d49f075 Finished wiring up loadTrainStatus()
Did a little code formatting after that cause Xcode is weird
2026-08-22 17:49:41 -04:00
3eb2018a8e Use ContentView and add station input UI
- Replace the placeholder window content with ContentView and implement a basic station lookup UI.
- Added a station code TextField, Refresh button that triggers an async load, loading indicator, and error message display. Introduces a Table for TrainStatusRow with columns for number, route, on-time and platform.
- Started plumbing for row population (work in progress).
- Also tweaked window title and fixes station comment (Ashland).
2026-08-22 17:36:14 -04:00
f81ae23bb0 Setup fail safes for loadTrainStatus() 2026-08-22 16:58:28 -04:00
df5b326e30 WIP content view 2026-08-22 16:53:27 -04:00
b920f7aa8c Wrote most of the client functions 2026-08-22 16:49:54 -04:00
af3f658d99 WIP http client
Roughly based on the Amtraker node library so this and the models will eventually be spun off as one too
2026-08-22 16:39:39 -04:00
474bca2cc2 Restarted as SwiftCrossUI app with refreshed icons 2026-08-22 16:13:30 -04:00
2cd45c4a6c Initial migration to Tauri 2.0
- Updated package.json with project metadata and moves dependencies to devDependencies.
- Adds .editorconfig for consistent code style
- Updated VSCode and .NET project settings for improved development workflow.
2026-01-07 05:18:57 -05:00
81799106f8 Switched to SLNX solution file 2026-01-07 05:07:49 -05:00
816ba45988 Reverted version schema back to 0.y.xxx
- Added platform support table
- Simplified update cycle table
- Changed identifier from com.tpaw to com.tonybark
2025-08-10 21:46:21 -04:00
f76c54e90f Removed "Required" attributes
Guess they're not required anymore. ¯\_(ツ)_/¯
2025-08-08 21:07:29 -04:00
ab02392947 Another tweak to README 2025-04-27 12:28:25 -04:00
5687e17e41
Merge pull request #4 from tonytins/dependabot/cargo/src-tauri/tauri-plugin-shell-2.2.1
Bump tauri-plugin-shell from 2.0.2 to 2.2.1 in /src-tauri
2025-04-27 11:30:43 -04:00
e79222f89c
Merge pull request #5 from tonytins/dependabot/cargo/src-tauri/crossbeam-channel-0.5.15
Bump crossbeam-channel from 0.5.13 to 0.5.15 in /src-tauri
2025-04-27 11:30:33 -04:00
91d3158fc6 Minor tweak to README for consistory 2025-04-27 10:40:45 -04:00
c85d79a4a5 Maintenance Mode
Project is Maintenance Mode due to main (and development) computer being temporarily out of order
2025-04-27 10:39:08 -04:00
dependabot[bot]
e300dc821f
Bump crossbeam-channel from 0.5.13 to 0.5.15 in /src-tauri
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.13 to 0.5.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.13...crossbeam-channel-0.5.15)

---
updated-dependencies:
- dependency-name: crossbeam-channel
  dependency-version: 0.5.15
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 14:38:19 +00:00
dependabot[bot]
e0453f6f9c
Bump tauri-plugin-shell from 2.0.2 to 2.2.1 in /src-tauri
Bumps [tauri-plugin-shell](https://github.com/tauri-apps/plugins-workspace) from 2.0.2 to 2.2.1.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](https://github.com/tauri-apps/plugins-workspace/compare/fs-v2.0.2...os-v2.2.1)

---
updated-dependencies:
- dependency-name: tauri-plugin-shell
  dependency-version: 2.2.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 22:38:34 +00:00
bc4e9e73d8 Bumped license to GPL 2024-11-13 16:27:51 -05:00
17a5599067 Upgraded to Tauri 2.0
- Added EUPL 1.2
2024-11-13 16:25:57 -05:00
Tony Bark
ebfe2d644c Preemptive setup for UI redesign
Bumped version from v104 to v201 (which was intended to be v105)
2024-09-19 07:39:32 -04:00
Tony Bark
80210156bb New launch browser component
- Now possible to click links that launch the browser from the backend
- Version scheme change to account for different methods with desktop applications
2024-09-19 00:18:24 -04:00
Tony Bark
858762d54e Minor formatteding fix in StationBtn 2024-09-17 12:16:48 -04:00
Tony Bark
bd98119710 No more code in Home.razor
- All functionality has been modularized to their new respective components (I love Blazor)
- Minor versions are now in the triple digits, patches are in the double digits
2024-09-17 12:15:55 -04:00
Tony Bark
d092853bf7 Station button functionality has now moved to a singular component
Now that each button is based on one component that contains the necessary functionality, instead of the previous mess, there is a slight performance increase
2024-09-16 14:01:58 -04:00
Tony Bark
3ed751de7c Version printed on the front-end using Gitinfo
- Version printed on the front-end using Gitinfo. It is possible to get the native one from Tauri itself, but I haven't got that working yet.
- Added macOS and Android-style icons.
2024-09-12 21:26:21 -04:00
Tony Bark
761a822e27 New buttons for major terminals and rail cams 2024-09-10 01:23:51 -04:00
Tony Bark
42dcd70434 Icon refresh 2024-09-10 00:05:12 -04:00
Tony Bark
09746c2315 Minimum width and height for small(ish) screens
- Maximum height and width now matches the web app's
- Finally, renamed the "greet" functions to "station"
2024-09-09 22:23:41 -04:00
Tony Bark
c24378ffad Fixed and clarified some things in the background section 2024-09-09 21:13:26 -04:00
Tony Bark
f3aa4050c9 Asset license 2024-09-09 20:00:36 -04:00
Tony Bark
591984c692 New banner to reflect updated icon
- Banner is also used in the app now
2024-09-09 19:58:03 -04:00
Tony Bark
f21e9f658d Removed stat component
- Slight redesign and clean up
2024-09-09 05:42:36 -04:00
Tony Bark
ab6a929add Increased resolution, and added warning to README 2024-09-09 04:37:42 -04:00
Tony Bark
f32328184e Refreshed icons. 2024-09-09 04:10:09 -04:00
Tony Bark
6fa21d13a3 Ignore /dist
- Added background for why the app was created
2024-09-09 03:46:19 -04:00
Tony Bark
210499ef8a Initial commit 2024-09-09 03:12:35 -04:00