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

STAN-288: Create Associates microservice for StoryBlocks #709

Merged
merged 12 commits into from
Sep 28, 2023
Merged

Conversation

moisesnarvaez
Copy link
Contributor

@moisesnarvaez moisesnarvaez commented Sep 12, 2023

READY FOR REVIEW

Summary

Steps followed to complete the requirement requested:

Review By (Date)

  • When possible

Review Tasks

Setup tasks and/or behavior to test

  1. Navigate to https://affiliates--stanford-alumni.netlify.app/stanford-associates/directory/
  2. Verify the functionality:
    2.1. List associates in alphabetical order, showing the years on each one.
    2.2. Tab navigation
    2.3. Search by name
    2.4. Filter only new members
  3. Review code

Associated Issues and/or People

Steps to be Done in the SotyBlocks Prod Account

Blocks

  • Create a new Block Group: "Associates"
  • Create new Blocks inside:
    • associatesDirectory:
      • Type: Nesteable Block
    • associatesDirectroryPage:
      • Type: Content type Block
      • Elements:
        • title (text)
        • intro (rich text)
        • component
          • display name: associatesDirectory
          • Allow only: associatesDirectory

Content Page (suggested)

  • Create new Content:
    Type: Story
    Name: Directory
    Parent folder: "Stanford Associates"
    Content type: Associates Directory Page
    Prestet: none
  • For the new content Story, using the UI editor:

@sherakama
Copy link
Member

@moisesnarvaez I left a few preliminary comments for you

When this is ready for review please tag myself (@sherakama) and (@yvonnetangsu) as reviewers and mark this as ready for review.

@moisesnarvaez moisesnarvaez changed the title WIP - Affiliates Directory STAN-288 - Create Associates microservice for StoryBlocks Sep 17, 2023
@moisesnarvaez
Copy link
Contributor Author

moisesnarvaez commented Sep 17, 2023

Thanks for the early review, I implemented all the suggestions.

The PR is now ready for review.

@sherakama @yvonnetangsu 🙏

@moisesnarvaez moisesnarvaez marked this pull request as ready for review September 17, 2023 21:16
@sherakama
Copy link
Member

@moisesnarvaez I think you're missing the masthead (The top bar with logo/nav/search) on the directory page. Can you add it in?

@yvonnetangsu yvonnetangsu requested review from rebeccahongsf and removed request for yvonnetangsu September 19, 2023 18:00
@yvonnetangsu
Copy link
Member

@sherakama As discussed, I'm asking for @rebeccahongsf 's help to review this instead of myself, since she worked on the original widget and is more familiar with the functionality 😄 Thank you @rebeccahongsf in advance 😂

@sherakama
Copy link
Member

@moisesnarvaez sorry for the slow review but I finally got through it. This is looking and working great. I added a few comments to this PR. Overall, just some cleanup and perhaps a little error handling. Thank you for creating the API layer for fetching contentful data.

  1. Can we remove the Legacy Code?
  2. Do you want to add a little error handling for when the contentful fetches fail?
  3. I've added the new environment variables to vault. There is a GH suggestion for you to approve in a comment.
  4. Add the Masthead to the page (in Storyblok)

@moisesnarvaez
Copy link
Contributor Author

moisesnarvaez commented Sep 21, 2023

@sherakama thanks for your review! I implemented the 1-3 requested changes.

About the 4. Can you please guide me? I added the component based on the other page, what else do I need to do to display the header?
image

@yvonnetangsu
Copy link
Member

@moisesnarvaez I found a small bug (?) that's pretty strange. If I tab over to eg, "C-D" and hit the spacebar, it takes me half way down the list of names instead of staying at the top. Strangely if I hit the enter key, it works as expected - it's only the spacebar that's problematic 🤔

I'm on Mac Ventura Chrome 116.

cc @sherakama @rebeccahongsf

@moisesnarvaez
Copy link
Contributor Author

moisesnarvaez commented Sep 22, 2023

@yvonnetangsu Can you please elaborate on what the expected behavior is?

On other pages (like this Pull Request page for example), it is the same:

  • enter acts like a click
  • spacebar acts like a scroll (going to the next page)

@rebeccahongsf
Copy link
Contributor

That's a great catch @yvonnetangsu ! I was able to reproduce the issue on Google Chrome as well.

The keyboard accessibility differs from the prod Associates site. On production, the user is able to switch between tabs with the arrow keys. 🤔

