UX on Geo Form is confusing with regards to Primary Nodes

Problem

Based on the fact that we can no longer create the Primary node from the UI !21448 (merged)

It is confusing that there is an option to toggle the primary node checkbox form the Edit form. It results in an error if you ever try to create/update a Node to be a Primary if the primary already exists (which is has to, since we hide the button unless it exists)

Screen_Shot_2020-04-02_at_1.02.38_PM

Proposal

  1. Remove the primary toggle from the UI
  2. All new nodes in UI are assumed to be Secondaries
  3. UI still knows which node is primary, so can show correct fields when editing primary vs secondary

Proposed design

  • Prototype
  • Spec
  • The primary checkbox is gone.
  • Editing/creating a node page has the node-labels.
    • The secondary label has the bg with black, 8% (/* Transparent/Black 8% */)

Screenshots

  • When you are editing a primary node

edit-primary

  • When you are editing a secondary node

edit

  • When you are creating a secondary node

create

Problems

@geo-team are there any cases where it may be necessary to change primary nodes from the UI that I am missing?

Potential use case:

  1. Have 2 nodes
  2. Edit Primary and uncheck primary box and save (now 2 secondaries with 0 primaries)
  3. Edit the Secondary and check primary box and save (now old secondary is primary and vis versa)

Is that even possible though or would Geo get confused in doing that via the UI?

Edited by Sunjung Park