Skip to content

Commit cab87c9

Browse files
committed
Package updates in preparation for team issues.
1 parent 9ab8adc commit cab87c9

File tree

16 files changed

+5337
-4288
lines changed

16 files changed

+5337
-4288
lines changed

.eslintrc.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ on:
1010

1111
# Allows you to trigger this workflow from another workflow
1212
workflow_call:
13-
14-
# Cron schedule, everyday at midnight
15-
schedule:
16-
- cron: '0 */6 * * *'
1713

14+
# Cron schedule, every 6 hours
15+
schedule:
16+
- cron: "0 */6 * * *"
1817

1918
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
2019
permissions:
@@ -37,7 +36,7 @@ jobs:
3736
- name: Setup Node
3837
uses: actions/setup-node@v3
3938
with:
40-
node-version: "20"
39+
node-version: "22"
4140
cache: ${{ steps.detect-package-manager.outputs.manager }}
4241
- name: Setup Pages
4342
uses: actions/configure-pages@v2
@@ -68,9 +67,9 @@ jobs:
6867
with:
6968
commit_message: update generated.json [skip actions]
7069
branch: deploy
71-
file_pattern: 'generated.json'
70+
file_pattern: "generated.json"
7271
skip_checkout: true
73-
push_options: '--force'
72+
push_options: "--force"
7473
- name: Upload artifact
7574
uses: actions/upload-pages-artifact@v3.0.1
7675
with:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: "20"
20+
node-version: "22"
2121
cache: ${{ steps.detect-package-manager.outputs.manager }}
2222
- name: Setup Pages
2323
uses: actions/configure-pages@v2

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run lint

components/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const Header = () => {
1414
width={144}
1515
height={32}
1616
alt="For Good First Issue logo"
17+
style={{ height: "auto" }}
1718
/>
1819
</Link>
1920
<Button

components/LanguageFilter.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@ export const LanguageFilter = ({ setSelectedLanguages, languageOptions }: Langua
1010
<>
1111
<div>
1212
<label className="label">Language</label>
13-
<Select isMulti closeMenuOnSelect={false} className="" onChange={(selectedOptions) => setSelectedLanguages(selectedOptions.map((option) => option.value))} options={languageOptions} classNamePrefix="select" />
13+
<Select
14+
instanceId="language-filter"
15+
isMulti
16+
closeMenuOnSelect={false}
17+
className=""
18+
onChange={(selectedOptions) =>
19+
setSelectedLanguages(selectedOptions.map((option) => option.value))
20+
}
21+
options={languageOptions}
22+
classNamePrefix="select"
23+
/>
1424
</div>
1525
</>
16-
1726
);
1827
};

components/SDGFilter.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useId } from "react";
12
import Select from "react-select";
23

34
type SDGFilterProps = {
@@ -6,11 +7,13 @@ type SDGFilterProps = {
67
};
78

89
export const SDGFilter = ({ setSelectedTopics, topicOptions }: SDGFilterProps) => {
10+
const instanceId = useId();
911
return (
1012
<>
1113
<div>
1214
<label className="label">Sustainable Development Goal (SDG)</label>
1315
<Select
16+
instanceId={instanceId}
1417
isMulti
1518
className=""
1619
options={topicOptions}

generate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Octokit } from "@octokit/core";
22
import { retry } from "@octokit/plugin-retry";
33
import { throttling } from "@octokit/plugin-throttling";
44
import { RequestOptions } from "@octokit/types";
5-
import { buildSchema, GraphQLSchema, parse, validate as validateGraphQL } from "graphql";
5+
import { buildSchema, parse, validate as validateGraphQL } from "graphql";
66
import dayjs from "dayjs";
77
import fs from "fs";
88
import millify from "millify";
@@ -11,7 +11,6 @@ import slugify from "slugify";
1111
import happycommits from "./happycommits.json";
1212
import {
1313
CountableTag as CountableTagModel,
14-
Issue as IssueModel,
1514
Repository as RepositoryModel,
1615
Tag as TagModel
1716
} from "./types";

next.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
21
/** @type {import('next').NextConfig} */
32
const nextConfig = {
43
reactStrictMode: true,
54
productionBrowserSourceMaps: true,
65
trailingSlash: true,
7-
output: "export"
6+
output: "export",
7+
images: {
8+
unoptimized: true,
9+
},
810
}
911

1012
module.exports = nextConfig

0 commit comments

Comments
 (0)