atomic-server
atomic-server copied to clipboard
Making new resource in the UI should not always use name in subject
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]'
Possible Solutions:
- Add an option to
useCreateAndNavigateto always generate random string - Show name dialog when creating document or folder (Only fixes the problem for those two classes)
- Always use UUID's i.e.
[driveSubject]/[UUID]-https://atomicdata.dev/51437179-c07c-4e6d-a94e-23cdae4d6f30
Yeah I think the UUID strat is probably the way to go. Seems relatively easy to implement and prevents extremely long URLs.
#593
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.