Commit Graph

49 Commits

Author SHA1 Message Date
1ca9922b1b Do not show speed badge when manually picking a location 2018-10-18 20:05:48 +02:00
06c02f6ece No need for global catchall when fetching reports 2018-10-16 15:15:11 +02:00
4ff645cc43 Filter reports returned by the API based on map center
Only keep reports which are around the map center in the data returned
by the server. Filtering is done client-side for privacy reasons.
2018-10-15 09:11:41 +02:00
19cbb3165f Better spawn of the notification 2018-09-21 15:11:31 +02:00
dca0f62394 Add a setting to allow permanent notification or not. 2018-09-21 15:11:31 +02:00
04ac3538a4 Basic implementation of notification 2018-09-21 15:11:31 +02:00
34a1a93a53 Show speed to user, fix for #37. 2018-09-11 14:54:30 +02:00
5d84c6a0e6 Fix a bug when position cannot be fetched 2018-08-26 17:48:07 +02:00
6f8b3ada2c Autorotate mode when clicking the compass icon
Also fix a bug with sharing current position.
2018-08-26 17:48:07 +02:00
d24c326b01 Fix a bug in automatic refetch of reports after a given distance 2018-08-26 17:48:07 +02:00
60f041f5a6 Move map from Leaflet to OpenLayers
Also add a way to use a mock GPX trace as geolocation provider.
2018-08-26 17:48:03 +02:00
316527b575 Fix a bug with sharing map view 2018-08-25 16:09:38 +02:00
7a7cd21376 Add a way to playback GPX tracks as mock locations 2018-08-23 15:03:47 +02:00
d9ec9219f9 Restore accuracy 2018-08-15 12:38:03 +02:00
77433bcab5 Vibrate at opening of the Map rather than upon leaving Onboarding, ensure the notification should be displayed and seen by user 2018-08-13 20:18:14 +02:00
6a70deec70 Upgrade to Webpack 4 + improve the build system 2018-08-06 23:29:17 +02:00
7ccf427685 Upgrade dependencies and group all polyfills in a dedicated file 2018-08-05 15:47:28 +02:00
05cb92d8e3 Store complete GPX data
Rework the store to keep track of everything useful for building a full
GPX trace.
2018-08-03 17:15:03 +02:00
bb926abbc4 Fix broken chained catch in Promises 2018-08-02 10:49:47 +02:00
c19bd60174 Better management of permissions
* Finish the ability to use custom tile server.
* Store settings whenever they are changed.
* Support new settings for audio/vibrate permission.
2018-07-30 20:23:56 +02:00
74a42abe72 Add a way to share a specific map position
Also rework the way Map component is handled to make it cleaner and more
efficient.

Fix for issue #23.
2018-07-26 08:47:31 +02:00
169076dffa Better error messages on geolocation fetching errors 2018-07-17 23:27:07 +02:00
b792f2ec44 Complete translation of manual location picker + better guard for Map when user has not previously clicked on a button 2018-07-17 23:19:28 +02:00
edadbd6393 Let user pick a location manually, fix for #3. 2018-07-17 22:49:00 +02:00
959cdba36c Force user to click at least once on a button before showing the map, otherwise NoSleep might not work 2018-07-17 16:37:46 +02:00
8921833619 Use store to get nosleep setting in map view 2018-07-17 16:22:18 +02:00
e9b4f41b1e Add an onboarding screen to get users started
Fix for #17.
2018-07-17 15:10:51 +02:00
da4a8d537d Mark the position of the new marker + optimize SVG files
1. Show location of the created report on the map, see
https://framagit.org/phyks/cyclassist/issues/10.
2. Use `image-webpack-loader` to minify image and SVG files at build
time.
2018-07-13 16:50:34 +02:00
57552197a9 Show details for the nearest report 2018-07-13 15:04:51 +02:00
e9b4593abf Fix OpenGraph icon, OG does not support SVG 2018-07-11 16:54:02 +02:00
27631855af Proper aria labels for buttons 2018-07-11 01:14:54 +02:00
1f9c0bd623 Heading is provided by browser in degrees but consumed by Leaflet in radians 2018-07-09 18:37:55 +02:00
ae9f3892c7 Display a polyline with the previous positions 2018-07-09 15:25:18 +02:00
6c5d62ad69 Better handling of the case when heading is zero 2018-07-09 11:56:15 +02:00
9d4842b44c Clicking on a report now shows more infos and let users dismiss it
You should update your database by running
```
ALTER TABLE report ADD COLUMN (upvotes INTEGER NOT NULL, downvotes INTEGER NOT NULL)
```

Fix issue #8.
2018-07-06 15:39:35 +02:00
4cd2d49db9 Let user disable sleep prevention 2018-07-03 19:01:56 +02:00
37413a7e21 Some fixes for nosleep and moving the map around 2018-07-03 18:48:41 +02:00
df187ad8ca Use a regular click on map to add reports in specific location 2018-07-02 18:39:35 +02:00
1b3082d02a Fix centering of the map, fix #5 2018-07-02 18:39:13 +02:00
c15ad9ab56 Let users move the view around
* Let user move the view around, without automatic refocusing.
* Add a button to refocus view.
2018-07-01 22:02:54 +02:00
f499538717 Reset error value when clicking the retry button to fetch location 2018-06-29 15:09:39 +02:00
4493dc35fe Only start NoSleep after the first user interaction 2018-06-28 15:08:56 +02:00
a4564ad053 Add the ability to add a report anywhere through long press + preferences section to set the locale 2018-06-28 14:40:56 +02:00
e65be07fc1 Better icons for reports and matching markers 2018-06-27 14:59:45 +02:00
989db3b787 Few UI improvements
* Better info message when fetching geolocation
* No longer displaying a marker with heading if heading is unknown. Use
a circle marker instead.
* Display the accuracy area
2018-06-27 11:19:07 +02:00
f30d000f92 Show the reports as soon as they are added in the db 2018-06-26 11:39:43 +02:00
e961a8dbb1 Display reports on the map 2018-06-26 11:04:23 +02:00
dd4075b18c Use NoSleep to prevent sleep of the phone 2018-06-25 23:57:33 +02:00
2d27e72b33 Initial commit 2018-06-25 18:29:57 +02:00