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

Four Kitchens Release - Sprint 41 #1425

Merged
merged 11 commits into from
Jan 26, 2024
Merged

Four Kitchens Release - Sprint 41 #1425

merged 11 commits into from
Jan 26, 2024

Conversation

cienvaras
Copy link
Collaborator

@cienvaras cienvaras commented Dec 22, 2023

READY FOR REVIEW

Summary

  • SHS-5118: Implementation: Improve styling of the "Add to calendar" dropdown
  • SHS-5180: Regression: Link field should generate URL to file, not media entity
  • SHS-4998: Add hb-raised-cards--uniform-height as checkbox on collections
  • SHS-5178: Implementation: Update Ocean more link color
  • SHS-5179: Optimize mobile image sizes

Need Review By (Date)

01/15

Urgency

medium

Steps to Test

SHS-5118

  1. Visit a page like https://dlcl.stanford.edu/events/french-speaking-worlds-rejane-senac (local copy: https://dlcl.suhumsci.loc/events/french-speaking-worlds-rejane-senac)
  2. Verify that the theming adjustments match those in the Figma design.

SHS-5180

  1. Create a flexible page
  2. Add a postcard component
  3. In the the postcard link field, add a link to an existing media file
  4. Publish and save the new page
  5. Navigate to the new page
  6. Verify that the following roles can access the file:
    a. Anonymous
    b. Authenticated
    c. Contributor
    d. Author
    e. Site Manager

SHS-4998

  1. Create new Flexible Page
  2. Click on the Add Component button
  3. Add a Collection component
  4. Verify that clicking the Raised Cards checkbox causes the Uniform Height checkbox to appear, already enabled.
  5. Set the Items Per Row to 2
  6. Disable the Uniform Height checkbox
  7. Using the Add Component button in the Collection component, add 2 Postcard components
  8. Add a paragraph or two to the first component and add only one line to the second component
  9. Save the new page and navigate to it
  10. Verify that the postcards are different heights, but still have the styling from the hb-raised-cards class
  11. Edit the new page
  12. Click on the Edit button on the Collection component
  13. Enable the Uniform Height checkbox
  14. Save the page and navigate to it
  15. Verify that the postcards are now the same height and still have the styling from the hb-raised-cards class
  16. Check existing content with Collection components. Content with Raised Cards enabled should have Uniform Height enabled as well. The following were used to test during development:
  • West site
    1. Understanding Attitudes in the West (Raised Cards enabled)
    2. Student Profiles (Raised Cards disabled)
  • Planning site
    1. Department External Reviews (Raised Cards disabled)
    2. Events (Raised Cards enabled)

SHS-5178

  1. Set up local with archaeology and history sites, switched to HS Colorful theme, and using the Ocean color scheme.
  2. Observe the link contrast on More links with arrows and ensure they pass the color contrast tests:
    https://archaeology.suhumsci.loc/academics/field-experience
  3. Ensure that links and more links in "wells" (beige background areas) pass contrast tests:
    https://history.suhumsci.loc/people/caroline-winterer
  4. Ensure buttons with a filled background pass contrast tests (including on hover):
    https://archaeology.suhumsci.loc/events/distinguished-lecture-series/gathering-shadows-material-things
  5. Ensure buttons with a white background pass contrast tests (including on hover):
    See "SUNet Login" in the footer area on any page
  6. Ensure "reset" button passes contrast tests (including on hover):
    https://history.suhumsci.loc/events/upcoming-events
  7. Ensure Pager link color contrast passes contrast tests:
    https://history.suhumsci.loc/recent-news
  8. Ensure that date cards have proper contrast:
    https://history.suhumsci.loc/events/upcoming-events

SHS-5179

  1. Visit a page like: https://southasia.suhumsci.loc/
  2. Note that there is now a preset for the smallest width here where there was not before:
    https://southasia.suhumsci.loc/admin/config/media/image-styles/manage/postcard_vertical_linked_465px_
  3. Make sure that images with the right dimensions are being loaded when visiting a page with vertical linked postcards (e.g. Homepage).

Before:
Screenshot from 2024-01-06 13-55-04

PR Checklist

* fix(shs-5118): add to calendar theming

* fix(shs-5118): removing stray border

* fix(shs-5118): fixing theming for traditional version

* fix(shs-5118): a11y updates to addtocal button
@cienvaras cienvaras self-assigned this Dec 22, 2023
hectorlj and others added 6 commits January 10, 2024 14:49
…ons (#1429)

* feat(shs-4998): create uniform height checkbox field

* feat(shs-4998): create deploy hook to update existing hs_collection paragraphs

* feat(shs-4998): Update uniform height conditional field settings and visibility

* feat(shs-4998): add check to uniform height that both uniform height and raised cards is enabled
* fix(shs-5178): ocean theme contrast fixes

* fix(shs-5178): a few more contrast fixes

* fix(shs-5178): limiting changes to colorful theme

* chore(shs-5178): Update compiled css files

---------

Co-authored-by: Andrés Díaz Soto <[email protected]>
Co-authored-by: Andrés Díaz Soto <[email protected]>
@cienvaras cienvaras marked this pull request as ready for review January 12, 2024 22:53
@cienvaras cienvaras assigned joegl and pookmish and unassigned cienvaras Jan 12, 2024
@cienvaras cienvaras requested review from pookmish and joegl January 12, 2024 22:54
@@ -0,0 +1,29 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? i've never heard of a deploy.php file nor do I understand how the function is intended to be used. I don't find any documentation for deploy hooks.

If this is just a simple update hook, move it to an install or post_update file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pookmish Deploy hooks are part of drush and are executed after the configuration is imported. There's more information here:

We consider is the best way for cases like this, when the db updates depend on configuration that's exported in the same PR. However, if you consider that's better to use an update hook, please let us know and we can change it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like deploy hooks are only part of drush and not part of core. There is an issue in the queue to add them to core, but there's not a lot of traction on it. It seems really useful but I'm a little concerned it's only drush supported.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Joe. To add to that, we would have to modify the deployment process to add the drush command. Let's move it to an update/post_update hook.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joegl @pookmish Done, PR ready for review again. Thanks!

@cienvaras cienvaras requested a review from pookmish January 22, 2024 15:30
Copy link
Member

@pookmish pookmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to swap for a service.

*/
function hs_paragraph_types_update_10000() {
$config_directories = Settings::get('config_sync_directory');
$file_storage = new FileStorage($config_directories);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a service for this: config.storage

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pookmish Fixed.

@cienvaras cienvaras requested a review from pookmish January 24, 2024 02:15
Base automatically changed from 10.0.7-release to develop January 24, 2024 19:37
@cienvaras cienvaras changed the base branch from develop to 10.1.1-release January 24, 2024 20:59
@pookmish pookmish merged commit ab3bea5 into 10.1.1-release Jan 26, 2024
7 of 8 checks passed
@pookmish pookmish deleted the fk-stnfd-sprint-41 branch January 26, 2024 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants