Skip to content

Commit 95d3b4f

Browse files
Merge branch 'main' into rvinnakota/bulk-download
2 parents 50a0569 + ba49650 commit 95d3b4f

File tree

1,168 files changed

+29102
-25999
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,168 files changed

+29102
-25999
lines changed

.eslintrc.cjs

+37-50
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
// This is dangerous as it hides accidentally undefined variables.
44
// We blacklist the globals that we deem potentially confusing.
55
// To use them, explicitly reference them, e.g. `window.name` or `window.status`.
6+
// eslint-disable-next-line @typescript-eslint/no-require-imports
67
const restrictedGlobals = require('confusing-browser-globals')
78

89
module.exports = {
910
extends: [
10-
// 'eslint:recommended',
11-
// 'plugin:@typescript-eslint/recommended',
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
1213
'plugin:tailwindcss/recommended',
1314
'plugin:@tanstack/eslint-plugin-query/recommended',
1415
'plugin:react/recommended',
@@ -17,7 +18,6 @@ module.exports = {
1718
'plugin:import/recommended',
1819
'prettier',
1920
'plugin:storybook/recommended',
20-
'plugin:tailwindcss/recommended',
2121
],
2222
plugins: ['@vitest', 'jsx-a11y', 'import'],
2323
globals: {
@@ -117,17 +117,6 @@ module.exports = {
117117
},
118118
],
119119
'no-unused-vars': 'off',
120-
'@typescript-eslint/no-unused-vars': [
121-
'warn',
122-
{
123-
args: 'none',
124-
ignoreRestSiblings: true,
125-
argsIgnorePattern: '^_',
126-
caughtErrorsIgnorePattern: '^_',
127-
destructuredArrayIgnorePattern: '^_',
128-
varsIgnorePattern: '^_',
129-
},
130-
],
131120
'no-useless-constructor': 'off',
132121
'@typescript-eslint/no-useless-constructor': 'warn',
133122
'@typescript-eslint/no-explicit-any': 'off',
@@ -289,6 +278,20 @@ module.exports = {
289278
'react-hooks/rules-of-hooks': 'off',
290279
},
291280
},
281+
// Custom casing rules
282+
{
283+
files: ['src/**/*.{js,jsx,ts,tsx}'],
284+
rules: {
285+
'no-restricted-syntax': [
286+
'error',
287+
{
288+
selector:
289+
'Literal[value=/\\bGithub\\b|\\bGitlab\\b|\\bBitBucket\\b/], JSXText[value=/\\bGithub\\b|\\bGitlab\\b|\\bBitBucket\\b/]',
290+
message: 'Use correct casing (GitHub, GitLab, Bitbucket)',
291+
},
292+
],
293+
},
294+
},
292295
],
293296
env: {
294297
browser: true,
@@ -379,42 +382,26 @@ module.exports = {
379382
],
380383
// Everything below, copied from https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js#L97
381384
// http://eslint.org/docs/rules/
382-
// modified recommended rules
383-
'no-cond-assign': ['warn', 'except-parens'],
384-
'no-const-assign': 'warn',
385-
'no-control-regex': 'warn',
386-
'no-delete-var': 'warn',
387-
'no-dupe-args': 'warn',
388-
'no-dupe-class-members': 'warn',
389-
'no-dupe-keys': 'warn',
390-
'no-duplicate-case': 'warn',
391-
'no-empty-character-class': 'warn',
392-
'no-empty-pattern': 'warn',
393-
'no-ex-assign': 'warn',
394-
'no-fallthrough': 'warn',
395-
'no-func-assign': 'warn',
396-
'no-invalid-regexp': 'warn',
397-
'no-global-assign': 'warn',
398-
'no-unsafe-negation': 'warn',
399-
'no-new-symbol': 'warn',
400-
'no-obj-calls': 'warn',
401-
'no-octal': 'warn',
402-
'no-redeclare': 'warn',
403-
'no-regex-spaces': 'warn',
404-
'no-self-assign': 'warn',
405-
'no-shadow-restricted-names': 'warn',
406-
'no-sparse-arrays': 'warn',
407-
'no-this-before-super': 'warn',
408-
'no-undef': 'error',
409-
'no-unreachable': 'warn',
410-
'no-unused-labels': 'warn',
411-
'no-unused-vars': ['warn', { args: 'none', ignoreRestSiblings: true }],
412-
'no-useless-escape': 'warn',
413-
'no-with': 'warn',
414-
'require-yield': 'warn',
415-
'use-isnan': 'warn',
416-
'valid-typeof': 'warn',
417-
'getter-return': 'warn',
385+
'no-unused-vars': [
386+
'error',
387+
{
388+
argsIgnorePattern: '^_',
389+
caughtErrorsIgnorePattern: '^_',
390+
destructuredArrayIgnorePattern: '^_',
391+
varsIgnorePattern: '^_',
392+
ignoreRestSiblings: true,
393+
},
394+
],
395+
'@typescript-eslint/no-unused-vars': [
396+
'error',
397+
{
398+
argsIgnorePattern: '^_',
399+
caughtErrorsIgnorePattern: '^_',
400+
destructuredArrayIgnorePattern: '^_',
401+
varsIgnorePattern: '^_',
402+
ignoreRestSiblings: true,
403+
},
404+
],
418405

419406
// custom applied base rules
420407
'array-callback-return': 'warn',

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ e75fbde94a6ef3d80c5696255b742e9264ec52cf
99
# Add tailwind and tanstack query lints + lint fixes
1010

1111
ab88e32678c4a1a054a8c525a9f346d5a984e1c9
12+
13+
# Fixing lint errors - https://github.com/codecov/gazebo/pull/3524
14+
0899f21d7fe6eae4248cce5fdd65c7043f4e247f

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.15.1
1+
v22.11.0

.storybook/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import '../src/globals.css'
33

4-
const Layout = ({ children }) => {
4+
const Layout: React.FC<React.PropsWithChildren> = ({ children }) => {
55
return <div className="text-sm text-ds-primary-base">{children}</div>
66
}
77

.storybook/preview.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export const parameters = {
1111

1212
const queryClient = new QueryClient()
1313

14-
const localStorageResetDecorator = (Story) => {
14+
const localStorageResetDecorator = (Story: React.FC) => {
1515
window.localStorage.clear()
1616
return <Story />
1717
}
1818

1919
export const decorators = [
2020
localStorageResetDecorator,
21-
(Story) => (
21+
(Story: React.FC) => (
2222
<QueryClientProvider client={queryClient}>
2323
<Layout>
2424
<Story />

.yarn/releases/yarn-4.5.0.cjs

-925
This file was deleted.

.yarn/releases/yarn-4.7.0.cjs

+935
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enableImmutableInstalls: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.5.0.cjs
7+
yarnPath: .yarn/releases/yarn-4.7.0.cjs

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.12.2
1+
25.3.3

codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ github_checks:
1818
annotations: false
1919

2020
comment:
21-
layout: 'reach, diff, flags, files, components, footer'
21+
layout: 'diff, flags, files, components, footer'
2222
behavior: default
2323
require_changes: false
2424
require_base: false

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN gpg --verify linux/codecov.SHA256SUM.sig linux/codecov.SHA256SUM
3535

3636
COPY docker/index.html /tmp/uploader
3737

38-
FROM node:20-alpine3.17 as build
38+
FROM node:22-alpine3.20 as build
3939
ARG REACT_APP_ENV_ARG
4040
ARG REACT_APP_CODECOV_VERSION
4141
ENV REACT_APP_ENV=$REACT_APP_ENV_ARG

package.json

+39-37
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dev": "yarn start",
77
"start": "vite --host",
88
"build": "tsc -b && vite build",
9+
"preview": "vite preview",
910
"test": "vitest run --config ./vitest.config.mjs",
1011
"test:changed": "vitest run --changed --config ./vitest.config.mjs",
1112
"test:watch": "vitest watch --changed --config ./vitest.config.mjs",
@@ -31,6 +32,7 @@
3132
},
3233
"dependencies": {
3334
"@amplitude/analytics-browser": "^2.11.9",
35+
"@amplitude/analytics-types": "^2.8.4",
3436
"@hookform/resolvers": "^2.8.5",
3537
"@radix-ui/react-accordion": "^1.1.2",
3638
"@radix-ui/react-checkbox": "^1.1.1",
@@ -40,13 +42,13 @@
4042
"@radix-ui/react-popover": "^1.0.6",
4143
"@radix-ui/react-radio-group": "^1.1.3",
4244
"@radix-ui/react-tooltip": "^1.1.2",
43-
"@sentry/react": "^8.35.0",
44-
"@stripe/react-stripe-js": "^2.7.1",
45-
"@stripe/stripe-js": "^3.4.0",
45+
"@sentry/react": "^9.3.0",
46+
"@stripe/react-stripe-js": "^3.1.1",
47+
"@stripe/stripe-js": "^5.6.0",
4648
"@tanstack/react-query": "^4.29.5",
4749
"@tanstack/react-queryV5": "npm:@tanstack/react-query@^5.59.15",
4850
"@tanstack/react-table": "^8.9.1",
49-
"@tanstack/react-virtual": "^3.8.1",
51+
"@tanstack/react-virtual": "^3.13.0",
5052
"classnames": "^2.3.1",
5153
"copy-to-clipboard": "^3.3.3",
5254
"cva": "npm:class-variance-authority@^0.7.0",
@@ -83,7 +85,6 @@
8385
"react-router-dom-v5-compat": "^6.15.0",
8486
"react-use": "^17.2.4",
8587
"recharts": "^2.12.7",
86-
"semver": "7.5.2",
8788
"tailwind-merge": "^2.3.0",
8889
"zod": "^3.21.4"
8990
},
@@ -92,19 +93,19 @@
9293
"@babel/eslint-parser": "^7.25.9",
9394
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
9495
"@chromatic-com/storybook": "^1",
95-
"@codecov/vite-plugin": "^1.2.1",
96-
"@sentry/vite-plugin": "^2.22.4",
97-
"@storybook/addon-a11y": "^8.3.4",
98-
"@storybook/addon-actions": "^8.3.4",
99-
"@storybook/addon-essentials": "^8.3.4",
100-
"@storybook/addon-links": "^8.3.4",
101-
"@storybook/blocks": "^8.3.4",
102-
"@storybook/builder-vite": "^8.3.4",
103-
"@storybook/manager-api": "^8.3.4",
104-
"@storybook/node-logger": "^8.3.4",
105-
"@storybook/react": "^8.3.4",
106-
"@storybook/react-vite": "^8.3.4",
107-
"@storybook/theming": "^8.3.4",
96+
"@codecov/vite-plugin": "^1.9.0",
97+
"@sentry/vite-plugin": "^3.2.1",
98+
"@storybook/addon-a11y": "^8.3.7",
99+
"@storybook/addon-actions": "^8.3.7",
100+
"@storybook/addon-essentials": "^8.3.7",
101+
"@storybook/addon-links": "^8.3.7",
102+
"@storybook/blocks": "^8.3.7",
103+
"@storybook/builder-vite": "^8.3.7",
104+
"@storybook/manager-api": "^8.3.7",
105+
"@storybook/node-logger": "^8.3.7",
106+
"@storybook/react": "^8.3.7",
107+
"@storybook/react-vite": "^8.3.7",
108+
"@storybook/theming": "^8.3.7",
108109
"@tailwindcss/container-queries": "^0.1.1",
109110
"@tanstack/eslint-plugin-query": "^4.38.0",
110111
"@tanstack/react-query-devtools": "^4.29.6",
@@ -120,7 +121,7 @@
120121
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
121122
"@types/js-cookie": "3.0.6",
122123
"@types/lodash": "4.17.6",
123-
"@types/node": "^20.5.7",
124+
"@types/node": "^22.9.0",
124125
"@types/prismjs": "^1.26.4",
125126
"@types/prop-types": "15.7.12",
126127
"@types/qs": "6.9.15",
@@ -129,13 +130,14 @@
129130
"@types/react-modal": "^3.16.2",
130131
"@types/react-router-dom": "^5.3.3",
131132
"@types/semver": "^7",
132-
"@typescript-eslint/eslint-plugin": "^8.14.0",
133-
"@typescript-eslint/parser": "^8.14.0",
134-
"@vitejs/plugin-legacy": "^5.4.3",
135-
"@vitejs/plugin-react": "^4.3.3",
136-
"@vitest/coverage-istanbul": "^2.1.3",
137-
"@vitest/eslint-plugin": "^1.1.7",
138-
"@vitest/ui": "^2.1.3",
133+
"@typescript-eslint/eslint-plugin": "^8.19.1",
134+
"@typescript-eslint/parser": "^8.19.1",
135+
"@typescript-eslint/utils": "^8.19.1",
136+
"@vitejs/plugin-legacy": "^6.0.0",
137+
"@vitejs/plugin-react": "^4.3.4",
138+
"@vitest/coverage-istanbul": "^2.1.9",
139+
"@vitest/eslint-plugin": "^1.1.25",
140+
"@vitest/ui": "^2.1.9",
139141
"autoprefixer": "^10.4.14",
140142
"babel-preset-react-app": "^10.0.1",
141143
"confusing-browser-globals": "^1.0.11",
@@ -151,33 +153,33 @@
151153
"eslint-plugin-testing-library": "^6.4.0",
152154
"http-proxy-middleware": "^2.0.7",
153155
"husky": "^9.1.4",
154-
"jsdom": "^25.0.0",
156+
"jsdom": "^25.0.1",
155157
"lint-staged": "^15.2.8",
156158
"msw": "^2.4.11",
157159
"postcss": "^8.4.31",
158160
"prettier": "^3.3.3",
159161
"react-test-renderer": "^18.3.1",
160162
"remark-gfm": "^3.0.1",
161163
"resolve-url-loader": "^5.0.0",
162-
"storybook": "^8.2.6",
164+
"storybook": "^8.4.7",
163165
"tailwindcss": "^3.4.4",
164166
"terser": "^5.34.1",
165-
"typescript": "^4.9.5",
166-
"vite": "^5.4.10",
167+
"typescript": "~5.7.3",
168+
"vite": "^6.0.6",
167169
"vite-plugin-ejs": "^1.7.0",
168-
"vite-plugin-svgr": "^4.2.0",
169-
"vite-tsconfig-paths": "^5.0.1",
170-
"vitest": "^2.1.3"
170+
"vite-plugin-svgr": "^4.3.0",
171+
"vite-tsconfig-paths": "^5.1.4",
172+
"vitest": "^2.1.9"
171173
},
172174
"engines": {
173-
"node": ">=20.10.0"
175+
"node": ">=22.11.0"
174176
},
175177
"msw": {
176178
"workerDirectory": "public"
177179
},
178180
"volta": {
179-
"node": "20.15.1",
180-
"yarn": "4.5.0"
181+
"node": "22.11.0",
182+
"yarn": "4.7.0"
181183
},
182184
"resolutions": {
183185
"react-refresh": "^0.14.0",
@@ -187,6 +189,6 @@
187189
"path-to-regexp@^1.7.0": "^1.9.0",
188190
"path-to-regexp@^6.2.0": "^6.3.0"
189191
},
190-
"packageManager": "yarn@4.5.0",
192+
"packageManager": "yarn@4.7.0",
191193
"engineStrict": false
192194
}

public/logo_dark.svg

+16
Loading

public/robots.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# https://www.robotstxt.org/robotstxt.html
22
User-agent: *
3-
Disallow:
3+
Disallow: /

0 commit comments

Comments
 (0)