Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 CollectionResources x Thumbnails: Alt text doesn't work #205

Closed
26 tasks
Tracked by #238 ...
ShanaLMoore opened this issue Apr 26, 2024 · 11 comments · Fixed by samvera/hyku#2244
Closed
26 tasks
Tracked by #238 ...

🐛 CollectionResources x Thumbnails: Alt text doesn't work #205

ShanaLMoore opened this issue Apr 26, 2024 · 11 comments · Fixed by samvera/hyku#2244
Assignees
Labels
bug something isn't working high priority Hyku Prime

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Apr 26, 2024

Summary

Acceptance Criteria

  • A user should be able to upload a banner, logo, and thumbnail to a collection, from the collection edit page
  • the banner, logo and thumbnail should be able to support alt text, if set

Screenshots or Video

collections can no longer upload a thumbnail. After creating a collection, a user used to be able to upload a thumbnail on edit.

image

It should look like:

image

Testing Instructions

  • On DEMO, Login as admin
  • Create a New User Collection
  • After clicking save, the edit page should have a "Branding" tab. Click it, and notice the "Thumbnail" section at the bottom of the form
  • Upload an image and save. Note, Alt Text may look out of place - this is a known bug and considered a separate issue. Alt text is optional - enter it if you'd like.
  • Click Collections in the sidebar to view all the collections (index page)
  • The thumbnail should appear and match the file you just uploaded
  • If you entered alt text, you should see if when you inspect the thumbnail element of that page. ie: see eddie-baby-alt-text
image

Results checklist

(verifying both branding AND default thumbnails, since they interact)

  • Setting Branding
    • Images and text can be set and will appear on collection's branding tab
    • Images and text can be removed and disappear from collection's branding tab
    • Branding shows appropriately on collection's public show page
    • Branding reverts to standard when removed from collection's branding tab
    • Note that banner alt-text appears in title, as background images cannot support alt-text.
  • Setting Default thumbnails
    • Default thumbnails and alt text are saved and appear on Settings/Appearance default images tab
    • Default thumbnails and text can be removed and disappear from Settings/Appearance default images tab
    • Setting a default thumbnail or text reindexes all works &/or collections, and results in all collections or works showing new default thumbnails appropriately
    • Removing a collection's default thumbnail does not affect works
    • Removing a work's default thumbnail does not affect collections
  • Thumbnails show appropriately on all views:
    • catalog search results view
    • dashboard index views
    • collection public show
    • collection dashboard show
    • homepage featured collections

Notes

ref:

@ShanaLMoore ShanaLMoore added the bug something isn't working label Apr 26, 2024
@ShanaLMoore ShanaLMoore changed the title CollectionResources x Thumbnails 🐛 CollectionResources x Thumbnails Apr 26, 2024
@ShanaLMoore
Copy link
Contributor Author

@ShanaLMoore ShanaLMoore self-assigned this May 3, 2024
@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented May 6, 2024

We will implement this the way that collection logos and banners got implemented.

ref: samvera/hyrax@22f0d64#diff-69953ce87573380937a88812d601159110a97da5b1621ebc79b7460f0cbb3ae5

@ShanaLMoore
Copy link
Contributor Author

BLOCKED from QA until Shana updates testing instructions

@ShanaLMoore ShanaLMoore added the blocked other work must be completed first label May 23, 2024
@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented May 23, 2024

QA Results: Needs Rework ❌

Uploading branding images are not loading in the UI.

Example: https://demo.hyku-demo.notch8.cloud/dashboard/collections/5cd101a4-e698-4141-8c02-8976e14efe49?locale=en

Image Not Found error message. This works locally so I think it's a server issue. I tried adding a persistent volume in this PR

These two paths needs to be symlinked:

Image

Image

@ShanaLMoore ShanaLMoore added needs rework issue needs additional work and removed blocked other work must be completed first labels May 23, 2024
@ShanaLMoore
Copy link
Contributor Author

UPDATED: the latest deploy renders the upload, but the thumbnails still don't show

Image

Image

@ShanaLMoore
Copy link
Contributor Author

The issue seems to be whatever is responsible for indexing thumbnail_path_ss

staging data:

 "thumbnail_path_ss"=>"/app/samvera/branding/5cd101a4-e698-4141-8c02-8976e14efe49/thumbnail/eddie-baby.jpg",

this should remove app/samvera

@jillpe
Copy link

jillpe commented Jun 12, 2024

SoftServ QA: ❌ Needs Rework - saved alt text does not display in various pages

'Thumbnail' section is present in the branding tab ✅

Image

Collection Created

thumbnail displays but the alt text is not present in the dashboard collection page view, public collection show page view, or the catalog search view. The catalog search results thumbnail also overlaps text ❌

Image

Image

Image

@ShanaLMoore ShanaLMoore added the needs rework issue needs additional work label Jun 12, 2024
@ShanaLMoore ShanaLMoore removed their assignment Jun 12, 2024
@laritakr laritakr self-assigned this Jun 13, 2024
@ShanaLMoore ShanaLMoore changed the title 🐛 CollectionResources x Thumbnails 🐛 CollectionResources x Thumbnails: Alt text doesn't work Jun 13, 2024
@ShanaLMoore
Copy link
Contributor Author

Image

@laritakr laritakr removed the needs rework issue needs additional work label Jun 14, 2024
@jillpe
Copy link

jillpe commented Jun 17, 2024

Blocked until knapsack is updated

@ShanaLMoore ShanaLMoore reopened this Jun 17, 2024
ShanaLMoore added a commit that referenced this issue Jun 17, 2024
this pulls in Hyku bug fixes:

- collection branding/alt text: #205
- collection sharing tab: unable to add users/groups: scientist-softserv/palni_palci_knapsack#51
@ShanaLMoore ShanaLMoore removed the blocked other work must be completed first label Jun 18, 2024
@jillpe
Copy link

jillpe commented Jun 18, 2024

SoftServ QA: ✅

Image

Image

Image

@ShanaLMoore
Copy link
Contributor Author

issues noticed internally when QA-ing collection branding. client verification is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working high priority Hyku Prime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants