Commit Graph

624 Commits

Author SHA1 Message Date
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
Bryan Housel 57d2aee6c8 Add uiFieldHelp component, currently just for turn restrictions field 2018-02-23 15:09:05 -05:00
Bryan Housel c63f79a753 Remove isComplex, not used
This was used to decide whether to show the "Max Via" control.
(It's not really needed for a simple intersection)

However since we added the "Max Distance" control, it just makes
sense to show both sliders, since the distance can affect the
complexity.
2018-02-22 22:36:04 -05:00
Bryan Housel aaed678468 Localize all the strings 2018-02-22 22:26:45 -05:00
Bryan Housel 156d0fd681 Drop confusing fromOnly code, consolidate path highlighting code 2018-02-21 00:33:41 -05:00
Bryan Housel 419d1e124b Remove fromOnly highlighting (was confusing), try to simplify 2018-02-20 17:01:11 -05:00
Bryan Housel 7559ff68df Highlight all the paths when hoving on the from 2018-02-20 15:45:44 -05:00
Bryan Housel bd46d0cc4a Highlight restriction when hovering on from 2018-02-20 13:57:51 -05:00
Bryan Housel 4ce0b62d05 Remove unneeded hover behavior, don't hover a way that can't be a FROM 2018-02-20 10:38:50 -05:00
Bryan Housel eb3c1f07ec Always restyle a selected from way (don't reset it to grey) 2018-02-20 09:10:17 -05:00