•  
     
    story #12450 see a preview of document
Summary
Empty
see a preview of document
Empty

live mockup here: https://s.codepen.io/enalean/debug/XPWvLg

For now we only add:

  • primary button:
    • Actions are the same as activity story #12444 Table : action on click
    • link: follow the link
    • file: direct download it
    • wiki: redirect to the wiki url
    • empty: no action
    • embbedded: document is displayed in a page
      • page is in Burning parrot
      • routing to the page is done by vue router
      • /!\ be careful with purification. The contents of the embedded file is HTML and needs to be escaped
  • display the document data (Title, description, ...) and its metadata. A new REST route is needed:
docman_items/:id {
id, title, description, type, uri, html_url, metadata ...
}
  • unlike mockup, "update", "delete" and dropdown buttons are not available in this step.
  • Preview only deals with embedded documents and image documents. All other documents are represented by an icon.

 

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
#12450
Marie Ange Garnier (marieange)
2019-02-26 16:50
2018-10-26 15:41
4091

References
Referencing story #12450

Git commit

tuleap/tuleap/stable

Fix broken REST test about docman item creation without all the permissions a2db3bb3c0
Basic pane pane for quick look af6e10a825
ItemsRepresentation should returns metadata 2afd8623b6
Add action buttons for file and a quick preview of the selected item 1bc498e940
Display basic document properties in quick look section 21523c7d57
File upload progress bar should be displayed properly 0d0579d03c
Fix the fake item creation when a new file is created via the modal 5e64923eaf
Add the folder action buttons for the quick look. 2d18a938c4
Display all metadata 504f0b154a
Add the actions buttons for link in the quick look 1f53cdadb2
preview should take 100% of the width on small screens 7e31564caa
Fix the item display when a document is created in a collapsed folder 69f660e011
Display preview of images in quick look section 3cee80213a
Add the action buttons for the wiki page. 953de1995b
Update the under construction modal with the new Document feature 75009f95df
Split mutations.js in a few modules afa21201b9
Display embedded file content in quick look section 15ead69e37
Fix the display of quick look button and the quick look display 398f60234f
Fix the display name when an item is too long 02ae908551
Add info in current folder dropdown 45fba3bcfa
Add info in item quicklook dropdown a2e18f96c0
Fix quick look display fb0857b8e0
"Last update" and "Owner" columns are no more displayed when the quick look is on ee21badc46
(re)Fix the display when an item is created d805f544d5
Quicklook glossification e160896b73
Fix the display of a file creation when the creation is not from DnD ef3007abfc
Fix the display of the progress bar when a file is created via the modal 16eb670fc3
Harmonize last update date and creation date in preview 8b52c0e47d
Add the file size in the preview when an item is a file 542b89fe84
Progress bar on closed folder when it has loading content 2c8536e604
task #12450: Fix text execution left border in executions list d62f6fc1d3

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
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