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

Create a "Patch Notes" Page #125

Open
erin-fitzpatric opened this issue Sep 26, 2024 · 2 comments
Open

Create a "Patch Notes" Page #125

erin-fitzpatric opened this issue Sep 26, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@erin-fitzpatric
Copy link
Owner

erin-fitzpatric commented Sep 26, 2024

We want the ability to show patches notes on AoM.gg without navigating away to the official site. The official API makes this really easy!

Here are some example calls:

https://www.ageofempires.com/wp-json/wp/v2/posts
https://www.ageofempires.com/wp-json/wp/v2/posts?categories=36
https://www.ageofempires.com/wp-json/wp/v2/posts?categories=36&_fields=title,excerpt,date_gmt,link

Requirements:

  • Use a SSR (server side rendered) component that will fetch posts from the above urls. Use query params to filter and limit the response. Cache the response!
    image

  • Create a regex function to filter for 'patch' or 'update' from the slug "slug": "age-of-empires-iv-patch-11-1-1201",.

  • Write a function that will parse the html content that will be displayed on the page (aka - feed it into chatGPT and let it write a function for you)

  • Display the patches notes w/image banner in a similar way as https://www.ageofempires.com/?p=123658

  • Create a new link to Patch Notes in the navigation banner (desktop and mobile)

Edge case to consider after this is done:

  • PUP (public update preview) notes are posted on steam. Not sure we will be able to query for that...maybe there is a magical way. May want to consider how to manually drop these in or something.
@erin-fitzpatric erin-fitzpatric added enhancement New feature or request good first issue Good for newcomers labels Sep 26, 2024
@TheDarkSkyXD
Copy link
Contributor

Im currently working on this.

@erin-fitzpatric
Copy link
Owner Author

@darkskyfullofstars has not been working on this, it is back up for grabs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants