-
Notifications
You must be signed in to change notification settings - Fork 676
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
Fix Terminus Changelog #9351
Fix Terminus Changelog #9351
Conversation
Hi from your friendly robot! 🤖 I've applied Prettier formatting to the following files in faa5bf0:
The full diff is below. Please review the changes. Click to expanddiff --git a/src/components/releases.js b/src/components/releases.js
index 03e00b2a8..f973de642 100644
--- a/src/components/releases.js
+++ b/src/components/releases.js
@@ -1,41 +1,41 @@
-import React from "react"
-import { StaticQuery, graphql } from "gatsby"
-import { MDXRenderer } from "gatsby-plugin-mdx"
-import { MDXProvider } from "@mdx-js/react"
+import React from 'react';
+import { StaticQuery, graphql } from 'gatsby';
+import { MDXRenderer } from 'gatsby-plugin-mdx';
+import { MDXProvider } from '@mdx-js/react';
-import { headline1, headline2, headline3 } from "./releaseHeadlines"
+import { headline1, headline2, headline3 } from './releaseHeadlines';
const shortcodes = {
h1: headline1,
h2: headline2,
h3: headline3,
-}
+};
const Releases = ({ data }) => {
- console.log(data.allTerminusReleasesJson.edges)
+ console.log(data.allTerminusReleasesJson.edges);
- return(
+ return (
<>
- {data.allTerminusReleasesJson.edges.map((release, i) => {
- return (
- <div key={i}>
- <h3 className="toc-ignore" id={release.node.tag_name}>
- {release.node.tag_name}
- </h3>
- <MDXProvider components={shortcodes}>
- <MDXRenderer>
- {release.node.fields.markdownBody.childMdx.body}
- </MDXRenderer>
- </MDXProvider>
- <hr />
- </div>
- )
- })}
+ {data.allTerminusReleasesJson.edges.map((release, i) => {
+ return (
+ <div key={i}>
+ <h3 className="toc-ignore" id={release.node.tag_name}>
+ {release.node.tag_name}
+ </h3>
+ <MDXProvider components={shortcodes}>
+ <MDXRenderer>
+ {release.node.fields.markdownBody.childMdx.body}
+ </MDXRenderer>
+ </MDXProvider>
+ <hr />
+ </div>
+ );
+ })}
</>
);
};
-export default props => (
+export default (props) => (
<StaticQuery
query={graphql`
query {
@@ -60,6 +60,6 @@ export default props => (
}
}
`}
- render={data => <Releases data={data} {...props} />}
+ render={(data) => <Releases data={data} {...props} />}
/>
-)
+); |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
Hi from your friendly robot! 🤖 I've applied Prettier formatting to the following files in f4b7767:
The full diff is below. Please review the changes. Click to expanddiff --git a/src/components/terminusVersion.js b/src/components/terminusVersion.js
index 54febec8e..52910b240 100644
--- a/src/components/terminusVersion.js
+++ b/src/components/terminusVersion.js
@@ -1,28 +1,26 @@
-import React from "react"
-import { useStaticQuery, graphql } from "gatsby"
+import React from 'react';
+import { useStaticQuery, graphql } from 'gatsby';
function TerminusVersion({ text }) {
- const { allTerminusReleasesJson } = useStaticQuery(
- graphql`
- query {
- allTerminusReleasesJson(sort: { fields: [published_at], order: DESC }) {
- edges {
- node {
- tag_name
- }
+ const { allTerminusReleasesJson } = useStaticQuery(graphql`
+ query {
+ allTerminusReleasesJson(sort: { fields: [published_at], order: DESC }) {
+ edges {
+ node {
+ tag_name
}
}
}
- `
- )
+ }
+ `);
- const latestRelease = allTerminusReleasesJson.edges[0].node.tag_name
+ const latestRelease = allTerminusReleasesJson.edges[0].node.tag_name;
return (
<h2>
{text} {latestRelease}
</h2>
- )
+ );
}
-export default TerminusVersion
+export default TerminusVersion; |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
Hi from your friendly robot! 🤖 I've applied Prettier formatting to the following files in d5d22f2:
The full diff is below. Please review the changes. Click to expanddiff --git a/src/components/releases.js b/src/components/releases.js
index f818635d4..47afbf946 100644
--- a/src/components/releases.js
+++ b/src/components/releases.js
@@ -16,8 +16,12 @@ const Releases = ({ data }) => {
const oneYearAgo = subYears(new Date(), 1);
// Filter releases that are newer than one year
- const filteredReleases = data.allTerminusReleasesJson.edges.filter((release) =>
- isAfter(parseISO(release.node.fields.markdownBody.childMdx.body.published_at), oneYearAgo)
+ const filteredReleases = data.allTerminusReleasesJson.edges.filter(
+ (release) =>
+ isAfter(
+ parseISO(release.node.fields.markdownBody.childMdx.body.published_at),
+ oneYearAgo,
+ ),
);
return (
@@ -28,7 +32,9 @@ const Releases = ({ data }) => {
{release.node.tag_name}
</h3>
<MDXProvider components={shortcodes}>
- <MDXRenderer>{release.node.fields.markdownBody.childMdx.body}</MDXRenderer>
+ <MDXRenderer>
+ {release.node.fields.markdownBody.childMdx.body}
+ </MDXRenderer>
</MDXProvider>
<hr />
</div> |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
Hi from your friendly robot! 🤖 I've applied Prettier formatting to the following files in e07b24f:
The full diff is below. Please review the changes. Click to expanddiff --git a/src/components/releases.js b/src/components/releases.js
index d1d27d5e0..1341c545e 100644
--- a/src/components/releases.js
+++ b/src/components/releases.js
@@ -20,7 +20,7 @@ const Releases = ({ data }) => {
(release) => {
const publishedDate = release.node.published_at;
return publishedDate && isAfter(parseISO(publishedDate), oneYearAgo);
- }
+ },
);
return (
@@ -31,7 +31,9 @@ const Releases = ({ data }) => {
{release.node.tag_name}
</h3>
<MDXProvider components={shortcodes}>
- <MDXRenderer>{release.node.fields.markdownBody.childMdx.body}</MDXRenderer>
+ <MDXRenderer>
+ {release.node.fields.markdownBody.childMdx.body}
+ </MDXRenderer>
</MDXProvider>
<hr />
</div> |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
Hi from your friendly robot! 🤖 I've applied Prettier formatting to the following files in 45ede8d:
The full diff is below. Please review the changes. Click to expanddiff --git a/src/components/releases.js b/src/components/releases.js
index f5b857aec..e8d747472 100644
--- a/src/components/releases.js
+++ b/src/components/releases.js
@@ -20,7 +20,7 @@ const Releases = ({ data }) => {
(release) => {
const publishedDate = release.node.published_at;
return publishedDate && isAfter(parseISO(publishedDate), oneYearAgo);
- }
+ },
);
return (
@@ -32,7 +32,9 @@ const Releases = ({ data }) => {
{release.node.tag_name}
</h3>
<MDXProvider components={shortcodes}>
- <MDXRenderer>{release.node.fields.markdownBody.childMdx.body}</MDXRenderer>
+ <MDXRenderer>
+ {release.node.fields.markdownBody.childMdx.body}
+ </MDXRenderer>
</MDXProvider>
<hr />
</div> |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
…theon-systems/documentation into experimental-debug-terminus-releases
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
⚡ Deployed with Pantheon Decoupled This build was successfully deployed with Pantheon. You can track the build logs here. 👀 Preview: https://pr-9351-documentation.appa.pantheon.site |
Summary
Current Terminus Release, Changelog, and Updates - Fixes the issue that was breaking the terminus changelog
<Releases>
component. Turns out it was related to how we were filtering the releases in the GraphQL query. I've removed the filter and then re-added a new filter that filters releases older than a year.