[MCL-10] Upload Created: 08/Dec/23  Updated: 02/Feb/24

Status: In Progress
Project: Magnolia Component Library
Component/s: Core Content
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Raymond Tran Assignee: Minh Vo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-12-08-15-17-15-368.png    
Issue Links:
Cloners
clones MCL-9 Download In Progress
Template:
Acceptance criteria:
Acceptance Criteria
[ ]* Component is called "Upload"
[ ]* Upload Button supports all OOTB Bootstrap style variants including Primary, Secondary, Success, Danger, Warning, Info, Light, Dark and Link.
[ ]* Shows animation when upload button is depressed
[ ]* Shows configurable title and caption
[ ]* Shows filename and file size from the uploaded file
[ ]* Button text changes to "Uploading..." and is disabled while the file is being uploaded
[ ]* Button text changes to "Uploaded" after the file has uploaded successfully
[ ]* Button text changes to "Upload failed" if the file upload has failed
[ ]* Shows an SVG icon corresponding to relevant uploaded file/mime type, including: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, JPEG, PNG, webm, webp, mp4 with alt text reflecting the file type
Documentation Acceptance Criteria
[ ]* Contains Title, Description and Examples
[ ]* Contains FTL and YAML code
Content Author Acceptance Criteria
[ ]* The button styles can be configured entirely within the dialog as per MCL-7
[ ]* Class and CSS can be overridden in the CMS
[ ]* Component can be added to any page template in Column area of a Row component only.
[ ]* The destination JCR workspace and folder can be configured
[ ]* Upload folder is mandatory
[ ]* Upload, Uploading and Uploaded Button labels can be configured
[ ]* The Title is configurable and reads "File Upload" by default
[ ]* The Caption is configurable and reads "Upload a file from your computer" by default
Accessibility Acceptance Criteria
[ ]* Buttons can be navigated through, selected and depressed using the keyboard.
[ ]* Button disabled/enabled state is reflected with ARIA attributes

 Description   

User Story:

As a content author,
I want to create an upload control
So that I can create a tool visitors can use to upload assets stored to the DAM, with the ability to customise the styling and labels.

Description:

Allows a content author to create a DAM upload control.


Generated at Mon Feb 12 04:48:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.