This story introduces the new document modal, it only deals with empty/wiki and link types:
- The modal has "standard fields": title + description
- We do not let users submit permissions yet, for now new documents will inherit from the parent folder's permissions.
- document metadata are available:
- if parent folder has predefined permissions they are displayed in modal
- we need a new REST route for metadata retrieval:
docman_items/:id/metadata [
{ name, type, values ...}
]
- We need a new REST route to create the new items:
PATCH docman_items/:id
Modal action is displayed only if user has permission to update folder content:
- If he's a mere mortal the "+ New document button" is not displayed
- The empty state is differerent
- Maybe the svg is different?
If there is an error (load metadata/item creation) then the error message is displayed on top of modal and scrollbar is reinitialized.