Commit graph

708 commits

Author SHA1 Message Date
Eugene Burmakin
f3e4ff1a7e Add deprecation notice for the status column. 2025-04-04 21:15:33 +02:00
Eugene Burmakin
6839ecdbda Update specs for new user active_until column 2025-04-04 21:12:42 +02:00
Eugene Burmakin
4fcfdc7bd7 Update timestamps 2025-04-04 20:15:05 +02:00
Eugene Burmakin
99bb982792 Merge from dev 2025-04-04 20:14:44 +02:00
Eugene Burmakin
f25f7db70f Remove condition on purging file 2025-04-03 18:43:30 +02:00
Eugene Burmakin
73edb35bb1 Implement Records.json import via the UI 2025-04-03 18:41:05 +02:00
Eugene Burmakin
2f9cacba61 Rename format column to file_format in exports table 2025-04-02 21:19:02 +02:00
Evgenii Burmakin
07ad244e99
Merge branch 'dev' into feature/bucket-import-export 2025-04-02 21:00:20 +02:00
Eugene Burmakin
652a51281b Add an optional task to migrate existing imports to the new storage. 2025-04-02 20:58:35 +02:00
Eugene Burmakin
41380ddf7c Move some beds 2025-03-24 20:58:43 +01:00
Eugene Burmakin
fc8d0d8ddc Fix failing tests and move testing imports to files 2025-03-24 20:46:16 +01:00
Eugene Burmakin
5335c912c3 Update the rake task to also reindex the points table. 2025-03-24 18:56:58 +01:00
Eugene Burmakin
24a148b181 Fix moving points on the map 2025-03-24 00:01:18 +01:00
Eugene Burmakin
1e54d87d53 Implement support for storing import files in S3. 2025-03-23 22:00:41 +01:00
Eugene Burmakin
477ef709c3 Update changelog 2025-03-23 21:06:23 +01:00
Eugene Burmakin
b66e18818b Fix rest of the tests and re-enable visit suggesting 2025-03-23 21:00:31 +01:00
Eugene Burmakin
5758f9a923 Use attached file to import geojson and phone takeout 2025-03-23 19:13:59 +01:00
Eugene Burmakin
f3b98ac83d Use attached import file to import own tracks data 2025-03-23 19:00:04 +01:00
Eugene Burmakin
a93b49ee80 Use Active Storage to import GPX files 2025-03-23 18:37:10 +01:00
Eugene Burmakin
dbd9b7f31f Add rake tasks for data cleanup and user activation 2025-03-21 18:09:58 +01:00
Eugene Burmakin
342cb23b58 Merge remote-tracking branch 'origin' into feature/subscription 2025-03-18 16:50:26 +01:00
Eugene Burmakin
52e0bc572c Fix point coordinates on the points page 2025-03-16 20:46:50 +01:00
Eugene Burmakin
29da64400b Update changelog and fix visits pane z-index 2025-03-16 13:36:06 +01:00
Eugene Burmakin
28b9e9d61d Add a button to cancel visit selection 2025-03-12 21:57:30 +01:00
Eugene Burmakin
4a6c5bf97c Create sample import after user is created 2025-03-12 20:26:53 +01:00
Eugene Burmakin
b8e6b1a372 Enable visit suggesting job 2025-03-09 20:07:39 +01:00
Eugene Burmakin
9a4a6481d0 Use short month names in visits list 2025-03-09 17:41:45 +01:00
Eugene Burmakin
c86921a29b Update tests and refactor some code 2025-03-09 16:29:16 +01:00
Eugene Burmakin
5ee3d43b10 Fix some more tests and rework visit_suggesting_job a bit 2025-03-09 15:37:32 +01:00
Eugene Burmakin
4a859fb350 Add bunch of tests and refactor some stuff 2025-03-09 14:58:30 +01:00
Eugene Burmakin
ad32abb43c Update changelog 2025-03-08 21:29:07 +01:00
Eugene Burmakin
761aaa3cb8 Highlight visits on map when clicked on 2025-03-08 21:04:56 +01:00
Eugene Burmakin
16333c58e0 Show number of visits in drawer on selection 2025-03-08 20:53:13 +01:00
Eugene Burmakin
c39c26a430 Show points with dates in selected area 2025-03-08 20:31:12 +01:00
Eugene Burmakin
43c7e64efb Add osm_id, osm_key, osm_value, osm_type to places 2025-03-08 19:40:28 +01:00
Eugene Burmakin
d78482f1bf Get 20 places results and dont round coordinates 2025-03-08 19:08:47 +01:00
Eugene Burmakin
52fd54e39f Implement area selecting to show visits 2025-03-07 23:32:56 +01:00
Eugene Burmakin
adf923542d Move visits to different panes 2025-03-06 00:13:47 +01:00
Eugene Burmakin
1ce66a1494 Prevent places duplicates 2025-03-05 22:36:56 +01:00
Eugene Burmakin
6b356d24b1 Implement visits merging 2025-03-05 20:04:26 +01:00
Eugene Burmakin
c00bd2e387 Extract visits code from maps controller 2025-03-04 21:50:46 +01:00
Eugene Burmakin
bc91004713 Fix smart detect spec 2025-03-04 21:16:45 +01:00
Eugene Burmakin
9d68458622 Fix some more tests 2025-03-03 23:54:39 +01:00
Eugene Burmakin
70d754b397 Fix some tests 2025-03-03 22:39:43 +01:00
Eugene Burmakin
ebde7d32fb Use tighter place search for suggested places 2025-03-03 21:45:09 +01:00
Eugene Burmakin
d769861e69 Use postgis to find existing places 2025-03-03 21:34:06 +01:00
Eugene Burmakin
c2f6224421 Add lonlat to places 2025-03-03 20:50:49 +01:00
Eugene Burmakin
5521d8e6b2 Make drawer button bigger and add styles 2025-03-03 20:38:36 +01:00
Eugene Burmakin
414c9e831c Add possible places to visits 2025-03-03 20:11:21 +01:00
Eugene Burmakin
a4123791aa Add visits to the map page 2025-03-02 21:24:57 +01:00
Eugene Burmakin
3ebf492b14 Accept subscription updates from Dawarich Manager 2025-02-27 22:32:03 +01:00
Eugene Burmakin
e368df4e10 Add JWT authentication to the Manager app 2025-02-26 22:08:12 +01:00
Eugene Burmakin
95717db1bf Add simple button to manage subscription 2025-02-26 21:06:43 +01:00
Eugene Burmakin
080da9f2de Update tests 2025-02-25 00:16:42 +01:00
Eugene Burmakin
85049b398b Fix user status 2025-02-25 00:04:05 +01:00
Eugene Burmakin
173af225d7 Merge remote-tracking branch 'origin/dev' into feature/user-features-access 2025-02-24 21:40:36 +01:00
Eugene Burmakin
85b7a9edf8 Update changelog 2025-02-23 23:34:49 +01:00
Eugene Burmakin
56046a6965 Broadcast import progress after GPX import 2025-02-23 23:12:12 +01:00
Eugene Burmakin
217d6249e2 Use lonlat in maps controller 2025-02-23 22:59:14 +01:00
Eugene Burmakin
383b88ab04 Speed up some importing processes 2025-02-22 23:14:23 +01:00
Eugene Burmakin
7c766a4d92 Fix the rest of the tests 2025-02-22 22:37:21 +01:00
Eugene Burmakin
fc01cda5c6 Fix whole bunch of specs 2025-02-22 00:32:30 +01:00
Eugene Burmakin
4fa3c35fb8 Calculate distance using PostGIS ST_Distance with LAG 2025-02-22 00:02:13 +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
6fac14675b Restrict to some functionality access for inactive users 2025-02-19 21:23:11 +01:00
Eugene Burmakin
699e498670 Recalculate stats upon import deletion 2025-02-15 18:49:30 +01:00
Eugene Burmakin
053bfc525c Fix point deletion 2025-02-15 18:32:44 +01:00
Eugene Burmakin
fb5086e97e Simplify maps loading 2025-02-15 18:16:48 +01:00
Eugene Burmakin
62f4ec4910 Update flash message styles 2025-02-15 17:58:33 +01:00
Eugene Burmakin
38573e703e Move base maps to a separate file 2025-02-15 17:42:10 +01:00
Eugene Burmakin
aaa3c77162 Inherit all stimulus controllers from base_controller 2025-02-15 16:48:03 +01:00
Eugene Burmakin
9e34d30383 Restrict user settings to self-hosted mode 2025-02-15 11:45:53 +01:00
Eugene Burmakin
74cfc9020e Restrict background jobs to self-hosted mode 2025-02-15 11:40:51 +01:00
Eugene Burmakin
86fd2311f9 Fix importing Immich and Photoprism geolocation data for non-admin users 2025-02-15 11:32:52 +01:00
Eugene Burmakin
8fefcb9091 Merge remote-tracking branch 'origin/dev' into feature/self-hosted-mode 2025-02-15 11:14:50 +01:00
Eugene Burmakin
51e589e17f Implement map tiles usage tracking and chart in user settings. 2025-02-13 21:04:29 +01:00
Evgenii Burmakin
838d85c62e
Merge pull request #876 from Freika/revert-875-revert-732-patch-3
Revert 875 revert 732 patch 3
2025-02-13 20:28:36 +01:00
Evgenii Burmakin
3d01bead20
Revert "Revert "Add radius param of 10"" 2025-02-13 20:28:09 +01:00
Evgenii Burmakin
46fbb4a1b1
Revert "Add radius param of 10" 2025-02-13 20:27:51 +01:00
Evgenii Burmakin
43e54a7388
Merge pull request #732 from arne182/patch-3
Add radius param of 10
2025-02-13 20:26:40 +01:00
Evgenii Burmakin
f924bb9f82
Merge pull request #851 from chnikel/fix/Fog-of-War-overlay-gets-displaced-when-dragging-map
Fix fog gets displaced when dragging map
2025-02-13 20:25:05 +01:00
Eugene Burmakin
8997d10658 Fix speed units on the Points page 2025-02-11 21:38:41 +01:00
Eugene Burmakin
5b2834599e Update prometheus metric name 2025-02-11 21:17:33 +01:00
Eugene Burmakin
06da91df27 Fix live map enabled default value 2025-02-11 21:12:35 +01:00
Eugene Burmakin
b2e6a141fc Rehash paths and add tests 2025-02-11 21:04:12 +01:00
Eugene Burmakin
1580fb8ade Export map tiles usage to Prometheus 2025-02-11 20:45:36 +01:00
Christian Nikel
01fd9f6e35 Fix fog gets displaced when dragging map
Also recalculates the size of the fog when resizing the browser window.

