Commit Graph

1552 Commits

Author SHA1 Message Date
Quincy Morgan
3a933de876 Don't add tags to connection node when connecting crossing line/area 2020-04-13 18:57:26 -07:00
Quincy Morgan
85c88a8846 Add additional tests for crossing_ways validation 2020-04-13 18:37:13 -07:00
Quincy Morgan
513b344012 Fix code tests 2020-04-03 13:33:54 -07:00
Quincy Morgan
ca3a0f9dbc Fix lint warnings 2020-04-02 11:12:10 -07:00
Quincy Morgan
90b1395df4 Fix code tests 2020-04-01 13:27:30 -07:00
Quincy Morgan
60f7dc7c0b Replace presets property of context with singleton
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
a58abe3c6f Move localStorage interface from a property of coreContext to a corePreferences function 2020-04-01 11:00:48 -07:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
a7ce956e1f Don't use global selectors in street-level photo services (re: #7445) 2020-03-29 11:04:38 -07:00
Quincy Morgan
a1a398650f Instantiate uiFlash only once as a property of the UI and remove global selection (re: #7445) 2020-03-29 10:22:58 -07:00
Quincy Morgan
85ce071704 Render "semi-paved" roads like cobblestone, paving stones, and wood with a solider line than unpaved roads (close #7466) 2020-03-26 19:26:29 -07:00
Quincy Morgan
955b622e1b Fix code test 2020-03-24 14:12:34 -07:00
Quincy Morgan
36082a8119 Use ideditor as the container class instead of id-container
Scope all CSS to iD's container (close #7437)
Don't style html or body elements unless running standalone iD
2020-03-22 16:54:12 -07:00
Quincy Morgan
e391edcc5c Namespace various internal SVG ids under ideditor (re: #7445) 2020-03-22 14:39:40 -07:00
Quincy Morgan
ebc3a2c322 Remove coreContext.changes passthrough function 2020-03-22 11:06:58 -07:00
Quincy Morgan
3c0b926ec7 Replace coreContext.geometry function with a more explicit coreGraph.geometry function 2020-03-21 14:23:44 -07:00
Quincy Morgan
f2a687f68b Convert container from id to class 2020-03-20 15:08:56 -07:00
Quincy Morgan
c893147e15 Convert some element ids to classes to avoid collisions when embedding iD 2020-03-20 13:53:17 -07:00
Quincy Morgan
f625406ccc Convert some element ids to classes to avoid collisions when embedding iD
Clarify some footer class names
2020-03-20 13:43:07 -07:00
Quincy Morgan
152d89fa22 Convert some element ids to classes to avoid collisions when embedding iD 2020-03-20 13:10:39 -07:00
Quincy Morgan
72a99673a0 Revert #7428 2020-03-20 09:59:30 -07:00
Bryan Housel
47aaec0db6 Sanitize personal tokens from custom background imagery
(closes #6801)
2020-03-14 10:30:46 -04:00
Quincy Morgan
c16e03b9b3 Merge pull request #7428 from openstreetmap/imagery_index
Imagery index
2020-03-13 13:50:46 -07:00
Bryan Housel
b96eccc67c Fix the domain switch test 2020-03-13 13:11:56 -04:00
Quincy Morgan
bd7c1c757c Fix code test failure 2020-03-12 16:49:57 -07:00
Quincy Morgan
1e820b6980 Convert OSM API tests to simulate JSON responses (re: #7188) 2020-03-12 16:45:08 -07:00
Bryan Housel
dbe643aeac Switch from bundled editor-layer-index to fetched imagery-index 2020-03-12 14:27:49 -04:00
Quincy Morgan
4a6baccad3 Merge branch '2.x' into endpoints-fix 2020-02-27 12:59:00 -08:00
Quincy Morgan
2e238b8218 Fix JS error on clicking review request
Give different instances of the raw tag editor distinct classes and disclosure states
Correctly expand raw tags section by default when selecting a feature with a fallback preset
Fix raw tag editor tests
2020-02-26 14:51:32 -08:00
Bryan Housel
4d0ef1bafc Export only the d3 functions we use in tests
(re: #4379)

This trims a bit more off the iD bundle size
2020-02-22 15:07:09 -05:00
Bryan Housel
fafdb76835 Remove test/bench/*
Benchmarking is a good idea and we should do it,
but this stuff hasn't run in >5 years.
2020-02-21 23:21:58 -05:00
Bryan Housel
919687d2cf Replace legacy names still used in tests, remove the legacy exports 2020-02-21 23:12:25 -05:00
Quincy Morgan
6782947f5b Make inspector sections inherit from uiSection (re: #7368) 2020-02-21 15:22:54 -08:00
Bryan Housel
b12c30461b Don't bundle the locales anymore, load first in context init
(re: #4994)
2020-02-21 12:24:08 -05:00
Bryan Housel
dc7fba4bf8 Have utilStringQs advance past any leading '?' or '#' characters
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
Bryan Housel
030a85199f Add support for AES encrypt/decrypting sensitive values
(closes #7355)
2020-02-13 13:12:24 -05:00
SilentSpike
64ae360dac Add verbs to test spec for almost junctions 2020-02-11 16:10:46 +00:00
SilentSpike
142126f7fe Store node for quick fix in data not entityIds
Realised these are used for highlighting and should remain as is.
2020-02-11 16:10:46 +00:00
SilentSpike
d83675f43e Update almost junction tests to reflect change 2020-02-11 16:10:45 +00:00
SilentSpike
d96fde53db Add test for almost junction with both close ends 2020-02-11 16:10:45 +00:00
SilentSpike
917c8f0b94 Add tests for close endpoint almost junctions 2020-02-11 16:10:44 +00:00
Bryan Housel
3608659d21 Restore field inheritance 2020-02-10 16:22:13 -05:00
Bryan Housel
2149692bee Make sure the addablePresetIDs can be reset back to null too 2020-02-07 12:55:16 -05:00
Bryan Housel
1155498766 Restore the addablePresetID feature 2020-02-07 12:06:59 -05:00
Bryan Housel
9faf8c0fe5 Test that fallback presets are there before data is loaded
Also, we don't actually need a vertex preset anymore, it was removed a while ago
2020-02-06 17:04:11 -05:00
Bryan Housel
2edf81605c Remove fallback presets from the test data
presetIndex has them already
2020-02-06 16:26:31 -05:00
Bryan Housel
3f1f85a1e9 Restore some odd but necessary workarounds to the presetCollection test 2020-02-06 16:10:55 -05:00
Bryan Housel
12e3b7df6d Setup fake data so that coreUploader doesn't fire off requests 2020-02-06 14:06:40 -05:00
Bryan Housel
ed19ce5bb1 When testing, pick modern or legacy build depending on which browser
This also lets us remove the special phantom.html tests
2020-02-06 13:05:18 -05:00
Bryan Housel
13ead25654 Merge branch 'external_presets' into 2.x
(re: #4994)
2020-02-05 21:32:51 -05:00