Quincy Morgan
721ee0e95f
Prevent unnecessary reloading of raw tag editor ( close #7248 )
2020-01-18 12:30:35 -05:00
Quincy Morgan
11dfe7e571
Add util function for generating classes/ids from any string
2019-12-20 12:37:53 -05:00
Quincy Morgan
7473d32e31
2.x: Highlight relation members in yellow when a relation is selected, including in a multi-selection (re: #5766 , re: cf2935576511a1b9f5aac47407ed2b0ce803902a)
2019-12-13 11:20:40 -05:00
Bryan Housel
bdb454e1b3
Remove utilCallWhenIdle, use requestIdleCallback/cancelIdleCallback
...
Places where a reset or connection switch would be problematic,
we can now cancel the callbacks.
2019-05-16 22:28:56 -04:00
Bryan Housel
a8c6ab4d67
Move requestIdleCallback polyfill to id.js, remove utilIdleWorker
...
`utilIdleWorker` was only used one place.
It just processes a list in an idle callback.
I'm working towards removing the util functions for handling idle work.
We can still do `requestIdleCallback` work throughout the code, however
each place we use it needs to have a strategy for cancellation, which
the existing util functions don't allow for.
2019-05-16 21:19:25 -04:00
Bryan Housel
ddc9d16b62
Merge pull request #6302 from openstreetmap/text-raw-tag-editor
...
Text raw tag editor / Copy-paste tags
2019-05-03 14:53:08 -04:00
Bryan Housel
ff1eea43a8
Remove Google Analytics, also actually export iD.utilDetect
2019-05-02 19:12:39 -04:00
Bryan Housel
ed9a436318
Move common tag diffing code from validators into utilTagDiff
2019-05-02 11:16:15 -04:00
Bryan Housel
efcd6b6bc2
Consolidate idle functions into idle.js, defer validation after merge
2019-04-12 10:49:21 -04:00
Bryan Housel
d18b951c67
Remove lodash flatten and flattenDeep
...
(re: #6087 )
2019-03-28 10:04:46 -04:00
Bryan Housel
3896b2282f
Remove lodash isNaN, isNumber, isString, bind, uniqBy
...
(re: 6087)
2019-03-27 23:11:45 -04:00
Bryan Housel
3d80e6505f
Remove lodash chunk, groupBy
...
(re: #6087 )
2019-03-27 16:18:41 -04:00
Bryan Housel
c5c0d27c85
Add util functions for set operations
2019-03-26 17:50:00 -04:00
Bryan Housel
4821bf0a68
Remove lodash omit
...
(re: #6087 )
2019-03-26 14:12:45 -04:00
Bryan Housel
9e4cf126c3
Remove unneeded utilGetPrototypeOf and just use Object.getPrototypeOf
2019-03-25 22:16:58 -04:00
Bryan Housel
a5ffec5665
utilHighlightEntities accept an array instead of calling it in a loop
2019-02-11 12:40:23 -05:00
Quincy Morgan
981ed9ef8c
Integrate the generic_name validation into the new validations framework
2019-01-24 09:28:59 -05:00
Quincy Morgan
e69f2a0389
Merge branch 'master' into validation
2019-01-23 13:15:33 -05:00
Bryan Housel
a873c0f2ca
Remove unused, add maprules documentation
2019-01-23 11:08:19 -05:00
Quincy Morgan
11b2102761
Merge branch 'master' into validation
...
# Conflicts:
# data/core.yaml
# dist/locales/en.json
# modules/ui/commit_warnings.js
# modules/ui/entity_editor.js
# modules/util/index.js
# modules/util/util.js
# modules/validations/index.js
# modules/validations/many_deletions.js
# modules/validations/missing_tag.js
2019-01-14 10:13:56 -05:00
Bryan Housel
f7150004c0
Refactor things out of util with limited use, move more to service
2018-12-21 11:56:55 -05:00
Quincy Morgan
d58867df7c
Add entity display label util function
...
Condense message and tooltip text for for the untagged feature issue
Use lighter border color for error issues
2018-12-20 14:04:15 -05:00
Thomas Hervey
e0d5391f1b
added: entity links within descriptions
2018-12-19 13:43:48 -05:00
Thomas Hervey
3e7146c63f
WIP: menu with sub-layer buttons; TODO: bug fixes, ui updates, wiring buttons
2018-12-19 13:40:56 -05:00
Thomas Hervey
18278371aa
WIP: identifying variables in errors
2018-12-19 13:38:40 -05:00
Max Grossman
c897331cd1
presets test w/build
2018-12-13 13:30:38 -05:00
Max Grossman
96e44be69c
merge 2.12.2
2018-12-13 11:22:32 -05:00
Bryan Housel
e3f5aecda9
Remove dataSuggestions and utilSuggestNames
...
- dataSuggestions was just a reexport of the name-suggestion-index
- utilSuggestNames was a combobox fetcher function used only once by uiFieldLocalized
Doesn't need to be a util if it's only used once in the code
and the tests for it were not really that interesting
2018-11-20 21:27:32 -05:00
Bryan Housel
bb30cbf555
Move lib/d3.keybinding.js -> util/keybinding.js
...
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
Quincy Morgan
1161767932
Moves the entity highlighting function to util/util.js
...
Breaks out the code for getting a selector for entities and all their descendants into a generic function
Accounts for circular relations when recursively getting all relation member IDs
2018-10-26 18:39:01 -07:00
Max Grossman
0a31137c78
move maprules/mapcss to a service class
...
ref #remote-presets
2018-09-23 18:38:01 -04:00
Bryan Housel
80b583a6f0
WIP on feature deduplication across tile boundaries
...
It seems like the ids stored in the features are not reliable, so I'm trying
to generate ids
2018-08-22 23:16:31 -04:00
Max Grossman
2bf5eaf6e7
initial plumbing for iD validation errors
...
ref #remote-presets
2018-07-31 14:22:34 -04:00
Max Grossman
db78df55c8
get validaiton objects on context
...
ref #remote-presets
2018-07-31 13:41:24 -04:00
Bryan Housel
94b0affe8c
Merge branch '4320' of https://github.com/Psigio/iD into Psigio-4320
2018-07-23 08:44:19 -04:00
Jon D
90bc0b8537
Update to prevent detachment of node when either a via or
...
location_hint role in a turn restriction.
Update to move any other relation to new node.
2018-07-22 19:35:29 +01:00
Bryan Housel
ff64455370
rename the file too
2018-07-21 10:12:11 -04:00
Bryan Housel
d1fe81b905
rename utilTile -> utilTiler
2018-07-21 10:07:56 -04:00
Max Grossman
57ea240177
make uiModes options strict to match only those within defaults
...
ref #remote-presets
2018-07-18 10:50:54 -04:00
Thomas Hervey
d4b1622667
moved getTiles and filtering to utils
2018-07-14 19:15:25 -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
75d2c45fd6
Convert lodah-es and d3 to named imports for behaviors
2017-09-24 21:43:54 -04:00
Kushan Joshi
909b72a39e
cleaning up
2017-08-24 17:03:04 +05:30
Kushan Joshi
91a569985d
playing with map render
2017-08-24 17:02:49 +05:30
Kushan Joshi
82686b10a5
Add requestIdleCallback
2017-08-22 17:38:42 +05:30
Bryan Housel
2314acfec7
Add utilNoAuto to remove autocorrect/spellcheck features from inputs
...
(closes #3839 )
2017-02-14 17:19:24 -05:00
Bryan Housel
d63c766e69
Split into utilDisplayName / utilDisplayNameForPath
...
This is because utilDisplayName gets called a bunch of places and we
only want to add the Arabic reversal code for textpath labels
2017-01-03 20:58:56 -05:00
Bryan Housel
6ab9489fe7
Add utilGetAllNodes to get all nodes and descendants
2016-12-20 22:37:53 -05:00
Bryan Housel
4381bd11ac
Simplify code for determining label font size (eliminate style inspection)
2016-10-17 13:57:15 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00