Commit Graph

35 Commits

Author SHA1 Message Date
368c799933 Fix report fetching and closest report emphasis 2019-01-18 08:25:48 +01:00
76f54932bf Migrate to localforage to support asyncStorage mode 2019-01-04 14:23:39 +01:00
068bcdbfc6 Frontend part of the tiles caching 2019-01-01 20:13:23 +01:00
09e5a2d4e2 Show nearest reports, handling the area of the report (not only as a
point, but polygon as well)
2018-11-29 09:31:52 +01:00
80b650c2a9 Delete reports when downvoting them 2018-10-25 11:27:54 +02:00
04ff61dbdd Don't log store mutations in prod build 2018-10-22 11:20:27 +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
dca0f62394 Add a setting to allow permanent notification or not. 2018-09-21 15:11:31 +02:00
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
42779844a7 Prevent dismissed report details from immediately reopening 2018-09-04 15:49:02 +02:00
f0fc8f287d Drop Moment.JS, use custom small lib for relative dates and formatting 2018-08-29 12:08:18 +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
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
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
194c4cf3d7 Misc fixes with vibrate and sound 2018-08-01 19:29:39 +02:00
a6808d6d07 Fix a bug with locale setting loading from localStorage 2018-08-01 17:55:33 +02:00
aca68fb2e3 Better handling of skip onboarding setting 2018-08-01 11:35:49 +02:00
66b110e9ef Hide details when clicking upvote/downvote 2018-07-30 20:35:52 +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
da7e582cf9 Add a way to resend unsent reports, fix for #14. 2018-07-26 13:56:51 +02:00
b9315a83cd Start working on a way to resend unsent reports 2018-07-26 13:56:42 +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
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
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
e9b4f41b1e Add an onboarding screen to get users started
Fix for #17.
2018-07-17 15:10:51 +02:00
57552197a9 Show details for the nearest report 2018-07-13 15:04:51 +02:00
9d6ed7e74c Better handling of expiration of GCUM and accidents report types. 2018-07-10 15:55:45 +02:00
3e2e034fc8 Store settings in store, fix #12 2018-07-10 14:32:48 +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
dde886d46e Fix lint 2018-07-05 09:53:21 +02:00
5c777138f4 Better feedback with connectivity issues when sending reports 2018-07-04 18:20:28 +02:00
f30d000f92 Show the reports as soon as they are added in the db 2018-06-26 11:39:43 +02:00