Skip to content

Commit 9261c01

Browse files
committed
merge base, fix some issues, but not all
2 parents 502025e + ec10b92 commit 9261c01

File tree

254 files changed

+3722
-2433
lines changed

Some content is hidden

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

254 files changed

+3722
-2433
lines changed

ui/.eslintrc.json renamed to .eslintrc.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"env": {
33
"browser": true,
4-
"es6": true,
5-
"jest": true
4+
"es2024": true,
5+
"jest": true,
6+
"node": true
67
},
78
"extends": [
89
"eslint:recommended",
@@ -12,23 +13,13 @@
1213
"plugin:@typescript-eslint/recommended",
1314
"plugin:prettier/recommended"
1415
],
15-
"ignorePatterns": [".vscode", "jest.config.js"],
16-
"overrides": [
17-
{
18-
"files": ["*.mjs"],
19-
"parser": "espree", // Use the default JavaScript parser for `.mjs` files
20-
"parserOptions": {
21-
"sourceType": "module"
22-
}
23-
}
24-
],
2516
"parser": "@typescript-eslint/parser",
2617
"parserOptions": {
2718
"ecmaFeatures": {
2819
"jsx": true
2920
},
30-
"ecmaVersion": 2018,
31-
"project": "./tsconfig.json",
21+
"ecmaVersion": 2024,
22+
"project": ["src/ui/tsconfig.json", "tsconfig.test.json", "tsconfig.cypress.json"],
3223
"sourceType": "module"
3324
},
3425
"plugins": ["@typescript-eslint", "import", "jest", "no-secrets", "react"],
@@ -46,7 +37,7 @@
4637
"newlines-between": "always-and-inside-groups",
4738
"pathGroups": [
4839
{
49-
"pattern": "{@,assets,classes,components,hooks,pages,store,tests,types,utils}/**",
40+
"pattern": "@{app,assets,classes,components,hooks,lib,pages,store,tests,types,utils}/**",
5041
"group": "internal",
5142
"position": "before"
5243
},
@@ -86,5 +77,17 @@
8677
"caughtErrorsIgnorePattern": "^_"
8778
}
8879
]
80+
},
81+
"settings": {
82+
"next": { "rootDir": ["src/ui/", "tests/ui/"] },
83+
"import/resolver": {
84+
"typescript": {
85+
"project": [
86+
"src/ui/tsconfig.json",
87+
"tsconfig.test.json",
88+
"tsconfig.cypress.json"
89+
]
90+
}
91+
}
8992
}
9093
}

.github/workflows/development.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ jobs:
2121
- name: Run quality checks
2222
run: tox -e quality
2323

24+
ui-quality-checks:
25+
permissions:
26+
contents: "read"
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@v3
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Run quality and typing checks
36+
run: npm run lint
37+
2438
type-checks:
2539
runs-on: ubuntu-latest
2640
strategy:
@@ -37,6 +51,20 @@ jobs:
3751
- name: Run quality checks
3852
run: tox -e types
3953

54+
ui-type-checks:
55+
permissions:
56+
contents: "read"
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Check out code
60+
uses: actions/checkout@v3
61+
62+
- name: Install dependencies
63+
run: npm ci
64+
65+
- name: Run quality and typing checks
66+
run: npm run type-check
67+
4068
precommit-checks:
4169
runs-on: ubuntu-latest
4270
strategy:
@@ -53,6 +81,20 @@ jobs:
5381
- name: Run pre-commit checks
5482
run: pre-commit run --all-files
5583

84+
ui-precommit-check:
85+
permissions:
86+
contents: "read"
87+
runs-on: ubuntu-latest
88+
steps:
89+
- name: Check out code
90+
uses: actions/checkout@v3
91+
92+
- name: Install dependencies
93+
run: npm ci
94+
95+
- name: Run pre-commit checks
96+
run: npx husky run pre-commit
97+
5698
unit-tests:
5799
runs-on: ubuntu-latest
58100
strategy:
@@ -69,6 +111,20 @@ jobs:
69111
- name: Run unit tests
70112
run: tox -e test-unit -- -m "smoke or sanity"
71113

114+
ui-unit-tests:
115+
permissions:
116+
contents: "read"
117+
runs-on: ubuntu-latest
118+
steps:
119+
- name: Check out code
120+
uses: actions/checkout@v3
121+
122+
- name: Install dependencies
123+
run: npm ci
124+
125+
- name: Run unit tests
126+
run: npm run test:unit
127+
72128
integration-tests:
73129
runs-on: ubuntu-latest
74130
strategy:
@@ -85,6 +141,20 @@ jobs:
85141
- name: Run integration tests
86142
run: tox -e test-integration -- -m smoke
87143

144+
ui-integration-tests:
145+
permissions:
146+
contents: "read"
147+
runs-on: ubuntu-latest
148+
steps:
149+
- name: Check out code
150+
uses: actions/checkout@v3
151+
152+
- name: Install dependencies
153+
run: npm ci
154+
155+
- name: Run integration tests
156+
run: npm run test:integration
157+
88158
build:
89159
runs-on: ubuntu-latest
90160
strategy:

.github/workflows/ui-development.yml

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

.gitignore

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,49 @@ cython_debug/
179179
*.json
180180
*.yaml
181181

182-
# Turn off UI related ignores, defer to ui/.gitignore
183-
!ui/**
182+
183+
# UI Section - Next.js/React application under src/ui/
184+
# dependencies
185+
/node_modules/
186+
/.pnp
187+
.pnp.*
188+
.yarn/*
189+
!.yarn/patches
190+
!.yarn/plugins
191+
!.yarn/releases
192+
!.yarn/versions
193+
194+
# testing
195+
coverage/
196+
197+
# next.js
198+
/src/ui/.next/
199+
/src/ui/out/
200+
201+
# production
202+
build/
203+
204+
# misc
205+
*.pem
206+
207+
# debug
208+
npm-debug.log*
209+
yarn-debug.log*
210+
yarn-error.log*
211+
.pnpm-debug.log*
212+
213+
# vercel
214+
src/ui/.vercel
215+
216+
# typescript
217+
*.tsbuildinfo
218+
src/ui/next-env.d.ts
219+
220+
# Root-level UI config files that should be tracked
221+
!package.json
222+
!package-lock.json
223+
!.eslintrc.json
224+
!tsconfig.json
225+
!tsconfig.*.json
226+
!src/ui/lib
227+
!src/ui/public/manifest.json

.prettierignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# === Don't touch ===
2+
*.md
3+
*.mdx
4+
*.yaml
5+
*.yml
6+
7+
# === Skip all JSON …
8+
*.json
9+
10+
# === include relevant json ===
11+
!src/ui/**/*.json
12+
!tests/ui/**/*.json
13+
14+
# Root-level configs to format
15+
!/.eslintrc.json
16+
!/tsconfig*.json
17+
!/*.config.{js,ts}
18+
!/jest.setup.ts

ui/.prettierrc renamed to .prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"arrowParens": "always",
33
"bracketSameLine": false,
44
"bracketSpacing": true,
5-
"jsxBracketSameLine": false,
65
"jsxSingleQuote": false,
7-
"printWidth": 100,
6+
"printWidth": 88,
87
"semi": true,
98
"singleQuote": true,
109
"tabWidth": 2,

0 commit comments

Comments
 (0)