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

YALB-1416: Bug: Empty Headings in HTML | YALB-1312: Bug: Style views Event Time Period radio buttons | YALB-1215: Dials: Banner heading levels #407

Merged
merged 16 commits into from
Sep 7, 2023

Conversation

joetower
Copy link
Contributor

@joetower joetower commented Aug 29, 2023

YALB-1416: Bug: Empty Headings in HTML | YALB-1312: Bug: Style views Event Time Period radio buttons | YALB-1215: Dials: Banner heading levels

Description of work

Functional testing steps:

Testing: YALB-1215: Dials: Banner heading levels

Screenshot-20230829164339-1438x1256

yalb-1215-grand-hero-h1.mp4

Screenshot-20230829164639-2068x1199


Testing: YALB-1416: Bug: Empty Headings in HTML

Screenshot-20230829165153-1989x1319

  • Edit the page and add a heading, save the page
  • View it again and confirm the heading renders as it should

Screenshot-20230829165404-1955x1276

  • You can test this by adding additional Views components, as you'd like

Testing: YALB-1312: Bug: Style views Event Time Period radio buttons

yalb-event-form-updates-be.mp4

And if you add a new Views Events block:

yalb-1416-event-form-updates-be.mp4

@joetower joetower changed the title Yalb 1416 empty headings - WIP | YALB-1312 | YALB- [WIP] YALB-1416: Bug: Empty Headings in HTML | YALB-1312: Bug: Style views Event Time Period radio buttons | YALB-1215: Dials: Banner heading levels Aug 29, 2023
@joetower joetower self-assigned this Aug 29, 2023
@joetower joetower changed the title [WIP] YALB-1416: Bug: Empty Headings in HTML | YALB-1312: Bug: Style views Event Time Period radio buttons | YALB-1215: Dials: Banner heading levels YALB-1416: Bug: Empty Headings in HTML | YALB-1312: Bug: Style views Event Time Period radio buttons | YALB-1215: Dials: Banner heading levels Aug 29, 2023
@github-actions
Copy link

Visit Site

Created multidev environment pr-407 for yalesites-platform.

Copy link
Contributor

@dblanken-yale dblanken-yale left a comment

Choose a reason for hiding this comment

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

This all looks so good. I did have one question about the events. I'm still seeing the radio button circle selectors on the events, but not in the other selectable radio button items. Should we hide them as well--they look hidden on the other radios on that configuration? If not, I think this is ready! If it is, feel free to re-request review and I'll be happy to.

Great work!

Screenshot 2023-08-30 at 11 17 19 AM

Copy link
Contributor

@codechefmarc codechefmarc left a comment

Choose a reason for hiding this comment

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

YALB-1416: Approved

YALB-1312: Approved, but wanted to find out if this was going to get an icon ahead of getting merged? Looks good to merge now and we can always add the icon later.

YALB-1215: I'm seeing a "None" option and I checked and there is a different way we're handling those dial fields. Mainly using the allowed_values_function and default_value_callback in the configs themselves. It's not something you can set in the Drupal UI, but in code. I can help if you'd like, or you can reference these guys (specifically the field_style_color on the callout component:

  • web/profiles/custom/yalesites_profile/modules/custom/ys_themes/config/install/ys_themes.component_overrides.yml
  • web/profiles/custom/yalesites_profile/config/sync/field.field.block_content.callout.field_style_color.yml
  • web/profiles/custom/yalesites_profile/config/sync/field.storage.block_content.field_style_color.yml

@joetower
Copy link
Contributor Author

@dblanken-yale Those radios for "Event Time Period" should look like the other Radios in the Views Basic form.

Screenshot-20230830161538-1264x1162


@codechefmarc I tried rebuilding what we were working on - moving the field_heading_level allowed values to our component_overrides and it didn't work. If you'd like to look at it in this branch, awesome, otherwise we could create a follow up ticket. What do you think?

@joetower
Copy link
Contributor Author

Well, once it finishes building. I hit comment too soon 😆

@nJim
Copy link
Contributor

nJim commented Aug 31, 2023

YALB-1215: I'm seeing a "None" option and I checked
@codechefmarc @joetower I have a ticket this sprint to address this. If you like, feel free to make the field required and set a default value in the field UI. I don't know if this will be the final fix, but it cleans up any confusion right now.

@joetower
Copy link
Contributor Author

@codechefmarc This is ready for another look, please.

  • For YALB-1215: I made the field_heading_level required for both banner types 👍
  • For YALB-1312: I added icons for the Event Time Period
    • I added them in the way we discussed on the Footer Menu Block ticket. I noticed the other form inputs in this Views-Basic aren't using that same pattern.
    • pattern example:
         'future' => $this->t('Future Events' . '<img src="/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/assets/icons/event-time-future.svg" alt="Future Events icon showing a calendar with a future-pointing arrow to the right.">'),```
    
    
  • Should we create a tech debt ticket to change those, or no?

If you add a new Views -> Event component you should see:

yalb-1416-event-period-icons.mp4

@codechefmarc
Copy link
Contributor

@joetower - yup, that will work, but, in researching yesterday I found a better way to do this that will be easier for translators in that the image isn't inside the translated text:

'basic' => $this->t('Basic') . '<img src="/profiles/custom/yalesites_profile/modules/custom/ys_core/images/preview-icons/footer-basic.svg" alt="Basic footer icon showing a small Yale logo, and gray placeholders for copyright and social media icons.">',

And yes, I really like this idea much better than doing it in a background image, so we should create a tech debt ticket to change out all of them - it seemed it was much easier for you to style as well.

Copy link
Contributor

@codechefmarc codechefmarc left a comment

Choose a reason for hiding this comment

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

Approved for the work listed here. However, I mentioned in Slack that I noticed the main nav isn’t rendering correctly on that multidev. I think that is related to work just merged in for the first level links as headings?
Capture-2023-09-06-111822

@dblanken-yale
Copy link
Contributor

@codechefmarc I tested this on my PR and it's due to atomic's changes not being in release versions yet. If you make a branch mirroring this one from develop and rebuild, it shows fine. No worries there.

@joetower joetower merged commit 449028b into develop Sep 7, 2023
3 checks passed
@joetower joetower deleted the yalb-1416-empty-headings branch September 7, 2023 21:27
@nJim nJim mentioned this pull request Sep 12, 2023
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.

4 participants