Commit graph

690 commits

Author SHA1 Message Date
960b4a1fc7 Add bus journeys. 2026-02-18 09:39:51 +00:00
bc2c884589 Show flash messages on event list. 2026-02-17 11:34:40 +00:00
b835956ea9 Show bootstrap alert after login. 2026-02-17 11:30:03 +00:00
e0b9e4e719 Switch from UniAuth to OpenID Connect 2026-02-17 11:25:55 +00:00
1f026c31ca UniAuth 2026-02-17 11:10:46 +00:00
828cb40dfa Handle Year Half precision in launch date formatting
Closes: #172

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 11:55:17 +00:00
905c9c330d Redesign trip stats page with collapsible sections
Use Bootstrap cards and collapsible sections to make the long
lists of airlines, airports, and stations easier to read. Items
are now displayed as badges and hidden by default.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 09:30:58 +00:00
523dc78b35 Add overall airline, airport, and station stats to trip summary
Aggregate yearly stats into overall totals so the trip stats page
shows flight segments by airline, airports used, and stations used
in the summary section at the top.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 09:25:10 +00:00
bc5e595bb0 Add airline, airport, and station stats 2026-01-15 23:05:39 +00:00
f22772d12d Move trip new-country filtering into stats 2026-01-15 22:53:17 +00:00
ddfa77b152 Fix mypy type errors in trip helpers 2026-01-15 22:53:10 +00:00
8a0df48a73 Fix trip stats new-country counting 2026-01-15 22:43:22 +00:00
91a74fd887 Add YAML output on debug page. 2025-11-14 16:16:54 +00:00
7e2b79c672 Serve conferences in iCalendar format. 2025-11-14 15:40:05 +00:00
5eab5361b2 Serve events in ics with UTZ timestamps. 2025-11-14 15:14:17 +00:00
77ea6a8afa Generate iCalendar for Thunderbird, etc. 2025-11-14 14:40:19 +00:00
97933cfe8f Update gitignore 2025-11-14 07:53:01 +00:00
c423ec45ea Tighten map marker styling 2025-11-13 06:51:21 +00:00
6d899113ce Add map fixture. 2025-11-13 06:42:12 +00:00
178c669b01 Fix country name box wrapping. 2025-11-03 19:57:16 +00:00
7266568010 Bug fix 2025-11-03 19:39:28 +00:00
8a9126b729 Remove unused code. 2025-11-03 19:31:14 +00:00
e82ca9d9e9 The pandas module has type info. 2025-11-03 19:30:57 +00:00
83e1406ab4 Fix type error. 2025-11-03 19:30:29 +00:00
a7ec33c500 warn if hotel/accommodation coords to far apart 2025-11-03 19:29:42 +00:00
4364c95f25 Move accommodation max distance to config 2025-11-03 19:14:27 +00:00
a8652d881c Show country flags in Schengen compliance history 2025-11-03 13:05:09 +00:00
5d5ce61da4 Hide compliance status on none-Schengen trips. 2025-11-03 12:59:12 +00:00
7e3f9a9b1e Show trip stats in reverse chronological order. 2025-11-03 12:36:41 +00:00
b4126d04f8 Move two functions to agenda/trip.py 2025-11-03 12:36:13 +00:00
f718535624 Adjust code formatting. 2025-11-03 12:21:59 +00:00
4143190a8a Accommodation must be within 5km of conference 2025-10-30 17:30:27 +00:00
623e20c273 Add days until column to birthdays table 2025-10-09 20:57:46 +01:00
d4b43d70ba Add description field to Conference class. 2025-10-06 10:54:01 +01:00
c6d39ace60 Trip: fix total_distance undercount
Previously Trip.total_distance returned None if any travel leg lacked a
distance, which led to undercounted trip stats (less than flight + train
totals).

Now it accumulates only distances that are present and ignores
missing/falsy values.  The method returns a float and yields 0.0 when no
distances are available.  Docstring updated accordingly.

Fixes #185
2025-08-30 20:46:03 +01:00
4ee2492e5b Not using Claude Code any more 2025-08-30 20:36:55 +01:00
09eb44b55d Send alerts for all space launch test flights
In addition to the configured FOLLOW_LAUNCHES, also send emails for any
launch whose mission.type == "Test Flight" even if its slug is not in
FOLLOW_LAUNCHES.

Fixes #192.
2025-08-12 23:23:29 +01:00
97c0531a22 Send at most one grouped birthday reminder email
Collects birthdays in the next 7 days, groups them into sections
(Today/Tomorrow/In N days), and sends a single email.

Fixes #201.
2025-08-12 22:33:52 +01:00
ebceb4cb51 Improve space launch email, add tests. 2025-08-12 12:13:27 +01:00
808f5c1d22 Better email alerts for space launch updates
Fixes #200
2025-08-12 11:36:15 +01:00
fd7488bd04 Move format_launch_changes to agenda.thespacedevs 2025-08-12 10:59:56 +01:00
bc4d956042 Types 2025-08-01 06:21:22 +01:00
8901bc9bbb Bug fix 2025-08-01 06:21:22 +01:00
bc8391a5d5 Unicode arrows 2025-07-25 23:17:49 +01:00
88d10af3f5 New travel type: coach
Fixes #149
2025-07-25 18:16:34 +01:00
51139a1a70 Fix single day events showing as two days on calendar 2025-07-24 23:35:01 +01:00
8a9bad4bba Bug fix calendar next/prev buttons. 2025-07-24 23:28:30 +01:00
0e769c3de6 Replace fullcalendar with TOAST UI Calendar
Fixes #146
2025-07-24 23:10:23 +01:00
3dd322475f Show ferry detail on individual trip page
Closes: #154
2025-07-24 22:30:31 +01:00
672ca4b849 Generalize and enhance yearly statistics
The accommodation page has been updated to provide a more comprehensive and dynamic view of travel statistics.

Previously, the page only displayed hard-coded statistics for total nights away and abroad for the year 2024. This required manual updates each year and didn't provide historical context.

This commit introduces the following changes:

*   **Dynamically Calculate Yearly Stats:** The `accommodation_list` view in `web_view.py` now calculates statistics for every year found in the accommodation data. It correctly handles stays that span across multiple years.
*   **Display All Years:** The `accommodation.html` template now iterates through a list of all calculated yearly stats, displaying a summary for each year automatically.
*   **Add Percentage of Year:** The template also calculates and displays what percentage of the year the "total nights" and "nights abroad" represent. This includes logic to correctly account for leap years (366 days) for an accurate calculation.

These changes make the statistics more informative and ensure the page remains relevant over time without needing further manual code adjustments.
2025-07-23 22:52:22 +01:00