Skip to content

Commit 324611d

Browse files
committed
Merge branch 'dev' into pr/Anish-Gupta1/15511
2 parents 22dd16a + f028602 commit 324611d

File tree

1,284 files changed

+49912
-32955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,284 files changed

+49912
-32955
lines changed

.all-contributorsrc

Lines changed: 1412 additions & 4491 deletions
Large diffs are not rendered by default.

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME=insertValue
1515

1616
# Github token for read-only use with api functions
17-
# NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=insertValue
17+
# GITHUB_TOKEN_READ_ONLY=insertValue
1818

1919
# Etherscan API key (required for Etherscan API fetches)
2020
# ETHERSCAN_API_KEY=insertValue
@@ -31,7 +31,7 @@ NEXT_PUBLIC_MATOMO_URL=
3131
NEXT_PUBLIC_MATOMO_SITE_ID=
3232

3333
# Used to avoid loading Matomo in our preview deploys
34-
IS_PREVIEW_DEPLOY=false
34+
NEXT_PUBLIC_IS_PREVIEW_DEPLOY=false
3535

3636
# Build pages only for the specified langs. Leave it empty to build all the langs
3737
# e.g. `en,fr` will only build English and French pages

.eslintrc.json

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:@typescript-eslint/recommended",
5-
"next/core-web-vitals",
6-
"prettier",
7-
"plugin:storybook/recommended"
8-
],
2+
"extends": ["eslint:recommended", "next/core-web-vitals", "prettier"],
93
"env": {
10-
"es6": true
4+
"es6": true,
5+
"node": true,
6+
"browser": true
117
},
128
"plugins": ["simple-import-sort", "@typescript-eslint", "unused-imports"],
139
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": "latest",
12+
"sourceType": "module",
13+
"ecmaFeatures": {
14+
"jsx": true
15+
}
16+
},
1417
"rules": {
1518
"simple-import-sort/imports": [
1619
"error",
@@ -21,7 +24,7 @@
2124
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"
2225
],
2326
// Packages. `react` related packages come first.
24-
// Also, put `react-icons` in sorting order not with `react`
27+
// Also, put `react-*` in sorting order not with `react`
2528
["^react(?!-.)$", "^\\w", "^@\\w"],
2629
// From the `types` directory.
2730
["^@/lib/types", "^@/lib/interfaces"],
@@ -34,7 +37,7 @@
3437
// From the `constants` directory.
3538
["^@/lib/constants"],
3639
// `.storybook` directory and utils files`
37-
["^@/storybook","^@/storybook-utils"],
40+
["^@/storybook", "^@/storybook-utils"],
3841
// Parent imports. Put `..` last.
3942
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
4043
// Other relative imports. Put same-folder imports and `.` last.
@@ -48,13 +51,6 @@
4851
],
4952
"simple-import-sort/exports": "error",
5053
"no-unused-vars": "off",
51-
"@typescript-eslint/no-unused-vars": "off",
52-
"@typescript-eslint/no-explicit-any": [
53-
"error",
54-
{
55-
"fixToUnknown": true
56-
}
57-
],
5854
"unused-imports/no-unused-vars": [
5955
"error",
6056
{
@@ -63,6 +59,37 @@
6359
"varsIgnorePattern": "^_$"
6460
}
6561
],
66-
"unused-imports/no-unused-imports-ts": "warn"
67-
}
62+
"unused-imports/no-unused-imports": "warn"
63+
},
64+
"overrides": [
65+
{
66+
"files": ["**/*.{ts,tsx}"],
67+
"extends": ["plugin:@typescript-eslint/recommended"],
68+
"rules": {
69+
"@typescript-eslint/no-explicit-any": [
70+
"error",
71+
{
72+
"fixToUnknown": true
73+
}
74+
]
75+
}
76+
},
77+
{
78+
"files": ["**/*.stories.@(js|jsx|ts|tsx|mdx)"],
79+
"extends": ["plugin:storybook/recommended"]
80+
}
81+
],
82+
"ignorePatterns": [
83+
"node_modules/",
84+
".next/",
85+
"out/",
86+
"dist/",
87+
"build/",
88+
".vercel/",
89+
".netlify/",
90+
"coverage/",
91+
"storybook-static/",
92+
"**/*.d.ts",
93+
"src/intl/"
94+
]
6895
}

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies 📦":
1313
- package.json
1414
- yarn.lock
15+
- pnpm-lock.yaml
1516

1617
"config ⚙️":
1718
- i18n.config.json

.github/workflows/chromatic.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,8 @@ name: Chromatic Publish and Testing
66
# Event for the workflow
77
on:
88
pull_request:
9-
types:
10-
- opened
11-
- synchronize
12-
- ready_for_review
13-
paths:
14-
# Only run on file changes in any of these paths
15-
- "src/components/**/*"
16-
- "src/pages/**/*"
17-
- "src/layouts/**/*"
18-
- ".storybook/**/*"
19-
- "tailwind.config.ts"
20-
- "src/styles/**/*"
9+
branches: [master, staging, "test/**"]
10+
types: [opened, synchronize, ready_for_review]
2111

