Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow for adding relations with the ribbon UI #6551

Open
quincylvania opened this issue Jun 18, 2019 · 7 comments
Open

Workflow for adding relations with the ribbon UI #6551

quincylvania opened this issue Jun 18, 2019 · 7 comments
Labels
tools Something for the taskbar/toolbar usability An issue with ease-of-use or design
Milestone

Comments

@quincylvania
Copy link
Collaborator

quincylvania commented Jun 18, 2019

We could use the ribbon UI as an easier way to add new relations. For instance, adding a new bus route could work like this:

  1. Search "bus route" with the Add Feature tool
  2. Select the Bus Route preset
  3. Enter a new mode where clicking on features adds them to the relation
  4. Click all desired members.
    • We could limit which features are eligible, e.g. only allow roads and stops
  5. Click Finish once done

Related: #4915

@quincylvania quincylvania added tools Something for the taskbar/toolbar usability An issue with ease-of-use or design labels Jun 18, 2019
@quincylvania quincylvania added this to the 3.0.0 milestone Jun 18, 2019
@BjornRasmussen
Copy link
Contributor

This seems a lot like #1575

@DujaOSM
Copy link

DujaOSM commented Jan 29, 2020

Curious: has the work on this commenced?

To me it seems simpler to build the functionality around the current multi-selection editing, similar to tag editing in v3. For selected objects, present a list of existing relations on them and offer the user to add them to a new relation, an existing relation or remove from a relation. Having a special mode like you proposed above is generally a pain to develop and foolproof, and I don't think it's superior usability-wise.

@kymckay
Copy link
Collaborator

kymckay commented Jan 29, 2020

@DujaOSM I think the OP sounds more intuitive for the new workflow (user selects a feature rather than a geometry to add). However, your idea could certainly also be implemented as a means of adding to existing relations.

On second thought, it would make sense to only have one method and the above could also be used to extend existing relations by first selecting them and then clicking an "add to relation" option or similar.

@DujaOSM
Copy link

DujaOSM commented Jan 29, 2020

Modes are Evil.

I would rather have relations more "equal in standing" to points and ways, i.e. treat them as independent objects within the UI rather than strictly attached to map objects. Along the following lines:

  • Add the fourth geometry, "Relation", to the toolbar, after "Point", "Way" and "Area". When selected, the sidebar appears and the user must select the relation type, select an appropriate preset, and any additional tags.
  • For the time being, the relation has no members, and an error/warning/prompt appears to that effect. (Empty relations should not be allowed to be committed, IMO.)
  • All newly created relations are permanently cached during the session and thus available for expansion (that avoids the issue when you scroll the view out of the target relation's current scope, so you cannot add a remote member to an existing relation)
  • To add a new member to a relation, select one (as it is now) or more (as I propose) objects from the map and add them to the relation selected in the drop-down, pretty much the same as now. (No clumsy "New relation..." item, which breaks the workflow).

@DujaOSM
Copy link

DujaOSM commented Jan 6, 2021

Hey @quincylvania, when did you sneak this in? 2.19.5 I assume? I don't see it documented in release notes:
MultiRelations
This resolves the last, and the most important, item from my list above. Kudos!

@quincylvania
Copy link
Collaborator Author

quincylvania commented Jan 6, 2021

Hey @quincylvania, when did you sneak this in? 2.19.5 I assume? I don't see it documented in release notes

@DujaOSM Yes, this is #7753! It was released in 2.19.0 under Usability & Accessibility but I didn't make a big deal about it since it's sort of advanced and there was enough else to discuss.

@Mashin6
Copy link

Mashin6 commented Apr 15, 2021

I also think that relations should be a fourth button on the top ribbon. There is no reason not to, since they are standard OSM objects. How I imagine it could work:

  1. Press 4 or click relation button.
  2. iD goes from drawing mode to selection-only mode where user can select multiple objects.
  3. In the sidebar will already be suggestions what type of relation they want to create.
  4. Select e.g. multipolygon and iD automatically determines what is outer and inner parts, warns about bad members (in this case unclosed ways, points, touching outer rings.. etc.)
  5. Sidebar shows only relevant fields e.g. hiking route will have colour and osmc:symbol
  6. User can still keep selecting and unselecting objects and iD adds them or removes them
  7. User confirms changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Something for the taskbar/toolbar usability An issue with ease-of-use or design
Projects
None yet
Development

No branches or pull requests

5 participants