Skip to content

Add important OpenHistoricalMap fields to every preset - #145

Merged
danrademacher merged 2 commits into
stagingfrom
1ec5-ohm-universal-fields-449
Oct 17, 2022
Merged

danrademacher merged 2 commits into
stagingfrom
1ec5-ohm-universal-fields-449

Conversation

@1ec5

@1ec5 1ec5 commented Oct 15, 2022 •

Copy link
Copy Markdown
Member

This PR adds the all-important Start Date, End Date, and Source(s) fields to the inspector regardless of the selected features’ presets. It also adds License as an optional field.

This implementation respects preset inheritance, which was introduced upstream after the previous implementation of these fields landed in 1258835. A preset that doesn’t define its own fields inherits the same fields it would inherit in OSM’s iD, but the core OHM fields are included too. OHM’s custom fields will be localized using the same mechanism as the rest of the core interface; however, this PR does not include any translations.

Here’s what the Law Office preset looks like initially:

lawyer

If the user selects a feature that’s already tagged with license or they select License from the “Add field” menu, the License field appears:

license

Fixes OpenHistoricalMap/issues#449. Working towards OpenHistoricalMap/issues#395.

Old screenshots lawyer

@1ec5 1ec5 self-assigned this Oct 15, 2022
Comment thread modules/presets/index.js Resolved
Comment thread modules/ui/sections/preset_fields.js Resolved
@1ec5
1ec5 marked this pull request as ready for review October 16, 2022 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants