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

Branding fixes #2244

Merged
merged 5 commits into from
Jun 17, 2024
Merged

Branding fixes #2244

merged 5 commits into from
Jun 17, 2024

Conversation

laritakr
Copy link
Collaborator

Story

Fixes scientist-softserv/hykuup_knapsack#205

Expected Behavior Before Changes

Alt text did not work correctly for collection thumbnails and banner.
Default collection image did not get used... default work image was used instead.

Expected Behavior After Changes

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

Alt text once shows as title=xxxxxxx in html.
@laritakr laritakr added the patch-ver for release notes label Jun 14, 2024
Copy link

github-actions bot commented Jun 15, 2024

Test Results

    3 files  ±0      3 suites  ±0   16m 50s ⏱️ +23s
1 753 tests ±0  1 720 ✅  - 1  30 💤 ±0  3 ❌ +1 
1 772 runs  ±0  1 737 ✅  - 1  32 💤 ±0  3 ❌ +1 

For more details on these failures, see this check.

Results for commit f02b90b. ± Comparison against base commit 673ddeb.

This pull request removes 26 and adds 26 tests. Note that renamed tests count towards both.
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to destroy 52ecb378-e81a-4a92-9af0-1f1605d86ad0
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to edit 9d91a1aa-c283-474b-a58a-daaa84cab901
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to read 2b91353e-c268-412d-b81a-4ed6bce1d2e6
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to update d6e29257-93e2-482c-9446-271333b1ada9
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to destroy b84b1225-3d6b-4762-95a4-726abe7c0652
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to edit 68f5eaf9-1e54-40b2-ae20-7ec639ed1d49
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to read f64f011b-eb9f-43af-9abf-dc9612a2ad81
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to update 7188e78f-616b-468a-b16e-2942d2ae6bf6
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor Image permissions is expected not to be able to destroy 05139ed4-126e-41d3-be96-059ad59d8973
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor Image permissions is expected not to be able to edit 3e94eeb8-b9bc-4254-ab4d-e95fcd73c0a7
…
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to destroy 9a11f888-c31b-4436-8874-f22aa79b8915
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to edit 18822093-be6c-4be3-ac10-be187a891bcc
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to read ec670e28-b9db-4619-b81d-1ef5853c2745
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor FileSet permissions is expected not to be able to update 75c42d07-022d-46d7-960a-14a5bd574611
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to destroy c9295f89-ab98-4577-9813-8331a566ecfc
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to edit b809d107-6da3-4dc8-a34e-c6198a244e6f
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to read 53a03893-6b80-469a-a121-c4553a7dc77a
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor GenericWork permissions is expected not to be able to update d6838baf-7b5d-4f86-9332-c8d767cd3f21
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor Image permissions is expected not to be able to destroy 2529a111-b89d-44f2-9a6d-d40c7aa87342
spec.abilities.work_ability_spec ‑ Hyrax::Ability::WorkAbility when work depositor Image permissions is expected not to be able to edit 2859bcdf-f139-449f-af44-ead4a37d8757
…

♻️ This comment has been updated with latest results.

@ShanaLMoore
Copy link
Collaborator

spec/tasks/rake_spec.rb:96 is failing for me locally. I'll see if I can sort it out.

@laritakr
Copy link
Collaborator Author

spec/tasks/rake_spec.rb:96 is failing for me locally. I'll see if I can sort it out.

Yeah my attempted fix didn't fix. But it is still a random failure the majority of the time as is... Wondering if we should just comment those out?

@ShanaLMoore
Copy link
Collaborator

ShanaLMoore commented Jun 17, 2024

spec/tasks/rake_spec.rb:96 is failing for me locally. I'll see if I can sort it out.

Yeah my attempted fix didn't fix. But it is still a random failure the majority of the time as is... Wondering if we should just comment those out?

I reverted the attempted fix and it passed for me locally. I'll still merge it if it still fails on the CI. Perhaps we can comment them out but I'd want to dig into it a little more since I don't remember rake task specs being flaky before.

@laritakr
Copy link
Collaborator Author

The rake task has been flaky for me with almost every PR (it's a failure on main as well). It passes for me locally as well, so I don't know how to fix it.

@laritakr
Copy link
Collaborator Author

That large files job is also a flaky spec. :/

@ShanaLMoore ShanaLMoore merged commit 0c5793b into main Jun 17, 2024
7 of 9 checks passed
@ShanaLMoore ShanaLMoore deleted the branding-fixes branch June 17, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 CollectionResources x Thumbnails: Alt text doesn't work
2 participants