Commit Graph

183 Commits

Author SHA1 Message Date
Lucas Verney dca0f62394 Add a setting to allow permanent notification or not. 2018-09-21 15:11:31 +02:00
Lucas Verney 04ac3538a4 Basic implementation of notification 2018-09-21 15:11:31 +02:00
Lucas Verney 085f34dbe8 Fix speed unit 2018-09-17 11:53:03 +02:00
Lucas Verney 0c27768e91 Translate the rotate button tooltip 2018-09-14 15:27:03 +02:00
Lucas Verney 9b5487499a Various Map fixes
* Correctly set the position marker style at initialization.
* Fix for the position marker not rotating with the view.
* Fix for the recenter button not showing up on zooming.
2018-09-13 16:34:52 +02:00
Lucas Verney 03a0e84f58 Fix marker anchors 2018-09-13 16:04:01 +02:00
Lucas Verney b168fe2b9e Fix a bug with manual address selection 2018-09-13 15:52:39 +02:00
Lucas Verney a7792f5dbb Rework upvotes
Upvotes now reset the `datetime` field of the report, making it appear
as if it was newly reported. They also extend the lifetime for accidents
and GCUM.

This introduces database migrations as well.

Closes https://framagit.org/phyks/cyclassist/issues/41.
2018-09-12 13:51:53 +02:00
Lucas Verney 34a1a93a53 Show speed to user, fix for #37. 2018-09-11 14:54:30 +02:00
Lucas Verney 42779844a7 Prevent dismissed report details from immediately reopening 2018-09-04 15:49:02 +02:00
Lucas Verney aaa8998466 Use plain Audio API, drop Howler dependency 2018-09-04 15:27:50 +02:00
Lucas Verney f5fdb2aeb0 Drop xmlbuilder from gps-to-gpx dep 2018-09-04 14:38:32 +02:00
Lucas Verney 012c6fd1be Bump version 2018-08-29 18:59:22 +02:00
Lucas Verney 168f1b122c Fix a bug with mock GPX traces and delay
`Date.parse` returns milliseconds timestamp, not a `Date` object.
2018-08-29 18:57:55 +02:00
Lucas Verney f0fc8f287d Drop Moment.JS, use custom small lib for relative dates and formatting 2018-08-29 12:08:18 +02:00
Lucas Verney 2ccc4110d6 Restore the correct spaces before double punctuation 2018-08-28 20:48:50 +02:00
Lucas Verney 61828e9ef2 Bump dependencies, use Babel 7 useBuiltIns usage to reduce size of chunks 2018-08-28 17:49:54 +02:00
Lucas Verney 948962987c Move GPX export function and matching node_modules to the same chunk as the map 2018-08-28 16:50:57 +02:00
Lucas Verney 718791e95f Use a loader when lazy loading Map view, to ensure a direct feedback is given to the user 2018-08-28 16:31:03 +02:00
Lucas Verney b06ba60816 Use singleclick event listener on map, fix #35 2018-08-28 14:49:21 +02:00
Lucas Verney 11aa82b310 Fix a bug with upvote / downvote icons sometimes overflowing. Close #28 2018-08-26 20:34:04 +02:00
Lucas Verney 59f7f153ea Fix map sometimes too high 2018-08-26 20:31:00 +02:00
Lucas Verney 5d84c6a0e6 Fix a bug when position cannot be fetched 2018-08-26 17:48:07 +02:00
Lucas Verney 9fc2128679 Don't mock location 2018-08-26 17:48:07 +02:00
Lucas Verney b8ae8e9fa3 Add a way to report a bug, close #34 2018-08-26 17:48:07 +02:00
Lucas Verney 6f8b3ada2c Autorotate mode when clicking the compass icon
Also fix a bug with sharing current position.
2018-08-26 17:48:07 +02:00
Lucas Verney 4c527ac280 Invert logic to set isProgrammaticMove on user actions instead, making it more reliable 2018-08-26 17:48:07 +02:00
Lucas Verney ec9380ca2f Fix map resizing 2018-08-26 17:48:07 +02:00
Lucas Verney d24c326b01 Fix a bug in automatic refetch of reports after a given distance 2018-08-26 17:48:07 +02:00
Lucas Verney 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
Lucas Verney 316527b575 Fix a bug with sharing map view 2018-08-25 16:09:38 +02:00
Lucas Verney 7a7cd21376 Add a way to playback GPX tracks as mock locations 2018-08-23 15:03:47 +02:00
Lucas Verney acaed37f3b Fix a bug with GPX export 2018-08-20 13:57:14 +02:00
Lucas Verney 017bf34ca5 Fix a bug with markers 2018-08-20 12:03:55 +02:00
Lucas Verney 490725cb7f Update oc translation 2018-08-17 20:00:36 +02:00
Lucas Verney f5517b292d Fix a missing translation in Onboarding 2018-08-16 11:41:20 +02:00
Lucas Verney d9ec9219f9 Restore accuracy 2018-08-15 12:38:03 +02:00
Lucas Verney 2ca1cc56ed Undo mock_location commit 2018-08-14 15:33:41 +02:00
Lucas Verney 060c4a29f4 Fix a bug with Vue2LeafletTrackSymbol not updating heading 2018-08-13 22:07:34 +02:00
Lucas Verney 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
Lucas Verney 0b086c2fce Bump deps 2018-08-13 19:56:43 +02:00
Lucas Verney d0b2946352 Bump oc translation 2018-08-09 23:46:44 +02:00
Lucas Verney 072eec69c8 Update NPM deps and export GPX with more details 2018-08-09 23:46:01 +02:00
Lucas Verney 2cce5e9dba Avoid emitting empty `<ele>` items in GPX 2018-08-06 23:29:27 +02:00
Lucas Verney 6a70deec70 Upgrade to Webpack 4 + improve the build system 2018-08-06 23:29:17 +02:00
Lucas Verney 95ef4d2c4d Update translations 2018-08-05 22:12:26 +02:00
Lucas Verney 7ccf427685 Upgrade dependencies and group all polyfills in a dedicated file 2018-08-05 15:47:28 +02:00
Lucas Verney d5dcf96af8 Let user download GPX trace from menu 2018-08-03 17:15:03 +02:00
Lucas Verney 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
Lucas Verney bb926abbc4 Fix broken chained catch in Promises 2018-08-02 10:49:47 +02:00
Lucas Verney 530184a817 Scroll back to top between onboarding steps. Fix #27. 2018-08-02 10:21:30 +02:00
Lucas Verney 194c4cf3d7 Misc fixes with vibrate and sound 2018-08-01 19:29:39 +02:00
Lucas Verney 0f9544bf16 Update locales 2018-08-01 18:07:44 +02:00
Lucas Verney a6808d6d07 Fix a bug with locale setting loading from localStorage 2018-08-01 17:55:33 +02:00
Lucas Verney d2bae9e532 Add statistics about the instance under the About section. 2018-08-01 17:54:48 +02:00
Lucas Verney aca68fb2e3 Better handling of skip onboarding setting 2018-08-01 11:35:49 +02:00
Lucas Verney 54eb950a80 Update locales 2018-07-31 20:34:19 +02:00
Lucas Verney 4f64204ff0 Add beep and vibration when coming close to a known report 2018-07-31 15:46:18 +02:00
Lucas Verney 66b110e9ef Hide details when clicking upvote/downvote 2018-07-30 20:35:52 +02:00
Lucas Verney 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
Lucas Verney 0d0a5d85d6 Forgot to add VSwitch Vuetify component 2018-07-27 15:24:36 +02:00
Lucas Verney 431ccd5865 Spare 30kb in production-ready JS 2018-07-27 14:40:42 +02:00
Lucas Verney da7e582cf9 Add a way to resend unsent reports, fix for #14. 2018-07-26 13:56:51 +02:00
Lucas Verney 79b4625dc9 Fix a PropType issue 2018-07-26 13:56:51 +02:00
Lucas Verney b9315a83cd Start working on a way to resend unsent reports 2018-07-26 13:56:42 +02:00
Lucas Verney 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
Lucas Verney 3e8ec40330 Fix English translation for GCUM 2018-07-25 14:31:49 +02:00
Lucas Verney 5063d6d4da Fix a bug with Moment locale in production build 2018-07-25 11:56:04 +02:00
Lucas Verney 0bf72e55f4 Use English locale as fallback 2018-07-22 16:15:50 +02:00
Lucas Verney 4ee603a767 Use Zanata Python client and improve OC translation 2018-07-21 18:39:28 +02:00
Lucas Verney 41db1c0d12 Localize MomentJS in Occitan as well 2018-07-21 18:27:02 +02:00
Lucas Verney 5e1c3e47fc Add occitan translation + better names for locales in Settings
Huge thanks to Quentin for this translation! https://framagit.org/phyks/cyclassist/merge_requests/1
2018-07-20 15:37:14 +02:00
Lucas Verney 3da34cb148 Use Zanata to handle translations 2018-07-20 15:15:26 +02:00
Lucas Verney c5183a570f Use a token to protect POST API queries 2018-07-18 15:30:30 +02:00
Lucas Verney 3182dbb985 Improve About section 2018-07-18 14:57:04 +02:00
Lucas Verney 169076dffa Better error messages on geolocation fetching errors 2018-07-17 23:27:07 +02:00
Lucas Verney 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
Lucas Verney edadbd6393 Let user pick a location manually, fix for #3. 2018-07-17 22:49:00 +02:00
Lucas Verney a67462fab0 Explain what permissions are used for in the onboarding 2018-07-17 17:04:49 +02:00
Lucas Verney 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
Lucas Verney fbe8298814 Let user choose which tile server to use among a list of tile servers. Fix #19. 2018-07-17 16:32:34 +02:00
Lucas Verney 8921833619 Use store to get nosleep setting in map view 2018-07-17 16:22:18 +02:00
Lucas Verney e9b4f41b1e Add an onboarding screen to get users started
Fix for #17.
2018-07-17 15:10:51 +02:00
Lucas Verney 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
Lucas Verney 6ddaf1fdc0 Restore true geolocation 2018-07-13 16:25:21 +02:00
Lucas Verney 09276a06b6 Remove useless console statement 2018-07-13 16:24:05 +02:00
Lucas Verney a31dca5ab1 Better description of geolocation sharing in About section 2018-07-13 16:09:27 +02:00
Lucas Verney 57552197a9 Show details for the nearest report 2018-07-13 15:04:51 +02:00
Lucas Verney e9b4593abf Fix OpenGraph icon, OG does not support SVG 2018-07-11 16:54:02 +02:00
Lucas Verney 8bdd98a8bf Use font-display CSS property and add OpenGraph meta tags 2018-07-11 01:51:26 +02:00
Lucas Verney 27631855af Proper aria labels for buttons 2018-07-11 01:14:54 +02:00
Lucas Verney 9d6ed7e74c Better handling of expiration of GCUM and accidents report types. 2018-07-10 15:55:45 +02:00
Lucas Verney bc52d4f929 Add 2 new report types: accident + misc. Fix #15. 2018-07-10 15:19:24 +02:00
Lucas Verney 3e2e034fc8 Store settings in store, fix #12 2018-07-10 14:32:48 +02:00
Lucas Verney 1f9c0bd623 Heading is provided by browser in degrees but consumed by Leaflet in radians 2018-07-09 18:37:55 +02:00
Lucas Verney ae9f3892c7 Display a polyline with the previous positions 2018-07-09 15:25:18 +02:00
Lucas Verney 3d134d438d More infos about pressing marker in the About section 2018-07-09 14:49:39 +02:00
Lucas Verney 6c5d62ad69 Better handling of the case when heading is zero 2018-07-09 11:56:15 +02:00
Lucas Verney 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
Lucas Verney dde886d46e Fix lint 2018-07-05 09:53:21 +02:00