Commit graph

317 commits

Author SHA1 Message Date
Daniel Friesel
d0589781be account: use correct token type for travel API 2019-12-20 16:23:05 +01:00
Daniel Friesel
2831fbdfb7 public status card: link to marudor.de for train details 2019-12-20 14:51:50 +01:00
Daniel Friesel
837e3a949e move wagon group display to sub-template 2019-12-19 20:25:38 +01:00
Daniel Friesel
e0a2b9aa26 save all the wagon orders we can get 2019-12-19 20:16:10 +01:00
Daniel Friesel
69f961a23c disable import and checkin API endpoints in production mode 2019-12-19 19:20:06 +01:00
Daniel Friesel
ae21896982 API: Add lax option 2019-12-17 20:01:39 +01:00
Daniel Friesel
7ae60f2ea4 Travel API: comment support 2019-12-14 23:46:36 +01:00
Daniel Friesel
46fc64de48 Add travel (checkin/checkout/undo) API 2019-12-14 21:53:23 +01:00
Daniel Friesel
5fe4174feb Add API entry point for journey import 2019-12-14 20:46:02 +01:00
Daniel Friesel
1d589fa0b7 departures: show orientation bar dividing past from future 2019-12-14 08:52:44 +01:00
Daniel Friesel
fc9595e99c improve wagon output in journey details 2019-12-14 06:47:21 +01:00
Daniel Friesel
22b0e98b9c preliminary wagon view 2019-12-13 17:59:12 +01:00
Daniel Friesel
875dd4e0b5 confirm undo of checkins after 15 minutes 2019-12-08 21:04:34 +01:00
Daniel Friesel
315a94affe allow a journey's cancellation status to be edited
Closes #27
2019-12-08 19:46:45 +01:00
Daniel Friesel
561ff4574b Allow status visibility to be limited to travelynx users 2019-12-08 11:06:17 +01:00
Daniel Friesel
2bee9077ba account: typo 2019-12-08 10:32:07 +01:00
Daniel Friesel
17ce377307 release v1.11 2019-12-06 21:56:19 +01:00
Daniel Friesel
ededbef98f use comment in share text (if public) 2019-12-06 21:56:06 +01:00
Daniel Friesel
fb126c6928 optionally show journey comment in public user status
Closes #19
2019-12-06 21:44:31 +01:00
Daniel Friesel
094c536eb4 Allow comments to be entered while still in transit 2019-12-06 21:40:51 +01:00
Daniel Friesel
424897fcc3 improve cancellation mark in connections overview 2019-11-27 18:32:13 +01:00
Daniel Friesel
0e2e8cd78e history map: Add checkbox to display manually added journeys 2019-11-27 18:26:15 +01:00
Daniel Friesel
5e03718f14 public_status_card: fix uninitialized value warning 2019-11-26 18:35:51 +01:00
Daniel Friesel
4f0fee7783 show cancelled trains in connections list 2019-11-25 21:18:57 +01:00
Daniel Friesel
b3b0a055b9 improve get_user_travels performance, most notably when rendering map
only create DateTime objects when needed
2019-11-24 20:29:52 +01:00
Daniel Friesel
57f47d2a3c allow routes to be edited after recording a journey 2019-11-20 17:41:21 +01:00
Daniel Friesel
b80613b8a8 allow route input when adding journeys manually (#26) 2019-11-19 19:46:39 +01:00
Daniel Friesel
13e59b3aa1 add journey: make realtime data optional (default to schedule data)
Closes #25
2019-11-18 21:02:57 +01:00
Daniel Friesel
ff2a3afe34 Release v1.10
Release early, release often
2019-11-18 17:40:35 +01:00
Daniel Friesel
563ceb131e history_map: note that inconsistent and manually entered routes are special
See #26
2019-11-18 17:33:15 +01:00
Daniel Friesel
783a540cb0 history map: show time range; handle users with no journeys 2019-11-16 23:47:18 +01:00
Daniel Friesel
733fe2d853 map: add legend, link to history map from history page 2019-11-16 15:57:09 +01:00
Daniel Friesel
45f747961e map: add station names to points 2019-11-16 14:50:07 +01:00
Daniel Friesel
0bfb71d78d add map view of past journeys. unfinished and unreferenced. 2019-11-16 00:01:50 +01:00
Daniel Friesel
35e9dae349 include URL in copied share text if enabled 2019-11-14 18:23:21 +01:00
Daniel Friesel
3e61b9de48 Copy share text to clipboard if sharing API is unavailable
Closes #24
2019-11-14 17:47:06 +01:00
Daniel Friesel
4483073539 update asset version 2019-10-30 20:46:19 +01:00
Daniel Friesel
b05b535ae7 remove 'next stop' header to align with JS 2019-10-30 20:45:51 +01:00
Daniel Friesel
663b4dc6d8 live update of next station via javascript 2019-10-29 21:18:46 +01:00
Daniel Friesel
780cdafcf5 show related stations in departure list 2019-10-19 10:15:18 +02:00
Daniel Friesel
daa05870fd improve undo/share button layout on small screens
should fix #22
2019-10-14 15:45:10 +02:00
Daniel Friesel
6d45533c14 mark cancelled stops in checkin view 2019-10-04 23:27:45 +02:00
Daniel Friesel
3582ba317b checked in view: link to marudor.de detail view for wagon order 2019-09-20 19:39:14 +02:00
Daniel Friesel
1cb26e2053 handle substitute connections in passenger rights form 2019-09-18 20:21:16 +02:00
Daniel Friesel
8e6ee729e0 passengerrights: improve support for cancelled trains
To do: also do so in form generation
2019-09-18 18:19:54 +02:00
Daniel Friesel
aac8e2a0e1 Save scheduled arrival time for cancelled trains 2019-09-18 18:08:06 +02:00
Daniel Friesel
2075c89655 landingpage: Add passengerrights support 2019-09-16 17:20:37 +02:00
Daniel Friesel
b8f00bcf98 make 'missed connection' passengerrights message less confusing 2019-09-15 15:58:15 +02:00
Daniel Friesel
5f7933cffb pasengerrights: link to both journeys on connection miss 2019-09-14 12:32:28 +02:00
Daniel Friesel
35cc18dfae add passenger rights heuristic for missed connections 2019-09-13 23:39:28 +02:00
Daniel Friesel
29d99fe140 show arrival times in destination selection 2019-09-13 11:54:19 +02:00
Daniel Friesel
c891da97fb Explicitly set passenger rights form filename 2019-09-12 18:23:23 +02:00
Daniel Friesel
0822cfc993 add auto-generated passenger rights forms 2019-09-12 18:07:21 +02:00
Daniel Friesel
628a5c705b turn force checkout into a proper button 2019-08-25 09:00:59 +02:00
Daniel Friesel
74f2132c2e declutter Checked In-panel 2019-08-23 22:54:59 +02:00
Daniel Friesel
a40aa1936b Allow comments to be edited 2019-08-23 12:02:22 +02:00
Daniel Friesel
f6d56d3134 Add proper journey comment support 2019-08-23 10:34:02 +02:00
Daniel Friesel
d08c1ead33 update autocomplete station list 2019-08-22 13:41:31 +02:00
Daniel Friesel
c9592e3f76 show boarding countdown in departure overview 2019-08-06 20:21:57 +02:00
Daniel Friesel
0439aa8b02 use the same direction for wagon order and direction indicator 2019-08-03 15:09:15 +02:00
Daniel Friesel
a48352ada4 also show train direction on departure 2019-08-03 12:35:47 +02:00
Daniel Friesel
b12b5a821b Show departures of all linked stations
Not well-tested yet, deployment will have to wait a bit. Issue #15
2019-07-14 21:29:52 +02:00
Daniel Friesel
8e5a8fad93 indicate whether a connecting train is cancelled or not 2019-07-07 08:10:05 +02:00
Daniel Friesel
29958c1968 wagon order detail has been deployed on marudor.de 2019-06-25 20:19:45 +02:00
Daniel Friesel
7ef47cdbf9 wagon order: link to marudor.de for details 2019-06-24 21:11:02 +02:00
Daniel Friesel
36121ccffc show wagon order before departure 2019-06-24 18:02:45 +02:00
Daniel Friesel
590b27f2ca also show exit direction for regional trains at select stations 2019-06-23 18:46:25 +02:00
Daniel Friesel
b3b0823829 show exit direction on kopfgleis platforms 2019-06-22 17:02:04 +02:00
Daniel Friesel
ee24664ee9 make share button link to status page if share API is unavailable 2019-06-19 21:04:36 +02:00
Daniel Friesel
c35548e909 re-phrase auto checkout notice 2019-06-10 19:22:41 +02:00
Daniel Friesel
b54c977e08 increase checkout delay to work around IRIS information lag 2019-06-10 18:09:54 +02:00
Daniel Friesel
2d250d02bc use a distinct 'offline' icon 2019-06-05 18:49:13 +02:00
Daniel Friesel
7be3a4219e checked in: Show QoS messages before departure and HIM messages at all times 2019-06-04 21:12:36 +02:00
Daniel Friesel
ac3abd5c51 v1.7 2019-06-01 12:08:00 +02:00
Daniel Friesel
b1591eed54 show current/next stop while checked in 2019-05-31 20:18:22 +02:00
Daniel Friesel
155f9f39cc use journey-specific status links -> one twitter card per journey 2019-05-29 20:01:52 +02:00
Daniel Friesel
146b3a2682 add twitter preview tags to public user status page 2019-05-29 18:11:25 +02:00
Daniel Friesel
22eee81c1c fix email fields in dark mode 2019-05-28 22:24:44 +02:00
Daniel Friesel
7fe95532c1 Use JSON for messages and route storage, prepare for extended route data 2019-05-26 17:28:21 +02:00
Daniel Friesel
45a4089431 Handle missing platform numbers 2019-05-25 23:04:36 +02:00
Daniel Friesel
302a6a144e Remove apple-mobile-web-app-capable tag to work around Safari session issues
iOS Safari does not send session cookies when following links to PWAs using
the apple-mobile-web-app-capable tag. This is not documented on
<https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html>,
though I can't say whether it is a bug in Safari or lacking documentation.

See <https://github.com/foosel/OctoPrint/issues/1792> for a more detailed
description of this type of issue.
2019-05-25 13:21:03 +02:00
Daniel Friesel
1dc04eb45a show journey suggestions on departure board as well 2019-05-20 19:15:21 +02:00
Daniel Friesel
8a43c4073f changelog 2019-05-19 10:37:59 +02:00
Daniel Friesel
d9d3aac792 allow checkin from connections view 2019-05-19 10:32:57 +02:00
Daniel Friesel
7960114f71 Work in progress: show connections when arriving soon
At the moment, the heuristic used to determine connection targets is quite
simple: $station is a target iff there were at least two trips in the past
6 weeks with checkin at the current destination station and checkout at
$station.

Todo / enhanhement options:

* Consider current origin station as well, i.e.: $station is a target
  iff there were at least two trips in the past 6 weeks which are preceded by
  a trip from the current origin station and (same as above)
* Make connection links clickable once the current journey has ended.
  Connections need to be added to _checked_out as well for this to work.
2019-05-19 08:55:23 +02:00
Daniel Friesel
e68043b8fb Show arrival/departure platform in journey card 2019-05-18 17:10:53 +02:00
Daniel Friesel
b4676c11fb Fix progress bar colours 2019-05-18 10:16:49 +02:00
Daniel Friesel
b9f8d536b5 fix input background color in dark theme 2019-05-18 08:49:28 +02:00
Daniel Friesel
99d0339602 changelog 2019-05-18 08:32:49 +02:00
Daniel Friesel
c3071d54eb Merge branch 'marudor-darkMode' 2019-05-18 08:31:13 +02:00
Daniel Friesel
2107c0bbaf release new asset version 2019-05-18 08:30:36 +02:00
Daniel Friesel
283f5aad04 remove debug output 2019-05-18 08:29:39 +02:00
Daniel Friesel
fa98aba3d3 Pre-select theme css in backend 2019-05-18 08:23:59 +02:00
Daniel Friesel
3668c69d1f correctly show departure station in cancelled view 2019-05-16 20:51:31 +02:00
Daniel Friesel
681ecabdf6 Provide light theme by default, avoid re-styling unless dark theme is active
This eliminates a large portion of main-thread work on page load
2019-05-16 20:39:54 +02:00
Daniel Friesel
6457ef2f9d fix typo in color scheme preference query 2019-05-16 20:32:58 +02:00
marudor
84b32b28e9
Further color improvements 2019-05-16 16:10:53 +02:00
marudor
87e74ca90d
Add color switcher to toolbar 2019-05-16 15:22:47 +02:00
marudor
5c2388d3a2
Add dark mode (only available with prefers-color-scheme currently) 2019-05-16 15:04:08 +02:00
Daniel Friesel
b85db3a10d Show web-hook test result immediately after saving it
Closes #12
2019-05-14 20:05:45 +02:00