gatsby-core-theme 44.4.57 → 44.4.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.ci.yml CHANGED
@@ -20,7 +20,7 @@ Theme Tests:
20
20
  - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "beta") && $PIPELINE == "automated"'
21
21
 
22
22
  Theme Publish:
23
- image: node:18.17.0
23
+ image: node:20.8.1
24
24
  stage: publish
25
25
  tags:
26
26
  - gatsby-runner-dev-docker
@@ -44,7 +44,7 @@ Theme Publish:
44
44
  - $PIPELINE != "content-trigger"
45
45
 
46
46
  Theme Beta Publish:
47
- image: node:18.17.0
47
+ image: node:20.8.1
48
48
  stage: publish-beta
49
49
  tags:
50
50
  - gatsby-runner-dev-docker
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [44.4.59](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.58...v44.4.59) (2025-10-01)
2
+
3
+
4
+ ### Config
5
+
6
+ * update node version on semantic release ([4803297](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4803297d6e6e032e732de2c4c7e95c51a3de890e))
7
+
8
+ ## [44.4.58](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.57...v44.4.58) (2025-09-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fix the issue ([8a70580](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8a70580120d69d82cdc8e023c0df5509849e3b21))
14
+ * fix toplist redirection on admin bar and comments form ([4c0f3b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4c0f3b568d3a57d7f17e3a1c1908f0e91f70e108))
15
+
16
+
17
+ * Merge branch 'comments-fix' into 'master' ([d12464e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d12464e81f04c0858f38a4876d9c5fd04afbc96a))
18
+
1
19
  ## [44.4.57](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.56...v44.4.57) (2025-09-11)
2
20
 
3
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.4.57",
3
+ "version": "44.4.59",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -11,7 +11,7 @@ const getDMSLink = (module) => {
11
11
 
12
12
  switch (module.name) {
13
13
  case "top_list":
14
- hercLink += `toplists/${module.items ? module.items[0].id : ""}/items`;
14
+ hercLink += `toplists/operators/${module.items ? module.items[0].id : ""}`;
15
15
  linkText = "Edit Toplist";
16
16
  break;
17
17
  case "bonus":
@@ -21,11 +21,11 @@ const LeaveCommentForm = ({
21
21
  buttonIcon = <FaArrowRight fontSize={20} title="Right-pointing Arrow Icon" />,
22
22
  }) => {
23
23
  const activeMarket = page?.market;
24
+ const isDev = process.env.NODE_ENV === 'development';
24
25
 
25
26
  const customSubmit = (form, resetForm) => {
26
27
  const formData = new FormData(form);
27
- const data = Object.fromEntries(formData.entries());
28
-
28
+ const data = Object.fromEntries(formData.entries());
29
29
  const cleanedData = isReply
30
30
  ? Object.entries(data).reduce((acc, [key, value]) => {
31
31
  if (key.startsWith('post_anonymously_')) acc.post_anonymously = value;
@@ -34,8 +34,10 @@ const LeaveCommentForm = ({
34
34
  return acc;
35
35
  }, {})
36
36
  : data;
37
-
38
- if(cleanedData?.["g-recaptcha-response"] === '' || !cleanedData?.tnc) return;
37
+
38
+
39
+ if((cleanedData?.["g-recaptcha-response"] === '' || !cleanedData?.tnc) && !isDev) return;
40
+
39
41
  if(parentCommentID) cleanedData.parent_id = parentCommentID;
40
42
 
41
43
  cleanedData.reference_id = page?.id;
@@ -7,12 +7,10 @@ import { VotesProvider } from '../../../context/VotesProvider';
7
7
  const Comments = ({ pageContext }) => {
8
8
  const { comments, authors } = pageContext;
9
9
 
10
- if (!comments) return null;
11
-
12
10
  return (
13
11
  <div>
14
12
  <LeaveCommentForm page={pageContext.page} />
15
- <VotesProvider>
13
+ {comments && <VotesProvider>
16
14
  {comments.map((comment) => (
17
15
  <CommentTree
18
16
  key={comment.comment_id}
@@ -23,6 +21,7 @@ const Comments = ({ pageContext }) => {
23
21
  />
24
22
  ))}
25
23
  </VotesProvider>
24
+ }
26
25
  </div>
27
26
  );
28
27
  };