atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Making new resource in the UI should not always use name in subject

Open Polleps opened this issue 1 year ago • 2 comments

Problem:

After a change in how new resources are created in databrowser it always prefers using a name or shortname when it has one while generating a subject instead of using a random string. This makes sense in a lot of cases but not when the name is defaulted to something like 'Untiled Folder' or 'Untitled Document' because it results in ugly subjects that end in 'Untitled-Folder-[random string]' image

Possible Solutions:

  1. Add an option to useCreateAndNavigate to always generate random string
  2. Show name dialog when creating document or folder (Only fixes the problem for those two classes)
  3. Always use UUID's i.e. [driveSubject]/[UUID] - https://atomicdata.dev/51437179-c07c-4e6d-a94e-23cdae4d6f30

Polleps avatar Nov 27 '23 10:11 Polleps

Yeah I think the UUID strat is probably the way to go. Seems relatively easy to implement and prevents extremely long URLs.

#593

joepio avatar Nov 27 '23 11:11 joepio

A user asked this:

One bit I can't figure out is how to set the path when creating a new document in the UI. It always uses "Untitled Document" and appends a random string to make it unique.

joepio avatar Dec 08 '23 08:12 joepio