@moisesnarvaez would you be able to update the keyboard accessibility interaction to match production?

@moisesnarvaez
Copy link
Contributor Author

@rebeccahongsf I see, thanks for clarifying, working on it

Copy link
Contributor

@rebeccahongsf rebeccahongsf left a comment

Choose a reason for hiding this comment

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

Thank you @moisesnarvaez for your work on this! I had a few requests regarding the user experience:

  • Update Heading to h1 and add styles to match other h1s across the site

  • Add spacing to the top and bottom of the main content

  • Move the Directory component into the main container

  • Adjust tab styling for mobile

  • Would you be able to add the Back to top link to each section so that users can be brought back to the top of the widget? You can view it on production by scrolling towards the bottom of section A (or end of the page)
    image

Other than those items, everything else is looking good to me. I'll do another pass once these changes have been implemented. Please do not hesitate to tag me if additional information is needed or if you have any questions. Thanks again! 😃

@moisesnarvaez
Copy link
Contributor Author

@rebeccahongsf I implemented all of the requested changes, along with other minor refactoring and CSS adjustments.

Copy link
Contributor

@rebeccahongsf rebeccahongsf left a comment

Choose a reason for hiding this comment

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

Thank you for the super quick changes, @moisesnarvaez! 🥳
A few more design and accessibility tweaks and I think we should be all set!

  • Update Container wrapping the Directory component to use width="full"

  • Adjust Associates wrapper from <div> to <li> for accessibility

  • Adjust Associates List wrapper from <div> to <ul> for accessibility

  • Add styles su-p-0 su-list-none to Results list to remove additional spacing and possible list styles

@moisesnarvaez
Copy link
Contributor Author

moisesnarvaez commented Sep 28, 2023

@rebeccahongsf Thanks for your kind reviews =). I just pushed the adjustments.

One question, once this PR is merged, who will take care of the required Storyblock changes in Prod?

Copy link
Contributor

@rebeccahongsf rebeccahongsf left a comment

Choose a reason for hiding this comment

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

Thanks again @moisesnarvaez for implementing the requested changes. The associates page looks great to me! 🎉

As for your question:

One question, once this PR is merged, who will take care of the required Storyblock changes in Prod?

Either @sherakama or I could move the storyblok blocks to production and setup the page. I defer to Shea for final confirmation though 😄

@sherakama
Copy link
Member

@moisesnarvaez I'll add you to the production instance if you can confirm that the changes are all new items and we aren't having to change or migrate anything existing. Once you've completed the changes in storyblok we will merge the code.

@moisesnarvaez
Copy link
Contributor Author

That's correct @sherakama, the items are new.

I have documented them in the description of this PR, in the section called:
"Steps to be Done in the SotyBlocks Prod Account"

@sherakama
Copy link
Member

@moisesnarvaez

I have added you to two new Storyblok spaces for the Prod and Dev instances. Please make the appropriate changes to each Storyblok environment. We will first roll the code through dev to validate deployment went well, and then we will push the code to production. Let me know when you have completed the changes.

@moisesnarvaez
Copy link
Contributor Author

@sherakama thanks, all configuration has been replicated.

Dev: https://app.storyblok.com/#/me/spaces/118608/stories/0/0/378510601
Prod: https://app.storyblok.com/#/me/spaces/103430/stories/0/0/378511153

PD: I'm assuming the parent folder for the Content page is "Stanford Associates".

@sherakama
Copy link
Member

Great. Let's start with Dev.

@sherakama sherakama changed the title STAN-288 - Create Associates microservice for StoryBlocks STAN-288: Create Associates microservice for StoryBlocks Sep 28, 2023
@sherakama sherakama merged commit 0038807 into dev Sep 28, 2023
5 of 6 checks passed
@sherakama sherakama deleted the affiliates branch September 28, 2023 23:57
@sherakama sherakama restored the affiliates branch September 28, 2023 23:57
@sherakama
Copy link
Member

Dev looks good in the Storyblok editor. I'll publish it and validate tomorrow that the build works and then we can schedule a release.

@sherakama
Copy link
Member

@moisesnarvaez & @William-Misiaszek Is there a desired release date for production on this functionality?

@willyumfrancis
Copy link
Contributor

@sherakama Ideally we release it October 11th in Production (but not published in StoryBlok).

Cc: @moisesnarvaez

@sherakama
Copy link
Member

Ok thanks. I'll put a release event on the calendar for the 11th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants