Commit graph

205 commits

Author SHA1 Message Date
Norbert Renner
1330317f1d Merge branch 'master' into 68-sl-formatting 2021-04-10 12:48:10 +02:00
Norbert Renner
393a3fa129 Cleanup and credits 2021-04-09 11:52:51 +02:00
Henrik Fehlauer
eb8a7a9d36 Allow Return key to accept dialog when loading no-go areas or track as route
After ca53080e added Return key handling to the "Delete route" dialog, only
the "Load no-go areas" and "Load track as route" dialogs were still missing
similar functionality.

The implementation is based on 2a431932.

Test Plan:
- Open "Load no-go areas" or "Load track as route" dialog.
- Press Space or Return to open file dialog, choose file,
  Tab out of file input and press Return to confirm modal.
- Notice not having to Tab to the respective confirmation button.
2021-03-30 18:00:00 +00:00
Henrik Fehlauer
ef37b65c75 Fix loading no-go areas
5b52abc1 broke importing no-go areas, in particular after choosing a file
and clicking on "Load" nothing would happen.

This is due to renaming the `<input>`'s `<id>` which is still referenced
in `NogoAreas.js` by its old name.

Undoing the rename resolves the issue.

Test Plan:
- Open "Load no-go areas" dialog.
- Click on "Browse" and select GeoJSON file (e.g. as referenced in #161).
- Click on "Load".
- The no-go areas should be added to the map.
2021-03-28 18:00:00 +00:00
Henrik Fehlauer
f31c379369 Fix broken Return key in export route dialog
2a431932 made it possible to press `Return` to confirm the export dialog.
After 5b52abc1 this stopped working though, even when the text input had focus.

This is due to moving the `<input>` out of the `<form>` and referencing the
form's `name` attribute instead. However "The value of [the form] attribute
must be the id of a <form> in the same document" according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button.

Adding such an `id` restores the `Return` key to working properly.

The same change is done for the no-go form, where the same issue would otherwise
affect a later patch adding similar `Return` key handling.

Test Plan:
- Create Route, open "Export route" dialog.
- Move focus to an input field.
- Press `Return`.
- The file dialog for saving should open.
2021-03-27 18:00:00 +00:00
Norbert Renner
990b2f5fae Bump version manually 2021-03-30 21:13:03 +02:00
Marcus Jaschen
0998e210e4 Merge remote-tracking branch 'upstream/master' into feature/route-loader-keyboard-shortcut 2021-03-25 08:00:26 +01:00
Marcus Jaschen
d1285baa69 change keyboard shortcuts; update tooltips
- "Load Track as Route" is now triggered by pressing `Shift-O`
- "Load No-Go-Areas" is now triggered by pressing `Shift-N`
- tooltip for navbar link is updated an ready for translation
2021-03-25 07:58:51 +01:00
Gautier P
17bbef17bd Fix tooltips 2021-03-24 14:12:16 +01:00
Norbert Renner
8e328e9f0e Add credit for POIs, link to configured instance 2021-03-24 11:02:21 +01:00
Gautier P
83ac111262 Remove whatsnew icon when modal is displayed or dismissed 2021-03-23 16:29:04 +01:00
Norbert Renner
f3d4b23726
Merge pull request #384 from stesie/add-overpass-layer-re
Add (Overpass based) POI layer
2021-03-22 21:50:03 +01:00
Stefan Siegl
45b8b40ce8
Add loading indicator 2021-03-22 20:54:11 +01:00
Stefan Siegl
1b60d9af73
Use separate label/helptext instead of plain placeholders 2021-03-21 12:01:29 +01:00
Norbert Renner
265583e0c5 Format name and creator 2021-03-19 12:22:20 +01:00
Stefan Siegl
06f0be719d
allow to add custom overpass queries 2021-03-19 11:45:23 +01:00
Norbert Renner
25f8828ae7 Concatenate total track
+ handle server voicehint time removed, times with 3 digits
2021-03-12 21:20:35 +01:00
Gautier P
5b52abc14e Improve modal dialogs consistency 2021-03-10 12:17:40 +01:00
Gautier P
51ed126a12 Rename dialog 2021-03-10 11:25:57 +01:00
Gautier P
dac4a419a9 Make modals fullscreen on mobile 2021-03-09 15:03:04 +01:00
Gautier P
b0d4c281e9 Hide expand icon on moblie (#296) 2021-03-09 14:51:03 +01:00
Gautier P
e188d8f9de
Use plural form when multiple overlays are active (#378) 2021-03-01 20:13:42 +01:00
Gautier P
845a3f0378
Add message if no elevation data is available (#373) 2021-03-01 20:05:29 +01:00
Gautier P
1a695db333
Add What's new modal (#372) 2021-02-23 18:27:08 +01:00
Norbert Renner
0ee37f557a
Add Babel and core-js & regenerator polyfills (#367) 2021-02-12 10:07:02 +01:00
Norbert Renner
88f877ec34 release: 0.15.1 2021-01-25 11:39:44 +01:00
Norbert Renner
f99b851b6e release: 0.15.0 2021-01-15 23:20:07 +01:00
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries (#359) 2021-01-15 22:29:20 +01:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Norbert Renner
c49b821db7 release: 0.14.0 2020-12-04 22:09:04 +01:00
Gautier P
779c720b7d
Add 20km allowed zone icon (#347)
Co-authored-by: Gautier P <gautier_git@damsy.net>
2020-12-01 20:56:14 +01:00
Norbert Renner
7fd31a1dec release: 0.13.0 2020-08-04 17:46:01 +02:00
Tobias
2a43193295 Usability fix: Allow Return Key in export dialog 2020-08-02 11:20:26 +02:00
Norbert Renner
fe6c0d784c Keep elevation button always visible (#320)
so that user stays in control.
2020-07-16 10:28:40 +02:00
Norbert Renner
4892c2a1db Don't update TrackAnalysis when tab is hidden
- add missing show/hide methods called by sidebar and maintain active state
- rename inconsistent tab id
2020-06-30 21:35:51 +02:00
Henrik Fehlauer
09f987ea07 Combine and reuse translations for keyboard shortcuts
Using i18next's "nesting" and "interpolation" features should reduce the
overall number of strings to translate, as well as provide a
standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding
differently structured sentences in each language.

Resolves #315
2020-06-21 18:00:00 +00:00
Norbert Renner
77f1b5f0af
Merge pull request #314 from rkflx/pr/add-and-fix-shortcuts
Add more keyboard shortcuts and fix various shortcut related issues
2020-06-19 21:26:13 +02:00
The Ripper
0d6cd61b1f
Load Track from file and add as Route (#312) 2020-06-19 18:19:42 +02:00
Norbert Renner
007761b4b1 release: 0.12.0 2020-06-19 11:18:34 +02:00
Norbert Renner
de3d355c0c Add contact language hint to about dialog 2020-06-17 17:51:40 +02:00
Norbert Renner
ebaba664d2 Improve mobile stats (#302)
- flex-wrap instead of hard character break
- minimal margin
- add missing breakpoint for space
2020-06-17 10:39:53 +02:00
Henrik Fehlauer
b8b1e436e6 Add shortcut to toggle elevation chart
Press 'E' to show/hide the elevation chart.
2020-06-14 18:00:00 +00:00
Henrik Fehlauer
844a9038ee Add shortcuts to toggle sidebar and switch tabs
The 'T' key will show/hide the most recent sidebar tab.

Pressing 'Shift+T' will switch to the next sidebar tab, possibly
wrapping around to the first tab.

If the Itinerary tab is hidden, it will be skipped.
2020-06-13 18:00:00 +00:00
Henrik Fehlauer
e56d213931 Add shortcut to show about dialog
Press 'H' to get to the helpful about dialog.
2020-06-12 18:00:00 +00:00
Henrik Fehlauer
d106552ad3 Add shortcuts to load tracks and no-go areas
Press 'O' or 'Shift+O' to open/load tracks or no-go areas respectively.
2020-06-11 18:00:00 +00:00
Henrik Fehlauer
a420ad5c0b Add shortcut to export route
Press 'X' to trigger the export route dialog.

Automatically populating the trackname field should work too.
2020-06-10 18:00:00 +00:00
Henrik Fehlauer
6da520ed4d Add shortcut to toggle profile switcher
Press 'G' to open the profile switcher, select a profile with the arrow
keys, apply with 'Enter' and close the switcher with 'Escape'.

While 'T' and 'P' will be / were already taken, 'G' is at least easily
reachable with the left hand for users using a mouse with their right
hand at the same time.

Since Bootstrap keeps updating the tooltip when changing options in the
dropdown (which is useful in case the text is longer than the width of
the control), the shortcut text needs to be applied dynamically too.
2020-06-09 18:00:00 +00:00
Marcus Jaschen
fc54c65e23 Add sidebar tab with route analysis data
- adds a new analysis tab in the sidebar
- the analysis tab shows length distribution for different way types, surface, and smoothness
- table rows can be hovered/clicked to highlight the according segments on the map (similar behaviour as the detailed data table)
- localization is implemented for `de` and `en`
- the method for finding segment edges was extracted from `js/control/TrackMessages.js` into `js/util/TrackEdges.js` as it's used in the new analysis class too (the Gulp config was changed to reflect that)

Notes:

I had the idea to use the *DataTable* plugin for rendering the tables but decided against it. The only meaningful way to sort such a table is by the length column and that's already the case. So it's just three plain, old HTML tables, rendered by jQuery.

For meaningful statistics the `processUnusedTags` setting has to be enabled in the routing profile. Only in this case the BRouter backend includes all needed tags (`highway`, `surface`, and `smoothness`) for *every* route segment in the response. I’ve enabled that setting for all profiles at my BRouter-web instance at <https://brouter.m11n.de/>.
2020-06-07 16:56:50 +02:00
Norbert Renner
e5e876f717 Make privacy policy URL configurable (#284) 2020-05-28 10:54:08 +02:00
Norbert Renner
01e7fd7144
Merge pull request #284 from erdmark/patch-1
Privacy link relative path
2020-05-28 10:50:42 +02:00