Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Port/press release page #145

Merged
merged 20 commits into from
May 11, 2022
Merged

Port/press release page #145

merged 20 commits into from
May 11, 2022

Conversation

zlonko
Copy link
Contributor

@zlonko zlonko commented May 6, 2022

This closes #94. It brings over the press release page and accompanying markdown files.

Notes

  • Created PressReleasePost and PressReleaseListItem
  • Renamed the press-release directory as press for consistency with the "press" tag and to avoid array statement in getStaticProps.
  • Cleaned up class styling in the Blog and Press post and list items
  • Added max-h- in `_spacing.scss
  • Links within Blog and Press posts were not bolded as of this ticket

Testing

  • Navigate to /press-release
  • Check that links to press releases work as expected
  • Please test development and build

@zlonko zlonko added the team/content-platform Content Platform Team related tickets. label May 6, 2022
@zlonko zlonko added this to the AR - Sprint 3 milestone May 6, 2022
@zlonko zlonko self-assigned this May 6, 2022
@zlonko zlonko marked this pull request as ready for review May 6, 2022 22:13
@zlonko zlonko requested review from st0nebreaker and bretthayes May 9, 2022 14:22
Copy link
Contributor

@st0nebreaker st0nebreaker left a comment

Choose a reason for hiding this comment

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

Looks good! Just a few comments below

src/components/Blog/BlogListItem.tsx Outdated Show resolved Hide resolved
Comment on lines 7 to 12
import { LinkPost } from '../components/Blog/LinkPost'
import { PodcastListItem } from '../components/Blog/PodcastListItem'
import { PodcastPost } from '../components/Blog/PodcastPost'
import { PressReleaseListItem } from '../components/Blog/PressReleaseListItem'
import { PressReleasePost } from '../components/Blog/PressReleasePost'
import { ReleasePost } from '../components/Blog/ReleasePost'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the @component decorator be used to combine these imports?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was before we had aliases added to our tsconfig, but I agree! I think we can revise all of these under the '@components' alias 🤓

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I totally agree. I attempted to do this, and ran into an issue when incorporating the alias. The current state is here: 011165f. I spent some time examining this, but couldn't pin down what I missed. Here is what I noticed:

  1. Components don't appear to import when from '../components/Blog' is changed to @components
  2. PressReleaseListItem returns an export error when it is included in the group, although it appears to be exported in the proper places

I appreciate any guidance on what I may be missing here. I may have been looking at this for too long 😅

While doing this, I saw that we have two components named BlogListItem for distinct purposes. One is used as a preview for blogposts on /blog while the other is used to link users to resources from pages such as Code Insights and the Use Cases. To differentiate them, I renamed the latter BlogResourceItem throughout.

Copy link
Contributor

Choose a reason for hiding this comment

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

My hunch is that it's something fishy with the enums in posts.ts. I'll take a closer look tomorrow! Shouldn't be blocking to put this PR through for now though. Thanks for changing that dupe file name too!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, Becca. It looks like this was interfering with the build, so I have reverted the imports back to how they were to meet our tests. I will look into this more, too--happy to collaborate on figuring this one out! 550b560

Copy link
Contributor

Choose a reason for hiding this comment

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

I renamed the latter BlogResourceItem throughout.

Awesome!! Good eye on that and thanks for that @zlonko!!

It seems like it may be a config issue because I don't get linting errors when changing to @components, but the components aren't resolving when they're another level deep. We can look back into this later and merge for now.

src/pages/blog/[...slug].tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@bretthayes bretthayes left a comment

Choose a reason for hiding this comment

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

Awesome work @zlonko! Just a few questions/revisions:

src/components/Blog/BlogListItem.tsx Outdated Show resolved Hide resolved
src/components/Blog/BlogListItem.tsx Outdated Show resolved Hide resolved
src/components/Blog/BlogPost.tsx Outdated Show resolved Hide resolved
src/components/Blog/PressReleasePost.tsx Show resolved Hide resolved
Comment on lines 7 to 12
import { LinkPost } from '../components/Blog/LinkPost'
import { PodcastListItem } from '../components/Blog/PodcastListItem'
import { PodcastPost } from '../components/Blog/PodcastPost'
import { PressReleaseListItem } from '../components/Blog/PressReleaseListItem'
import { PressReleasePost } from '../components/Blog/PressReleasePost'
import { ReleasePost } from '../components/Blog/ReleasePost'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was before we had aliases added to our tsconfig, but I agree! I think we can revise all of these under the '@components' alias 🤓

src/pages/blog/[...slug].tsx Outdated Show resolved Hide resolved
src/pages/press-release/[...slug].tsx Outdated Show resolved Hide resolved
src/styles/components/blog/_BlogPost.scss Show resolved Hide resolved
@netlify
Copy link

netlify bot commented May 10, 2022

Deploy Preview for about-replatform ready!

Name Link
🔨 Latest commit 550b560
🔍 Latest deploy log https://app.netlify.com/sites/about-replatform/deploys/627b02035137420009ee3f7b
😎 Deploy Preview https://deploy-preview-145--about-replatform.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@st0nebreaker st0nebreaker self-requested a review May 10, 2022 22:59
@zlonko zlonko requested a review from bretthayes May 11, 2022 17:34
@bretthayes bretthayes merged commit 59ac9f7 into main May 11, 2022
@bretthayes bretthayes deleted the port/press-release-page branch May 11, 2022 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team/content-platform Content Platform Team related tickets.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Port over press release page
3 participants