Commit Graph

117 Commits

Author SHA1 Message Date
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 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 ad327befc7 Move keybindings from map panes to uiInit 2020-03-25 13:59:09 -07:00
Quincy Morgan d62a62cba8 Make popover and tooltip part of the UI module instead of utils 2020-03-24 17:32:09 -07:00
Quincy Morgan 0931459dba Reduce use of global selection (re: #7445) 2020-03-24 13:02:06 -07:00
Quincy Morgan d669bbef2a Update various files for removal of master branch 2020-03-23 10:43:52 -07:00
Quincy Morgan e391edcc5c Namespace various internal SVG ids under ideditor (re: #7445) 2020-03-22 14:39:40 -07:00
Quincy Morgan eed7944a1a Replace various uses of d3_select and d3_selectAll with selection on the container 2020-03-22 12:34:06 -07:00
Quincy Morgan 6087aae21f Remove map convenience functions of context 2020-03-22 10:57:17 -07:00
Quincy Morgan f2a687f68b Convert container from id to class 2020-03-20 15:08:56 -07:00
Quincy Morgan 371bac0aa2 Convert photoviewer from id to class 2020-03-20 14:07:09 -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 19bdabd889 Don't disable default hyperlinking 2020-03-12 20:31:15 -07:00
Quincy Morgan d82936ff24 Fix issue where labels could not be clicked to change or focus inputs 2020-03-10 13:39:22 -07:00
Quincy Morgan a4e8c95009 Prevent double-tap-to-zoom browser on mobile Safari (close #6049)
Limit scope of gesture event cancelation to iD's container
2020-03-09 13:16:13 -07:00
Quincy Morgan f4c39cc434 Don't require translations or uiFlash in rendererMap 2020-03-02 14:59:11 -08:00
Quincy Morgan b40d47fda4 Show active state on geolocate button (close #7390) 2020-02-27 10:55:22 -08:00
Quincy Morgan 5aab09845d Move the "zoom to this" button from the inspector to the map next to the zoom in/out buttons (re: #6601)
Use title case for the Zoom In and Zoom Out button labels
2020-02-26 19:59:09 -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 e8f4452d49 Don't bundle the en.json strings anymore, Promisify locale loading
(re: #4994)
2020-02-21 11:09:59 -05: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
Quincy Morgan 0e14241fcf Move some upload code from modeSave to new coreUploader object (re: #7247) 2020-02-05 15:28:23 -05:00
Bryan Housel 27f538b0cf Add Preferences Pane, Third Party Icon toggle, link to policy
(re: #7040)
2019-12-16 22:27:06 -05:00
Quincy Morgan 523a467836 2.x: Make toolbar horizontally scrollable when it overflows (re: #6755, re: 7545f67063b5e7007ef2d8367e3181e59c04a487)
Generalize tooltip into popover control
Use the same popover control for tooltip as the preset browser and tools list popovers
Smartly position the preset browser popover and menu bar tooltips to stay fully onscreen
Position most tooltips closer to their controls
Fix small gap that could appear between a tooltip and its arrow
Allow wider toolbar tooltips
2019-12-16 13:30:07 -05:00
Quincy Morgan 949ec8afa0 Add issue count badges to the bottom info bar when validating Everything 2019-10-14 17:14:47 +02:00
Quincy Morgan c88f2cb43c Support @ for collapsing the sidebar for French keyboards (close #6864) 2019-09-26 12:20:07 +02:00
Quincy Morgan 46a52cb19e Add button to toggle the Background info panel (re: #6397)
Reword imagery problem link label (close #6820)
2019-09-09 12:23:58 -04:00
Albin Larsson cd5cd81ba5 make additional buttons and links keyboard accessible 2019-07-31 08:24:26 +02:00
Quincy Morgan eb49a367b4 Don't reuse changeset comment, sources, and hashtags from prior uploads (close #6642, re: #6279) 2019-07-22 16:12:20 -04:00
Bryan Housel cc4991d111 Don't draw until we've set zoom/lat/long 2019-05-17 11:19:38 -04:00
Quincy Morgan cc85897348 Fix map pane animation on RTL layout (close #6290) 2019-05-03 11:05:10 -07:00
Quincy Morgan d01bb78707 Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys (close #6237) 2019-04-24 13:45:59 -07:00
Quincy Morgan a30051fd9c Restore full screen ability 2019-04-18 10:37:22 -07:00
Quincy Morgan 6bdf6c5127 Fix minimap position (close #6167)
Flexbox panes and info panels to prevent overlap (close #4733)
2019-04-15 11:50:54 -07:00
Quincy Morgan 1698be7bfa Move the top toolbar creation to its own file 2019-03-11 11:07:45 -04:00
Quincy Morgan e003660a6d Style favorite presets more like buttons 2019-03-07 10:51:17 -05:00
Bryan Housel 0518fa6479 Put map panes into their own div 2019-03-06 21:52:37 -05:00
Quincy Morgan 43661d1b39 Merge add search bar UI with draw mode buttons UI 2019-02-28 16:20:19 -05:00
Quincy Morgan 4e5b507fc5 Separate the add note button from the add feature buttons 2019-02-28 15:48:47 -05:00
Quincy Morgan a2297c8896 Move spinner out of the top bar 2019-02-28 15:23:08 -05:00
Quincy Morgan 4a82604cab Add search-to-add functionality 2019-02-28 15:00:00 -05:00
Quincy Morgan b6effd6ed0 Add initial search bar UI element 2019-02-28 11:19:40 -05:00
Quincy Morgan aff86979a6 Better pane display at narrow window widths (close #5890) 2019-02-20 13:47:11 -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 826f66a91b Unique values for key codes moved to utilKeybinding, uiShortcuts
This lets us supply lists of keys which might contain duplicates, but will be
made unique.  For example: [t('sidebar.key'), '`', '²']
'sidebar.key' may be one of the other choices, but will be deduplicated.
2019-01-07 11:12:24 -05:00