Commit Graph

633 Commits

Author SHA1 Message Date
Bryan Housel
cdc02e0f42 Fix blurring workaround when tabbing on Firefox
Apparently Firefox now executes setTimeout(fn,0) sync instead of async
(closes #4991)
2018-04-18 22:01:34 -04:00
Bryan Housel
d8f6fafe74 Don't add empty source tag on a changeset
(closes #4993)
2018-04-18 17:33:56 -04:00
Bryan Housel
a86167f0d1 Linkify subreddit in community description
(closes #4997)
2018-04-18 17:10:54 -04:00
Bryan Housel
eaa96ce0ae Fix for empty array when querying for local community geometries 2018-04-16 15:40:41 -04:00
Bryan Housel
08d9a0267b Guard code to avoid deleting a turn twice
(see #4968, #4928)
2018-04-12 13:18:49 -04:00
Bryan Housel
7ca23bf51d Merge branch 'master' into tyrasd-patch4968-onlyrestrictions 2018-04-10 17:28:19 -04:00
Martin Raifer
d2d464d9ee only drop restrictions from FROM towards VIA when adding new only
partially adresses bugs in #4968:

* doesn't crash anymore in complex situations (short FROM ways where both ends connect to a TO way)
* adding a only-restriction at one end of a short FROM doesn't delete restrictions on the other end of the same FROM anymore
2018-04-10 13:19:20 +02:00
Bryan Housel
f9c1cbf6bc Show a message on the History Panel if the feature is new
(closes #4975)
2018-04-09 14:33:39 -04:00
Bryan Housel
7bf544c28a Don't click cycle through alternating or reversible oneway states
(closes #4970)

They are still supported as translated strings, and user can still enter these
values in the raw tag editor, but they should not toggle with clicks in the
checkbox field.  This is because novice users are confused by what they mean.
2018-04-09 10:48:21 -04:00
Bryan Housel
f0d8583f74 Adjust sort weight by community type 2018-04-09 09:20:55 -04:00
Bryan Housel
514ddffd22 Add link to report missing info in the community list 2018-04-08 23:41:51 -04:00
Bryan Housel
c35b4906fd Add support for translated i18n events 2018-04-08 22:23:26 -04:00
Bryan Housel
cab78c2c6b Add notification badge for events, default disclosures to closed 2018-04-08 21:55:36 -04:00
Bryan Housel
cd2d42799e Show events 2018-04-08 21:23:05 -04:00
Bryan Housel
8a0a5e309e Show languages 2018-04-08 08:59:49 -04:00
Bryan Housel
30d94db9a2 Precompute areas and sort communities by area ascending
Note: Currently unreliable because the polygons have inconsistent winding,
but this will be fixed in the next release of osm-community-index
2018-04-08 01:20:35 -04:00
Bryan Housel
4f855d50a4 Expand/contract extended description 2018-04-07 23:07:34 -04:00
Bryan Housel
4eaa2a98ce Fix global community resources (e.g. Reddit) 2018-04-07 22:16:50 -04:00
Bryan Housel
1c440f0db4 Remove the share links 2018-04-07 22:16:39 -04:00
Bryan Housel
775525a74e Linkify the links 2018-04-07 22:02:47 -04:00
Bryan Housel
55e55e2021 More style and language adjustments 2018-04-07 21:45:23 -04:00
Bryan Housel
8ea2c7ff9a Add community icons, add icons and descriptions to post-save screen 2018-04-07 14:51:04 -04:00
Bryan Housel
0731a120c6 Improve "View on OSM" save section 2018-04-07 12:39:03 -04:00
Bryan Housel
712b4cb19e Add communities to save screen 2018-04-06 18:51:59 -04:00
Bryan Housel
2ed2d79aef Thank the user for their contribution 2018-04-04 23:49:42 -04:00
Bryan Housel
a160c00c35 Hide Turn Restriction field on trivial junctions
(closes #4934)
2018-03-27 23:54:26 -04:00
Bryan Housel
08ac17f49c Split pane content into header and content, move close button 2018-03-27 18:38:39 -04:00
Bryan Housel
3bf618add8 Merge branch 'fix4599' of https://github.com/vershwal/iD into vershwal-fix4599 2018-03-26 11:19:10 -04:00
Bryan Housel
df5383c1b4 Merge pull request #4908 from vershwal/icon_edit
Added pencil icon.
2018-03-23 15:40:52 -04:00
Bryan Housel
aea3b6feb5 Fix reference typo introduced in c44551be7 2018-03-23 13:30:37 -04:00
Bryan Housel
c08d79e488 Extract tag cleaning code to utilCleanTags, add tests
(closes #4925)
2018-03-22 14:46:36 -04:00
Bryan Housel
c44551be77 Don't trim spaces around semicolons in conditional: tag values
This commit also includes code formatting, and removes some lodash
2018-03-22 14:46:36 -04:00
Bryan Housel
be85cd8e89 Drop support for node 4 / npm 2
(closes #4853)

This fixes several issues with dependency resolution
2018-03-19 11:59:41 -04:00
vershwal
9d9be8fd26 Added button to close Map controls. 2018-03-18 17:17:28 +05:30
vershwal
1c047f5ac8 Added pencil icon. 2018-03-17 20:22:26 +05:30
vershwal
142b738a30 Hint text for Remove and Undo button. 2018-03-17 01:07:56 +05:30
Bryan Housel
61c7f64077 Remember changeset source, make it settable via url param
(closes #4899)
2018-03-16 09:20:32 -04:00
Bryan Housel
e66218e1ef Merge branch 'tooltip' of https://github.com/vershwal/iD into vershwal-tooltip 2018-03-15 14:30:25 -04:00
vershwal
04bc4b09f0 Added alt text for information icon. 2018-03-15 12:54:42 +05:30
Bryan Housel
4a71aa6146 Use safer field ids in classes, element ids, css selectors
Fixes issue with nested/namespaced fields, such as `maxspeed/advisory`,
in situations where would try to use a css selector or element id.
Can't use characters like '/' in a css selector.
2018-03-15 00:57:41 -04:00
Bryan Housel
4b1f8a8f61 Merge pull request #4768 from openstreetmap/advanced_intersection
Add support for complex intersection and via way restrictions
2018-03-01 01:46:30 -05:00
Bryan Housel
78170f8fe9 Improve hint text to aid in localization
- change the "Up to {num} ways" to "Up to 2 ways"
  (we don't plan to go above 2 for now)
- enumerate all the turn types No/Only/Allowed x Left/Right/Straight/U
- Add a line for "Click for" to let user know they can click to toggle

see https://github.com/openstreetmap/iD/pull/4768#pullrequestreview-100256196
2018-03-01 00:58:53 -05:00
Bryan Housel
241159b547 Cleanup docs and tests for actionRestrictTurn / actionUnrestrictTurn
- actionRestrictTurn will no longer "infer" the turn type
- restrictionType *must* be passed in - this is ok because the only code
  we use this action (restrictions.js) already has inferred the type
- this simplifies what the action actually does
- moved the tests from restrict_turn.js that were really just testing
  the restriction type inferrence over to intersection.js
  (and added a few more tests for iD.osmInferRestriction)
2018-02-28 23:55:59 -05:00
Bryan Housel
f9d000a8a5 When switching to ONLY restriction remove all other restrictions
But we keep them around in `_oldTurns` and will put them back if the
user clicks again to unrestrict the ONLY.
2018-02-27 22:53:46 -05:00
Bryan Housel
e9750140ec Finish help, improve text and styling 2018-02-27 15:51:51 -05:00
Bryan Housel
a700d42e7d Much improved field help
- absolutely positioned attach to inspector,
- float slightly above field
- looks much better
2018-02-26 21:42:45 -05:00
Bryan Housel
6c6b1378b2 Add some restriction help images, adjust styles 2018-02-26 16:31:00 -05:00
Bryan Housel
de1fdaa21f Add close button, remove _showing state variable 2018-02-26 13:58:50 -05:00
Bryan Housel
97cbfc5c67 Add icons and improve css styles for restriction field help 2018-02-25 22:38:13 -05:00
Bryan Housel
b3b2be95b1 WIP: Add content for turn restriction field help 2018-02-24 12:14:18 -05:00