Closes #774
2025-02-11 00:12:01 +00:00
Eugene Burmakin
d2d6f95322 Fix accessing nested settings 2025-02-10 20:48:16 +01:00
Eugene Burmakin
0b362168c9 Implement custom map tiles and user settings with default values 2025-02-10 20:37:20 +01:00
Eugene Burmakin
b8c69c2a76 Fix importing of GPX files with empty tracks and reduce number of points created for other GPX files. 2025-02-08 23:52:37 +01:00
Eugene Burmakin
1f6d711ccf Don't log apiKey in handleAreaCreated 2025-02-08 23:01:32 +01:00
Eugene Burmakin
0b08af87af Clean up some code 2025-02-08 23:00:34 +01:00
Evgenii Burmakin
d101d5e544
Merge branch 'master' into dev 2025-02-08 22:53:58 +01:00
Eugene Burmakin
3a555065d3 Make popups a bit nicer 2025-02-08 12:08:01 +01:00
Eugene Burmakin
51724db874 Remove test circle 2025-02-07 21:19:34 +01:00
Eugene Burmakin
ffee59b7c3 Fix deleting an area 2025-02-07 21:17:38 +01:00
Eugene Burmakin
dd48ef4177 Implement area clicks 2025-02-07 21:08:31 +01:00
Eugene Burmakin
fea87b85bb Add docs and few fixes 2025-02-07 19:17:28 +01:00
Eugene Burmakin
085ceb16e2 Fix export file deletion 2025-02-06 22:52:19 +01:00
Evgenii Burmakin
41da68a4c8
Revert "Fix deleting points" 2025-02-06 22:24:53 +01:00
Evgenii Burmakin
df45bb1a6c
Merge branch 'master' into fix/deleting-point-after-point 2025-02-06 20:15:30 +01:00
Eugene Burmakin
0a27dfefbe Fix deleting points 2025-02-06 20:08:14 +01:00
Eugene Burmakin
bd39b295a4 Return app version in health response 2025-02-06 19:50:03 +01:00
Eugene Burmakin
8a309a2186 Remove tracks 2025-01-29 12:18:03 +01:00
Eugene Burmakin
fd47bf7d5d Update trip path calculation 2025-01-29 11:43:02 +01:00
Arne Schwarck
908232d397
Fix reverse geocoding issue
Previously, reverse geocoding queries in the Photon lookup did not properly
limit results within a specified search radius, leading to inaccurate or
unexpected locations being returned. This fix ensures that the :radius
parameter is passed directly, just like :limit and :distance_sort, instead
of being nested under :params.
By aligning with the Photon lookup implementation in Geocoder, this change
improves accuracy and ensures that results are correctly filtered based on
proximity, resolving issues where points were incorrectly matched due to
missing radius constraints.

