Commit Graph

52 Commits

Author SHA1 Message Date
Quincy Morgan b92f0a6d09 Fix styling issue in panels
Add lang attribute to more text (re: #7963)
2020-09-22 15:11:12 -04:00
Quincy Morgan f2c150e83e Rename several title properties to label and pass in attributed HTML instead of string 2020-09-22 13:15:19 -04:00
Quincy Morgan 5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan a3549f9a76 Merge branch 'develop' into lang-attributes
# Conflicts:
#	modules/ui/commit_warnings.js
#	modules/ui/field.js
#	modules/ui/fields/wikidata.js
#	modules/ui/fields/wikipedia.js
#	modules/ui/full_screen.js
#	modules/ui/panels/history.js
#	modules/ui/sections/entity_issues.js
#	modules/ui/sections/map_features.js
#	modules/ui/sections/raw_member_editor.js
#	modules/ui/sections/validation_rules.js
#	modules/ui/tag_reference.js
2020-09-22 10:55:07 -04:00
Quincy Morgan 58014ace62 Don't prevent default tabbing to elements (re: #8004) 2020-09-17 12:07:20 -04:00
Quincy Morgan 32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan 3d4703b60c Fix various CSS issues 2020-07-06 15:28:25 -04: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 0b1ce05f35 Fix JS error when loading post-save community resources 2020-02-25 11:15:05 -08:00
Bryan Housel fb4d658860 Don't bundle the community index anymore, fetch from CDN instead
Start fetching and preparing it just before the changeset gets sent
2020-01-29 15:24:26 -05:00
Bryan Housel 567eeac587 Make several data external instead of bundled:
Also dist/data/* contains minified files now

These are now external and will fetch as needed:
-export { dataAddressFormats } from './address-formats.json';
-export { dataDeprecated } from './deprecated.json';
-export { dataDiscarded } from './discarded.json';
-export { dataLanguages } from './languages.json';
-export { dataPhoneFormats } from './phone-formats.json';
-export { dataShortcuts } from './shortcuts.json';
-export { dataTerritoryLanguages } from './territory-languages.json';
2020-01-28 22:21:31 -05:00
Bryan Housel 2a2668b01b Can't use ES6 fat-arrow functions with arguments
see buble bug https://github.com/bublejs/buble/issues/208
2020-01-24 17:22:03 -05:00
Bryan Housel a45b4133c5 indent 2020-01-16 10:37:24 -05:00
Bryan Housel 1c998d186a Correctly gather the community index resources
- old code assumed that each resource had a link back to a single geojson featureId
- this isn't the case anymore so we need to link them in data/index.js
2020-01-16 10:06:35 -05:00
Bryan Housel 7391266aa7 ES6-ify success.js 2020-01-15 18:27:45 -05:00
Bryan Housel 7959891a8b Switch from hardcoded community rank to resource.order
The next version of the community index will include the `order` property
(re: #6752, osmlab/osm-community-index#114)
2019-08-27 10:14:09 -04:00
Quincy Morgan c28f0437e5 Make the successfully uploaded changeset number clickable (close #6644) 2019-08-08 15:03:28 -05:00
Quincy Morgan e37948fe9a Use CLDR for a translated language list in the localized name field instead of untranslated wmf site matrix (close #2457)
Translate language names in the community index list (close #4990)
2019-07-31 13:47:53 -04:00
Quincy Morgan ca19d50558 Fix issue where duplicate expanded community entries could appear (close #6422) 2019-05-23 17:02:15 -04: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
Bryan Housel 710966801f Make sure community index filters on value array, not object
(closes #6092)

This is breakage related to #6087 in replacing lodash `_.filter`
(which can iterate (v,k) over an object) with `Array.filter`
2019-03-27 09:34:38 -04:00
Bryan Housel 76e0d13729 Remove lodash every and filter
(re: #6087)
2019-03-23 01:22:56 -04:00
Bryan Housel 470835b38f Extract all graphics from iD sprite, reassemble with svg-sprite
All iD sprite graphics are now prefixed with `iD-`
Also includes support for sending the preset logos to taginfo
2018-06-08 16:06:46 -04:00
Bryan Housel 672d3dfa5b Make date parsing from community index more consistent
(closes #5011)
2018-05-12 10:41:58 -04:00
Bryan Housel a86167f0d1 Linkify subreddit in community description
(closes #4997)
2018-04-18 17:10:54 -04:00
Bryan Housel eaa96ce0ae Fix for empty array when querying for local community geometries 2018-04-16 15:40:41 -04:00
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 3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Bryan Housel 99a3741b0c Better isolation of services, to avoid hitting network during test runs
1. All services are disabled in testing now to prevent network accesses
2. Only services are enabled when needed to test something
3. Many changes throughout code to allow iD to run with services disabled
   (e.g. check for osm service instead of assuming context.connection() will work)
4. Actually export the services so we can disable and enable them
2017-08-09 22:04:09 -04:00
Bryan Housel 468c1e427d All graphics from iD-sprite are now symbols that can be used
(re: #3924)
2017-03-23 21:16:32 -04:00
Bryan Housel 1a8cfcc8b1 Changeset refactor
(closes #2633)

* move osmChangeJXON from osm service to osmChangeset
* cleanup putChangeset for code clarity
* adjust params for callbacks (pass changeset around instead of changeset_id)
* add commit.reset() to reset changeset object after successful save
* improve checks for changeset tags (trim whitespace, etc)
2017-03-15 11:03:43 -04:00
Bryan Housel 3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Tom MacWright cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright 6341d4e4b5 one-shot build (#3266)
* One-shot development

* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs

* Unformat intro graph
2016-08-10 15:25:19 -07:00