2212
# List of jobs
2313
jobs:
@@ -26,19 +16,35 @@ jobs:
2616
runs-on: ubuntu-latest
2717
# Job steps
2818
steps:
29-
# 👇 Version 2 of the action
3019
- name: Checkout repo
31-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
3221
with:
33-
fetch-depth: 0 # 👈 Required to retrieve git history
22+
fetch-depth: 0
23+
# Tells the checkout which commit hash to reference
24+
ref: ${{ github.event.pull_request.head.ref }}
25+
env:
26+
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
27+
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.ref }}
28+
CHROMATIC_SLUG: ${{ github.repository }}
29+
30+
- name: Setup pnpm
31+
uses: pnpm/action-setup@v2
32+
with:
33+
version: 10
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: 20
38+
cache: "pnpm"
39+
3440
- name: Install deps
35-
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
36-
run: yarn
41+
run: pnpm install
42+
3743
- name: Publish to Chromatic
38-
# 👇 Adds Chromatic as a step in the workflow
3944
uses: chromaui/action@v1
40-
# Options required for Chromatic's GitHub Action
4145
with:
4246
projectToken: fee8e66c9916
4347
# 👇 Only fail if Storybook contains stories that error
4448
exitZeroOnChanges: true
49+
onlyChanged: true # enables TurboSnap
50+
zip: true

.github/workflows/claude.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Claude PR Assistant
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
claude-code-action:
15+
if: |
16+
(
17+
github.event_name == 'issue_comment' &&
18+
contains(github.event.comment.body, '@claude') &&
19+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.comment.user.login)
20+
) ||
21+
(
22+
github.event_name == 'pull_request_review_comment' &&
23+
contains(github.event.comment.body, '@claude') &&
24+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.comment.user.login)
25+
) ||
26+
(
27+
github.event_name == 'pull_request_review' &&
28+
contains(github.event.review.body, '@claude') &&
29+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.review.user.login)
30+
) ||
31+
(
32+
github.event_name == 'issues' &&
33+
contains(github.event.issue.body, '@claude') &&
34+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.issue.user.login)
35+
)
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
pull-requests: read
40+
issues: read
41+
id-token: write
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 1
47+
48+
- name: Run Claude PR Action
49+
uses: anthropics/claude-code-action@beta
50+
with:
51+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
52+
timeout_minutes: "60"

.github/workflows/crowdin-ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,22 @@ jobs:
1818
- name: Check out code
1919
uses: actions/checkout@v3
2020

21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: 10
25+
2126
- name: Set up Node.js
2227
uses: actions/setup-node@v3
2328
with:
24-
node-version: 18
29+
node-version: 20
30+
cache: 'pnpm'
2531

2632
- name: Install dependencies
27-
run: yarn install
33+
run: pnpm install
2834

2935
- name: Install ts-node
30-
run: yarn global add ts-node
36+
run: pnpm add -g ts-node
3137

3238
- name: Set up git
3339
run: |

.github/workflows/generate-review-report.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ jobs:
1010
- name: Check out code
1111
uses: actions/checkout@v3
1212

13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v2
15+
with:
16+
version: 10
17+
1318
- name: Set up Node.js
1419
uses: actions/setup-node@v3
1520
with:
16-
node-version: 18
21+
node-version: 20
22+
cache: 'pnpm'
1723

1824
- name: Install dependencies
19-
run: yarn install
25+
run: pnpm install
2026

2127
- name: Install ts-node
22-
run: yarn global add ts-node
28+
run: pnpm add -g ts-node
2329

2430
- name: Run script
2531
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/reports/generateReviewReport.ts

.github/workflows/get-crowdin-contributors.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
- name: Check out code
1313
uses: actions/checkout@v3
1414

15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 10
19+
1520
- name: Set up Node.js
1621
uses: actions/setup-node@v3
1722
with:
18-
node-version: 18
23+
node-version: 20
24+
cache: 'pnpm'
1925

2026
- name: Install dependencies
21-
run: yarn install
27+
run: pnpm install
2228

2329
- name: Install ts-node
24-
run: yarn global add ts-node
30+
run: pnpm add -g ts-node
2531

2632
- name: Set up git
2733
run: |

.github/workflows/get-leaderboard-reports.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
- name: Check out code
1313
uses: actions/checkout@v3
1414

15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 10
19+
1520
- name: Set up Node.js
1621
uses: actions/setup-node@v3
1722
with:
18-
node-version: 18
23+
node-version: 20
24+
cache: 'pnpm'
1925

2026
- name: Install dependencies
21-
run: yarn install
27+
run: pnpm install
2228

2329
- name: Install ts-node
24-
run: yarn global add ts-node
30+
run: pnpm add -g ts-node
2531

2632
- name: Set up git
2733
run: |

0 commit comments

Comments
 (0)