Commit Graph

3377 Commits

Author SHA1 Message Date
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
a43a7f8b50 Remove old _tkeys_ code
This was used for debugging translations, it would replace each string with
the translation key, so people could see what key was used where in the UI.
As far as I know, nobody was using this.
2020-02-21 17:05:55 -05: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
e8f4452d49 Don't bundle the en.json strings anymore, Promisify locale loading
(re: #4994)
2020-02-21 11:09:59 -05:00
Bryan Housel
ed58c8f62b ES6ify detect.js 2020-02-21 10:42:58 -05:00
Bryan Housel
61c86a3527 Don't rely on the dataEn export for checking if a string exists
Instead use the special `default` key for supplying a fallback string
2020-02-20 17:11:47 -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
Quincy Morgan
1f4fe57d8b Use d3-style API for section contents 2020-02-20 13:47:11 -08:00
Quincy Morgan
4fe9057eb7 Move remaining issues pane sections to their own objects 2020-02-20 13:02:09 -08:00
Bryan Housel
503d287995 ES6ify locale.js 2020-02-20 10:26:09 -05:00
Bryan Housel
3ccf0e6ccb Preload intro graph data while the user is viewing the splash screen 2020-02-20 08:52:05 -05:00
Quincy Morgan
e42bc34e4b Move validation warnings and errors to their own section objects
Allow function parameters for disclosure titles
2020-02-19 17:28:51 -08:00
Quincy Morgan
68c2b9f1a8 Move the data layers section to its own object (re: #7368) 2020-02-19 14:31:32 -08:00
Quincy Morgan
ff4ac253da Make photo overlays its own section object (re: #7368) 2020-02-19 12:08:13 -08:00
Quincy Morgan
c6129a0493 Remove unused autohidden errors code path 2020-02-19 11:28:11 -08:00
Quincy Morgan
b921ca3cb4 Move map features and map style options to their own pane section objects (re: #7368)
Handle area fill and change highlighting logic in the rendererMap object and issue change events
2020-02-19 11:23:02 -08:00
Quincy Morgan
5c04ad3eb5 Add uiSection class as standard component for pane sections
Move validation rules and privacy preferences to their own section objects
2020-02-18 20:02:55 -08:00
Quincy Morgan
d8a0f030cc Add "pane" prefix to pane UI objects
Move background and overlay layer lists to their own files
2020-02-18 13:33:12 -08:00
Quincy Morgan
5c150718a3 Make all panes inherit from a standard uiPane class (re: #7368) 2020-02-18 10:40:27 -08:00
SilentSpike
753ae3bdd2 Use marked for Osmose strings markdown
- More reliable method of handling markdown
- Change external links in the strings within the details code
2020-02-16 22:38:34 +00:00
SilentSpike
18287284c6 Remove translations link from Osmose UI
- Not useful to majority of users and clutters the UI
- Anyone interested in translation will already be looking at the iD
project and we can direct them from there
2020-02-16 12:47:38 +00:00
SilentSpike
05996892df Parse markdown formatting of Osmose subtitles too 2020-02-15 13:04:47 +00:00
SilentSpike
1e544f64fb Add rel=noopener to external QA links 2020-02-15 12:39:23 +00:00
SilentSpike
af0e37f7c5 Add "view on osmose" link to UI footer 2020-02-15 11:48:01 +00:00
Bryan Housel
086cade061 Restore Maxar imagery layers using masked urls
(cherry pick of #7356)
2020-02-14 14:51:03 -05:00
SilentSpike
d200d0fce2 Use Promise for improveOSM comments 2020-02-14 17:31:10 +00:00
Bryan Housel
9d6ade23b5 v2.17.2 changelog 2020-02-14 11:07:12 -05:00
Quincy Morgan
05925b15f2 Use standard hover-highlighting mechanism in feature search results list 2020-02-13 10:20:32 -08:00
Bryan Housel
030a85199f Add support for AES encrypt/decrypting sensitive values
(closes #7355)
2020-02-13 13:12:24 -05:00
Quincy Morgan
614ee3f68e Use standard hover-highlighting mechanism for feature links in Q/A inspectors 2020-02-13 10:07:18 -08:00
Quincy Morgan
2ed4acaf2e Apply "statused" styling to planned features 2020-02-12 16:34:40 -08:00
Quincy Morgan
32d773caa7 Standardize some Q/A CSS 2020-02-12 16:00:29 -08:00
Quincy Morgan
5674f75a11 Make the icons larger and centered on ImproveOSM and Osmose issue markers 2020-02-12 14:52:49 -08:00
SilentSpike
3ee32776a7 Fix QA error icons
Pass service itself in to QAItem constructor for purpose of fetching
data. Store string as `title` property on the service.
2020-02-12 21:27:38 +00:00
SilentSpike
9364b1d637 Fix missing semi-colon 2020-02-12 21:27:37 +00:00
Quincy Morgan
c82c57f8cb Update feature names in the selection list while typing in the name field (close #7334) 2020-02-11 15:21:28 -08:00
Bryan Housel
3608659d21 Restore field inheritance 2020-02-10 16:22:13 -05:00
Bryan Housel
0357c2b80c Rework presets.js file - WIP to fix resolving field inheritance 2020-02-07 14:17:19 -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
a9a1f945f8 Move the qa_data external
- this means that QAItem now asks the service for the icon rather than knowing it directly
2020-02-07 10:06:47 -05:00
Bryan Housel
4c5e7db2dd Move the iD.data export from data/index.js to coreData
coreData now owns all the data, and data/index.js should eventually go away
(re: #4994)
2020-02-07 09:27:23 -05:00
Bryan Housel
fe00a40e9a Move the keepRight data extrnal 2020-02-07 09:16:34 -05:00
SilentSpike
f8a4a0b3ad Use d3_json Promise directly for Osmose requests 2020-02-07 11:29:48 +00:00
SilentSpike
8bb2dc7fa6 Return Promise for Osmose string requests 2020-02-07 11:21:33 +00:00
SilentSpike
7d76e0ac5c Fix Osmose request resolving after UI moves on
- Previously caused minor unexpected renderer behaviour by forcing elements
visible when the user had moved on (potentially interfering with
whatever they're currently doing)
2020-02-07 10:43:44 +00:00
SilentSpike
f86837d637 Fix use of double quotes 2020-02-06 23:12:18 +00:00
SilentSpike
51efd5b714 Update and standardise QA implementations
- ES6ify (now using class syntax to define QAItem objects)
- Fix bug with KeepRight marker rendering not updating properly
- Use `qa-` prefix for the UI element classes to differentiate from iD
validation error related UI element classes
- Move away from "error" where possible in source
- Move away from snake_case naming where possible

Note that some function/method names have been untouched to make life
easier for v3 development. Have added note comments where appropriate.
2020-02-06 23:07:50 +00: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