Skip to content

[bug] Indoor floorplan selection UI is inconsistent for new indoor locations #226

Description

@4f4d

Describe the bug
While testing openwisp-controller#1339, I found a separate issue that appears to be independent from the remove/re-add inline bug.

For a new indoor location, the Indoor coordinates UI behaves inconsistently:

  • Floorplan selection defaults to New
  • trying to switch it to Existing does not expose a clear usable existing-floorplan flow
  • the UI effectively remains on the New path, which makes the intended behavior unclear

I am opening this as a separate issue because it seems distinct from #1339.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to the device admin add form in the local django-loci test app
  2. In Geographic information, keep Location selection = New
  3. Change Type to Indoor
  4. Scroll down to the Indoor coordinates section
  5. Try changing Floorplan selection from New to Existing
  6. Observe that the UI does not expose a clear usable existing-floorplan flow and effectively remains on the New path

Expected behavior
I am not fully sure what the intended behavior should be here, so I am reporting this mainly as a reproducible UI issue and asking for clarification.

From a UI perspective, I would expect one of these to happen consistently:

  • if Existing is valid here, the UI should expose a usable existing-floorplan flow
  • if Existing is not valid when Location selection = New, the UI should make that explicit instead of presenting a confusing selector state

Screenshots
I am attaching a short video showing the behavior.

indoor_UI_bug.mp4

System Information:

  • OS: macOS 15.7.7
  • Python Version: Python 3.12.13
  • Django Version: Django 5.2.14
  • Browser and Browser Version (if applicable): Google Chrome 148.0.7778.179

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions