keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Infinite loop of being able to create related auther / related post

Open svnoak opened this issue 2 years ago • 3 comments

  1. Set up Keystone according to the tutorial.
  2. Create a relationship between the user and the post
  3. When creating a user click on "Create related post"
  4. When creating a related post, click on "Create related Author"
  5. Repeat (at one point the site reloaded, but another time I opened about 30+ side menus )

Only being able to create a related entity one step down the way (ie not going any further / disabling the button after step 3)

image

svnoak avatar Feb 20 '23 08:02 svnoak

Is this actually a problem? I don't think the UX pattern is necessarily helpful, but, what kind of prevention mechanism would you expect for the DX? What if someone wanted to nest twice?

dcousens avatar Feb 20 '23 11:02 dcousens

I wouldn't say it's a breaking bug or anything close, but from a UX perspective, it can be confusing. Also nesting multiple times will create multiple entries, which will lead to an error when creating a user (say you create the same user twice), which also could feel confusing. Suggestion codewise would be to have a config line of "nesting" or something in the "ui" attributes, to prevent the behaviour, if the developer wishes. But I mainly wanted to point out potential user experience challenges with the design choice, so maybe it is not so much of a "bug" per se.

svnoak avatar Feb 20 '23 11:02 svnoak

Thanks for the issue @svnoak, I don't think is something needing a quick fix, but, having the issue will help ensure we don't miss the issue for discussion when we update to our new design system :yellow_heart:

dcousens avatar Feb 20 '23 11:02 dcousens