Commit graph

44 commits

Author SHA1 Message Date
Daniel Friesel
adaf9f7c0c landingpage: API also supports checkin 2020-02-26 20:38:01 +01:00
Daniel Friesel
bd8a825138 Add aria labels where needed, commit 1 of many (#37) 2020-01-28 20:26:15 +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
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
7fe95532c1 Use JSON for messages and route storage, prepare for extended route data 2019-05-26 17:28:21 +02:00
Daniel Friesel
c3071d54eb Merge branch 'marudor-darkMode' 2019-05-18 08:31:13 +02:00
Daniel Friesel
3668c69d1f correctly show departure station in cancelled view 2019-05-16 20:51:31 +02:00
marudor
5c2388d3a2
Add dark mode (only available with prefers-color-scheme currently) 2019-05-16 15:04:08 +02:00
Daniel Friesel
42eafec28d update landingpage 2019-05-11 15:45:16 +02:00
marudor
d2f01f963a
Do not nag directly for geolocation 2019-05-11 12:43:13 +02:00
Daniel Friesel
be1e5dda23 Public API documentation 2019-05-02 11:29:43 +02:00
Daniel Friesel
ddea9abc6e show imprint/privacy/version on all public-facing pages 2019-04-30 18:24:30 +02:00
Daniel Friesel
2d7c75f877 show imprint and version on landing page 2019-04-30 18:18:09 +02:00
Daniel Friesel
e07063c52c Add manual journey entry
Closes #3
2019-04-26 19:53:01 +02:00
Daniel Friesel
b992a6dc75 $render(status => ...) is a special variable. derp. 2019-04-24 09:00:30 +02:00
Daniel Friesel
6c1cae86f4 Primitive auto-refresh of current journey status
Todo: Redirect user to destination station upon arrival
2019-04-23 22:27:13 +02:00
Daniel Friesel
ffaa0c44a7 Automatic checkout \o/ 2019-04-23 21:30:31 +02:00
Daniel Friesel
5af134ef1e landingpage: Fix plural for "0 minutes" 2019-04-23 20:00:03 +02:00
Daniel Friesel
e168d9cd39 Use one row per journey instead of split checkin/checkout entries
Whether a user is in transit or not is now determined by an entry in the
in_transit table instead of a dangling checkin.

All completed journeys are stored in the "journeys" table.

This does most of the work needed for automatic checkout. However, note that
the corresponding worker process is not implemented yet.
2019-04-23 18:08:07 +02:00
Daniel Friesel
863a33b111 landingpage: Fix typo in required form element tag 2019-04-11 20:42:38 +02:00
Daniel Friesel
ffee7177ac Refactor history template, add yearly stats 2019-04-07 18:44:33 +02:00
Daniel Friesel
a1109bfce0 landingpage: Features++ 2019-04-06 21:32:18 +02:00
Daniel Friesel
3ce1cfc55f Select journeys by ID 2019-03-31 19:32:41 +02:00
Daniel Friesel
a8a3aa17ce Perform undo by deleting the erroneous database entry 2019-03-31 08:45:51 +02:00
Daniel Friesel
01df965d66 support logging of cancelled journeys 2019-03-19 18:20:05 +01:00
Daniel Friesel
11d77d4bb9 add journey detail view 2019-03-17 18:34:33 +01:00
Daniel Friesel
629ca9e9f6 Show backend errors on station selection page 2019-03-16 21:49:47 +01:00
Daniel Friesel
42bb5cc493 add autocomplete for station form 2019-03-16 21:37:57 +01:00
Daniel Friesel
c8f9fc901b allow manual input of station name
Closes #1
2019-03-16 21:33:19 +01:00
Daniel Friesel
26da2b598c landing page: I can haz API! 2019-03-16 14:36:35 +01:00
Daniel Friesel
6f1b488d26 Slightly more helpful texts for checkin/checkout pages 2019-03-09 12:17:59 +01:00
Daniel Friesel
a0040bceb6 checkout UX 2019-03-08 19:12:45 +01:00
Daniel Friesel
6f4a5cef71 add intro blurb and login/register links for landing page 2019-03-08 17:16:19 +01:00
Daniel Friesel
fd60839116 switch from HTTP Auth to Cookie Auth 2019-03-07 18:36:11 +01:00
Daniel Friesel
f87306dc34 allow undo for checkins 2018-11-02 21:35:53 +01:00
Daniel Friesel
f791a1ee6c handle force checkout in history view 2018-10-21 16:05:18 +02:00
Daniel Friesel
147e6ae849 Only show latest travels on landing page 2018-10-07 13:47:32 +02:00
Daniel Friesel
6fd985ae7e show close stations via geolocation 2018-10-07 11:35:47 +02:00
Daniel Friesel
d95cb9d06a only show travel distance if duration is not available 2018-10-07 09:12:45 +02:00
Daniel Friesel
7694e626a5 show journey distances as well 2018-10-05 20:41:28 +02:00
Daniel Friesel
d75351b30c Use POST requests to modify data 2018-10-05 16:33:59 +02:00
Daniel Friesel
b12b201c4d use table layout for checkout station list 2018-09-14 20:14:28 +02:00
Daniel Friesel
21643b053d Initial commit 2018-09-02 21:41:33 +02:00