Commit graph

17 commits

Author SHA1 Message Date
Claude
b1cbb5555f
Refactor: Apply Rails best practices to trip sharing implementation
- Remove unused @is_public_view variable from controller
- Simplify conditionals by leveraging methods that return [] when empty
- Move public view from trips/public_show to shared/trips/show (Rails conventions)
- Refactor trips#update to be HTML-only (remove JSON responses)
- Convert sharing form to use proper Rails form helpers
- Move JS controller to shared/ subdirectory with proper namespacing
- Create RSpec shared examples for Shareable concern to eliminate duplication
- Update request specs to match HTML-only controller behavior
- Apply 'render/redirect ... and return' pattern for early returns
2025-11-07 12:05:34 +00:00
Eugene Burmakin
ab4786d7b9 Fix minor bugs in Stat model related to sharing settings 2025-10-07 21:24:38 +02:00
Eugene Burmakin
88e9c85766 Extract hexagon query to separate class 2025-09-12 21:38:25 +02:00
Eugene Burmakin
57ecda2b1b Extract stats sharing logic to its own controller 2025-09-12 21:08:45 +02:00
Eugene Burmakin
f1720b859b Store distance in meters in the database and convert to user's preferred unit on the fly. 2025-07-08 18:10:10 +02:00
Eugene Burmakin
15be46b604 Fix tests 2025-07-04 20:55:05 +02:00
Eugene Burmakin
fc01cda5c6 Fix whole bunch of specs 2025-02-22 00:32:30 +01:00
Eugene Burmakin
d9eac91834 Introduce latlon to Points and use it instead of latitude and longitude. 2025-02-21 23:45:36 +01:00
Eugene Burmakin
6644fc9a13 Introduce uniqueness index and validation for points 2025-01-20 17:59:13 +01:00
Eugene Burmakin
d9930521c9 Refactor code a bit and add some specs 2024-12-16 15:10:46 +01:00
Eugene Burmakin
3b115a85b1 Add missing tests and process reverse geocoding in batches 2024-12-06 17:32:45 +01:00
Eugene Burmakin
b76f75a494 Add instructions to api key usagea and allow user generate new api key 2024-05-25 13:57:50 +02:00
Eugene Burmakin
082cbf159d Scope points to a user 2024-05-25 13:26:56 +02:00
Eugene Burmakin
ce7b391316 Add a new release to the CHANGELOG.md file and rename env var 2024-05-05 12:03:25 +02:00
Eugene Burmakin
ad78af59ac Rework calculation of cities visited 2024-04-26 18:59:58 +02:00
Eugene Burmakin
48962e87e8 Add some unit tests 2024-04-02 23:20:25 +02:00
Eugene Burmakin
e1193608ef Add basic stats 2024-03-23 20:29:55 +01:00