pietervdvn / MapComplete

An easy-to-use webapp to edit OpenStreetMap
https://mapcomplete.org
194 stars 89 forks source link

Studio: Update help text on presets #1927

Closed tordans closed 2 months ago

tordans commented 2 months ago

The info text on the presets sound like it still described the previous UI and not the one where there is an explicit button to add presets

Presets for this layer. A preset shows up when clicking the map on a without data (or when right-clicking/long-pressing); it will prompt the user to add a new point. The most important aspect are the tags, which define which tags the new point will have; The title is shown in the dialog, along with the first sentence of the description. Upon confirmation, the full description is shown beneath the buttons - perfect to add pictures and examples. Note: the icon of the preset is determined automatically based on the tags and the icon above. Don't worry about that! NB: if no presets are defined, the popup to add new points doesn't show up at all

image
pietervdvn commented 2 months ago

I have a broken image when adding a feature

This broken image is an iconBadge. You specified for the icon badges that ... {if: "status=", then: "https://tordans.github.io/.../questionMark.svg}, ... but a bug prevented this from loading correctly. As, in a preset, status will be unknown, it did attempt to load this image and this bug acted up. 9827f07433787370c9238e324bff3c5381af8fba should have fixed that issue.

pietervdvn commented 2 months ago

The text tries to draw the UI so users know which shows up where. But that is super complex to read. It would be a lot easier to have a link to a screenshot that highlights the areas in question with the property name.

I have added a screen recording video instead.

tordans commented 2 months ago

I have a broken image when adding a feature

This broken image is an iconBadge. You specified for the icon badges that ... {if: "status=", then: "https://tordans.github.io/.../questionMark.svg}, ... but a bug prevented this from loading correctly. As, in a preset, status will be unknown, it did attempt to load this image and this bug acted up. 9827f07 should have fixed that issue.

@pietervdvn I don't quite get where to put this… The version below in "Editing layer berlin_emergency_water_pump_layer_v2" shows errors for the "if" in the "Configuration file" UI.

      "marker": [
        {
          "icon": "circle",
          "color": "#6BC4F7"
        },
        {
          "icon": {"if": "status=", "then": "https://tordans.github.io/MapComplete-ThemeHelper/OSM-Berlin-Themes/man_made-walter_well-status-checker/icons/pumpe_{pump:style}.png#.svg"},
          "color": "#6BC4F7"
        }
      ],