Cover image for page and collection to be seen on 'Pages and collections' overview page

Bug #1870444 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Cecilia Vela Gurovic

Bug Description

General availability
    • The cover image is only displayed to portfolio authors on the 'Pages and collections' overview page. In future, we can think about other screens to change to display search results etc. with these 'cards'.
    • Images can be added in all levels of Mahara: personal, group, institution, and site level. People who have access to the 'Pages and collections' screens in these levels can view the cover image.
    • When a portfolio is copied, the cover image is copied as well like artefacts on a page and tags.
    • The cover image can be re-used on multiple pages. Therefore, if it is removed from a page, it is not deleted from the 'Files' area.
    • If a cover image is uploaded from a device, it is placed into the folder 'cover images' in the 'Files' area.

Pages and collections overview page
    • The middle area of a page or collection 'card' that is currently reserved for the description can receive an image.
    • When a page or collection has a description and a portfolio author hovers over that portfolio 'card', an overlay appears that displays the description temporarily. This is similar to the overlay that we have on the default buttons on the dashboard page.
    • On mobile, the description area can be clicked to reveal the description.
    • Screen reader accessible text will be added as well and people navigating with their keyboard can access the description by navigating into the space.
    • The image does not extend to the title area or the bottom options bar.
    • The image description (if one is added to the image in Mahara) is used for the <alt> / <title> tag to make it accessible.

'Settings' screen of a page and 'Edit' screen of a collection
    • The 'Settings' screen of a page and the 'Edit' screen of a collection get another option to add a cover image.
    • On the page settings this will be placed in to the 'Advanced' panel.
    • A file selector and uploader allows the portfolio author to select an image from their already uploaded files or upload a new one from their device. Allowed image formats are jpg and png.
    • Since images can be very large, .jpg and .png are automatically reduced in size when used as cover image to reduce the amount of data that needs to be loaded.
    • Deal with square and rectangular images. Typically, the cards have a square area for the description. However, when in mobile view, they turn into rectangles.
    • Recommended dimensions are listed in a description field below the upload to guide portfolio authors.
    • The image can be replaced at any point in time.
    • The image can be removed from the page at any point in time. When this is done, it is not deleted from the file storage.
Export and import
    • HTML (and PDF in future): Cover images are ignored for the export as there is no card display. The image files themselves do come along if an entire account is exported and not only a particular portfolio.
    • Leap2A: The cover image is exported and displayed when imported.

This work is sponsored by the Center for Applied Linguistics.

Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/10858

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/10871

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/10874

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10871
Committed: https://git.mahara.org/mahara/mahara/commit/46924bae15e71ab410ff54a955ed4caf0cdab819
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 46924bae15e71ab410ff54a955ed4caf0cdab819
Author: Evonne <email address hidden>
Date: Wed Apr 8 16:27:44 2020 +1200

Bug 1870444: Cover images for portfolios style changes

Fixing up some css and classes.

behatnotneeded

Change-Id: I75946a358563a3b1a84b9f928cff4fe9ea1679bc

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10858
Committed: https://git.mahara.org/mahara/mahara/commit/a2f56dba7f81f4e7c350af2e0992a13478006173
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit a2f56dba7f81f4e7c350af2e0992a13478006173
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Mar 2 10:01:06 2020 +1300

Bug 1870444: Cover images for portfolios

- added cove mage field to view/collection settings
- it works for personal/group/institution/site portfolios
- creates the "Cover Images" folder if it doesn't exist to store the cover images
as default location. This is created when navgating to a view/collection settings section.
- there is an upgrade to add 'coverimage' column to view and
collection tables on the db.
- the cover image is displayed in the view/collection card
on pages and collections section
- copy views/collections should copy the cover image
- display the image in the card of pages and collections if it has one.
If there's no image it should display the desctiption or nothing if there's
no description. If it has cover image and a description, then it displays
the image and when hover over it will display the description.
On mobile it will display the description when touched

TODO
- accessibility
- importing views/collections should import the cover image

behatnotneeded
Change-Id: I72e305ba437ba20df23f8ede224d399eb97f02d1

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10874
Committed: https://git.mahara.org/mahara/mahara/commit/d8698a1485d2e46df6a94f3e1a9bc415a1bb26b1
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit d8698a1485d2e46df6a94f3e1a9bc415a1bb26b1
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Apr 9 16:12:42 2020 +1200

Bug 1870444: Cover images -leap2A export/import

- exports/imports a coverimage of a view/collection into the leap2A export

behatnotneeded

Change-Id: Idb79c2c340e12143c9da4f86d155b7221723ccc2

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "20.04_STABLE" branch: https://reviews.mahara.org/10899

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "20.04_STABLE" branch: https://reviews.mahara.org/10900

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "20.04_STABLE" branch: https://reviews.mahara.org/10901

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10901
Committed: https://git.mahara.org/mahara/mahara/commit/8fad619a4a594d6798df6519aa69968b6f1a2deb
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.04_STABLE

commit 8fad619a4a594d6798df6519aa69968b6f1a2deb
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Apr 9 16:12:42 2020 +1200

Bug 1870444: Cover images -leap2A export/import

- exports/imports a coverimage of a view/collection into the leap2A export

behatnotneeded

Change-Id: Idb79c2c340e12143c9da4f86d155b7221723ccc2

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10900
Committed: https://git.mahara.org/mahara/mahara/commit/519a466814f98632135904b12e1ac76780a15288
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.04_STABLE

commit 519a466814f98632135904b12e1ac76780a15288
Author: Evonne <email address hidden>
Date: Wed Apr 8 16:27:44 2020 +1200

Bug 1870444: Cover images for portfolios style changes

Fixing up some css and classes.

behatnotneeded

Change-Id: I75946a358563a3b1a84b9f928cff4fe9ea1679bc

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10899
Committed: https://git.mahara.org/mahara/mahara/commit/a31a6209a20cda6eb33ecbfb03789dca4657d99b
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.04_STABLE

commit a31a6209a20cda6eb33ecbfb03789dca4657d99b
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Mar 2 10:01:06 2020 +1300

Bug 1870444: Cover images for portfolios

- added cove mage field to view/collection settings
- it works for personal/group/institution/site portfolios
- creates the "Cover Images" folder if it doesn't exist to store the cover images
as default location. This is created when navgating to a view/collection settings section.
- there is an upgrade to add 'coverimage' column to view and
collection tables on the db.
- the cover image is displayed in the view/collection card
on pages and collections section
- copy views/collections should copy the cover image
- display the image in the card of pages and collections if it has one.
If there's no image it should display the desctiption or nothing if there's
no description. If it has cover image and a description, then it displays
the image and when hover over it will display the description.
On mobile it will display the description when touched

TODO
- accessibility
- importing views/collections should import the cover image

behatnotneeded
Change-Id: I72e305ba437ba20df23f8ede224d399eb97f02d1

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 20.10.0 → 20.04.0
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.