Resolves: Reverse geocoding mismatch for close proximity queries
2025-01-25 22:11:35 +01:00
Arne Schwarck
e5ee29617e
Add radius param of 10
https://github.com/Freika/dawarich/discussions/652
2025-01-25 21:55:25 +01:00
Eugene Burmakin
5bd6a6c072 Don't trim time from start and end dates 2025-01-24 16:37:28 +01:00
Eugene Burmakin
01275d0d2e Add some tests 2025-01-24 15:58:44 +01:00
Eugene Burmakin
6e9c981329 Fix photos fetching with trip dates 2025-01-24 15:35:35 +01:00
Eugene Burmakin
9c102c1de8 Fix rendering polyline on trip editing page 2025-01-24 15:22:46 +01:00
Eugene Burmakin
401ac8ca31 Use path instead of coordinates on trips#index 2025-01-24 15:19:05 +01:00
Eugene Burmakin
380dd9235d Calculate path and distance before saving trip 2025-01-24 15:03:57 +01:00
Eugene Burmakin
1e7efbc9af Render trips using precalculated paths instead of list of coordinates 2025-01-24 14:54:10 +01:00
Eugene Burmakin
7db7fb17d5 Add path to trips 2025-01-24 12:01:54 +01:00
Eugene Burmakin
774de9991b Add tracks model 2025-01-23 16:03:21 +01:00
Eugene Burmakin
be779fe333 Merge remote-tracking branch 'origin/dev' into chore/database-user-constraints 2025-01-22 15:03:55 +01:00
Eugene Burmakin
f60c93ee4f Fix a bug where rc version was being checked as a stable release 2025-01-22 12:17:26 +01:00
Evgenii Burmakin
988e5a1a63
Merge branch 'dev' into fix/imports/gpx-empty-tracks 2025-01-22 12:04:19 +01:00
Eugene Burmakin
157d916f6b Fix a bug where a gpx file with empty tracks was not being imported 2025-01-22 11:15:55 +01:00
Eugene Burmakin
c3243bdba0 Fix authentication to GET /api/v1/countries/visited_cities 2025-01-22 10:53:33 +01:00
Eugene Burmakin
591543fe98 Rename GoogleMaps::RecordsParser to GoogleMaps::RecordsImporter 2025-01-21 19:42:04 +01:00
Eugene Burmakin
510868a594 Fix failed specs 2025-01-21 19:32:12 +01:00
Eugene Burmakin
b43810b1fb Import Google Records JSON in batches 2025-01-21 19:14:36 +01:00
Eugene Burmakin
0ff47f3ac7 Fix Google Records import 2025-01-21 16:03:52 +01:00
Eugene Burmakin
049812823f Stream google records import 2025-01-21 10:07:54 +01:00
Eugene Burmakin
a311325c82 Fix failed tests 2025-01-20 20:41:26 +01:00
Evgenii Burmakin
620579d162
Merge branch 'master' into feature/api/points 2025-01-20 20:35:08 +01:00
Eugene Burmakin
983768a572 Assign user_id to points on parsing 2025-01-20 20:07:46 +01:00
Eugene Burmakin
6644fc9a13 Introduce uniqueness index and validation for points 2025-01-20 17:59:13 +01:00
Eugene Burmakin
6c0a954e8e Implement dawarich points parsing 2025-01-20 16:37:15 +01:00
Eugene Burmakin
41bb2e07fb Add user endpoint 2025-01-20 15:17:56 +01:00
Eugene Burmakin
9970d63134 Return scale and stats controls to map 2025-01-20 11:46:57 +01:00
Eugene Burmakin
0e5381c16f Fix fog of war console error 2025-01-20 11:41:45 +01:00
Eugene Burmakin
a50e9f664a Highlight route on click 2025-01-20 11:26:52 +01:00
Eugene Burmakin
70caaef9b5 Remove console logs 2025-01-19 18:06:56 +01:00
Eugene Burmakin
3ba42dceaf Highlight on hover 2025-01-19 18:05:21 +01:00
Eugene Burmakin
64b141fa24 Highlight routes again 2025-01-19 17:49:11 +01:00
Eugene Burmakin
94e08d56e1 Fix point updating in the database 2025-01-19 17:14:09 +01:00
Eugene Burmakin
f85fd9e4d0 Implement polylines redraw on point drag 2025-01-19 12:59:12 +01:00
Eugene Burmakin
5a031dad69 Implement drag and drop for points 2025-01-19 11:26:38 +01:00
Eugene Burmakin
11677b14ae Introduce self-hosted mode 2025-01-15 21:52:59 +01:00
Eugene Burmakin
33401712e2 Allow api_key to be passed in to the visited cities endpoint 2025-01-14 23:33:07 +01:00
Eugene Burmakin
e25d6f05e2 Extract fog of war to a separate file 2025-01-14 23:29:48 +01:00
Eugene Burmakin
e457631715 Use canvas for map 2025-01-14 23:23:46 +01:00
Eugene Burmakin
4fc8992f73 Rename Polylines to Routes in the interface 2025-01-13 22:05:25 +01:00
Eugene Burmakin
cebc4950e6 Add info modal for speed colored polylines 2025-01-13 21:57:19 +01:00
Eugene Burmakin
cd7cf8c4bb Return distance and points number in the custom control to the map 2025-01-13 21:30:08 +01:00
Eugene Burmakin
1c9667d218 Optimize polylines color update 2025-01-13 21:21:04 +01:00
Eugene Burmakin
7a83afd857 Speed up polylines coloring 2025-01-13 21:10:49 +01:00