•  
     
    story #12447 Modal new document for empty/wiki/link
Summary
Empty
Modal new document for empty/wiki/link
Empty

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.

Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#12447
Marie Ange Garnier (marieange)
2019-01-28 11:58
2018-10-26 14:15
4239

References
Referencing story #12447

Git commit

tuleap/tuleap/stable

New modal state for empty d73417fab5
Item representation tells if the user can write the item 1d459f9942
Revert "Do not display [new document] if user cannot write" 6c8d063c54
Do not display [new document] if user cannot write ff5041aafb
Fix the unit tests of the docman 01d0e0d718
Do not serve document if docman is not activated in project 610d2219c2
Different folder empty states for readers and writers f76643b9f1
Refacto: extract addListeners in dedicated objects dad5fc9e4d
Introduce new route POST /api/docman_items for empty items ec54c6b11c
Do not include twice the modal in the same page 33942e112c
save modal should store empty items 9699b172f5
Gloss empty states in new docman bdfb0ca9ef
Do not refresh the whole folder after item creation 64f3bc6420
Display feedback if item is created 2c073643ac
Refactoring: extract small components 45337a51e2
New modal for link 76023ef961
New modal for wiki ef38d76954
Can now create a new document type wiki 56561cae43
Highlight just created item 5d0c7e1fd4
Fix alignment of icons f769d7cb25
Natural sort order for new items c0c63b33b4
Save modale should store links in database 8b33825c9a
Modal does not close itself after an error 13049082a6
User should not be able to create a wiki page when the Wiki service is disabled 796b8b65a8
Anonymous users can create a document if they are the rights 215b9c60f6
Wiki page creation is not displayed anymore if the Wiki service is disabled 00684bc1e8
Add the animation when an item is created bd05583790
Link creation must not rely on time() b6e7a9f3ac

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes