Skip to content

DataMapper: Document node is a duplicate of the header #3132

@igarashitm

Description

@igarashitm

Describe the Bug

Currently the document node is rendered as a root node of the tree, but it's basically a duplicate of the header. We should instead render from the root field in case the document is structured (i.e. schema is attached)

Source Body

Body is a root node where the header above also shows Body. We should instead show Cart as a root node

Image

Source Param

In this case since param name (=document name) and the root node are both named Account, it ends up showing Account 3 times

Image

Target Body

Not only Body is a duplicate, but it also duplicates the Attach/Detach schema buttons as well. We should show them only on the header. However once the root node is correctly shown, buttons would also go away.

Image

Steps to Reproduce the Bug or Issue

  1. Attach schema

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 0.30.0]

Metadata

Metadata

Assignees

Labels

DataMapperAll issues related to the DataMapperbugSomething isn't workinggood first issueGood for newcomersui/uxThis issue is about improving the UI / UX

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions