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

Dynamically display ignite release versions #135

Merged
merged 8 commits into from
Feb 28, 2024
Merged

Conversation

cdanwards
Copy link
Member

@cdanwards cdanwards commented Feb 26, 2024

This feature dynamically displays the latest Ignite release on the homepage. It fetches release info from GitHub API, showing the version and how many days ago it was released and falls back to a generic GitHub link to `/latest/ if unable to fetch.

This approach seemed simpler than trying to implement a GH Action or using a version badge for the same info, but if we're not happy to include an API call on this site let me know :)
Screenshot 2024-02-26 at 1 18 58 PM

Screenshot 2024-02-26 at 1 19 19 PM

I also included 2 small fixes I noticed while working on this.

src/pages/index.tsx Outdated Show resolved Hide resolved
@cdanwards cdanwards marked this pull request as ready for review February 26, 2024 18:33
Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

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

I have a small Ignite PR to test with this once it's through if you like, just LMK

Looks good to me but will defer to the other reviewers!

Copy link
Contributor

@lindboe lindboe left a comment

Choose a reason for hiding this comment

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

Looking good, just would remove Exp[ress]o, other than that all comments are just ideas to consider

src/components/LatestVersion/index.tsx Outdated Show resolved Hide resolved
src/components/LatestVersion/index.tsx Outdated Show resolved Hide resolved
src/pages/index.tsx Outdated Show resolved Hide resolved
@cdanwards cdanwards merged commit 5252fbb into main Feb 28, 2024
1 check passed
@cdanwards cdanwards deleted the ignite-release-versions branch February 28, 2024 13:18
cdanwards added a commit that referenced this pull request Feb 28, 2024
* Add LatestRelease component and update notificationSection styles

* Fix key warning in FreshRecipes component

* Fix typo in YAML heading

* Added comment

* Refactor recipe link key in FreshRecipes component

* Update LatestVersion component title

* Refactor LatestRelease component to use ReleaseRemark component

* Refactor releaseString logic in LatestVersion component
cdanwards added a commit that referenced this pull request Feb 28, 2024
* Add LatestRelease component and update notificationSection styles

* Fix key warning in FreshRecipes component

* Fix typo in YAML heading

* Added comment

* Refactor recipe link key in FreshRecipes component

* Update LatestVersion component title

* Refactor LatestRelease component to use ReleaseRemark component

* Refactor releaseString logic in LatestVersion component
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.

3 participants