Skip to content

Commit 1a75296

Browse files
committed
Merge main; use mono text for link, rather than badge
2 parents eaccbf1 + c1ebd8d commit 1a75296

File tree

228 files changed

+5269
-8304
lines changed

Some content is hidden

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

228 files changed

+5269
-8304
lines changed

.github/workflows/lintBuildTest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
id: cache-node-modules
2121
with:
2222
path: node_modules
23-
key: modules-${{ hashFiles('package-lock.json') }}
23+
key: modules-${{ hashFiles('package-lock.json', 'patches/**') }}
2424
- name: npm install
2525
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2626
run: npm install
@@ -39,7 +39,7 @@ jobs:
3939
id: cache-node-modules
4040
with:
4141
path: node_modules
42-
key: modules-${{ hashFiles('package-lock.json') }}
42+
key: modules-${{ hashFiles('package-lock.json', 'patches/**') }}
4343
- name: Typecheck
4444
run: npx tsc
4545
- name: Lint
@@ -67,7 +67,7 @@ jobs:
6767
uses: actions/cache@v4
6868
with:
6969
path: node_modules
70-
key: modules-${{ hashFiles('package-lock.json') }}
70+
key: modules-${{ hashFiles('package-lock.json', 'patches/**') }}
7171
- name: Set env.PLAYWRIGHT_VERSION
7272
run: |
7373
PLAYWRIGHT_VERSION=$(npm ls --json @playwright/test | jq --raw-output '.dependencies["@playwright/test"].version')

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
npx lint-staged
1+
# use path directly instead of npx or npm run because it's way faster
2+
node_modules/.bin/oxlint --deny-warnings

.ladle/components.tsx

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

.ladle/config.mjs

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

.ladle/head.html

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

.licenserc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ header:
1818
- '**/*.md'
1919
- 'LICENSE'
2020
- 'OMICRON_VERSION'
21-
- '.ladle'
2221
- '.husky'
2322
- 'mockServiceWorker.js'
2423

.oxlintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react", "react-hooks", "unicorn", "typescript", "oxc"],
4+
"rules": {
5+
"react-hooks/exhaustive-deps": "error",
6+
// turning this off because it's more sensitive than eslint currently
7+
// "react-hooks/rules-of-hooks": "error",
8+
"no-unused-vars": [
9+
"error",
10+
{
11+
"argsIgnorePattern": "^_",
12+
"varsIgnorePattern": "^_",
13+
"caughtErrorsIgnorePattern": "^_"
14+
}
15+
]
16+
}
17+
}

OMICRON_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9c8aa5372fede528bff8e69fd88cabda0e92fac4
1+
c6d4c55ffece9faf167e2da5aee044341ffdc24e

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ The web console has no special privileges as an API consumer. Logging in sets a
4343
- [Mock Service Worker](https://mswjs.io/) for mock API server
4444
- [Vitest](https://vitest.dev/) for unit tests
4545
- [Playwright](https://playwright.dev/) for E2E browser tests
46-
- [Ladle](https://ladle.dev/), a lightweight Storybook clone based on Vite
4746

4847
## Directory structure
4948

@@ -109,14 +108,6 @@ document.cookie = 'session=d9b1a96e151092eb0ea08b1a0d8c4788441f1894;domain=local
109108

110109
Go to https://localhost:4000 again and you should be logged in.
111110

112-
### Run [Ladle](https://ladle.dev/)
113-
114-
```
115-
npm run ladle
116-
```
117-
118-
This will start a preview environment for UI components at `http://localhost:61000`.
119-
120111
### E2E tests with [Playwright](https://playwright.dev/)
121112

122113
Playwright tests live in [`test/e2e`](test/e2e/). `npm run e2e` runs the tests in Chrome, Firefox, and Safari, but this is rarely necessary in local dev. `npm run e2ec` is a shortcut for `playwright test --project=chrome`, which runs the tests in Chrome only (the fastest one, useful for local dev). Playwright has an excellent [UI mode](https://playwright.dev/docs/test-ui-mode) for running and debugging tests that you can get to by running `npm run e2e -- --ui`.
@@ -133,7 +124,6 @@ To debug end-to-end failures on CI, check out the branch with the failure and ru
133124
| `npm run lint` | ESLint |
134125
| `npx tsc` | Check types |
135126
| `npm run ci` | Lint, tests (unit and e2e), and types |
136-
| `npm run ladle` | Run Ladle (Storybook) |
137127
| `npm run fmt` | Format everything. Rarely necessary thanks to editor integration |
138128
| `npm run gen-api` | Generate API client (see [`docs/update-pinned-api.md`](docs/update-pinned-api.md)) |
139129
| `npm run start:mock-api` | Serve mock API on port 12220 |

app/api/__generated__/Api.ts

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)