Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ed17743
Update development dependencies and pin `@playwright/test`
bedrich-schindler Nov 18, 2026
3b2a93e
Type-check with TypeScript 6 only
bedrich-schindler Nov 18, 2026
e1a3249
Parse JSX only in `.tsx` files and use ESM Babel and PostCSS configs
bedrich-schindler Nov 18, 2026
65ff3c3
Fix Jest and Playwright settings that depend on the environment
bedrich-schindler Nov 18, 2026
f41ca0d
Remove `includePaths` from the `sass-loader` options
bedrich-schindler Nov 18, 2026
279d6c5
Run `fixuid` before `chown` in the devcontainer entrypoint
bedrich-schindler Nov 18, 2026
e0dfa13
Split the webpack config into the `webpack/` directory
bedrich-schindler Nov 18, 2026
0ba6224
Order `tsconfig.json` options and target `esnext`
bedrich-schindler Nov 18, 2026
0e3d7ff
Use shared `.editorconfig` and markdownlint rules
bedrich-schindler Nov 18, 2026
7d98a2f
Give `.gitignore` the section layout shared by all projects
bedrich-schindler Nov 18, 2026
073d5bd
Rename `write-lockfile-hash.sh` to `writeLockfileHash.sh`
bedrich-schindler Nov 18, 2026
6eb67d6
Use the development environment layout of the other projects
bedrich-schindler Nov 18, 2026
f4659e1
Align `.env.dist` with other projects and use unique default host ports
bedrich-schindler Nov 18, 2026
21411b7
Replace the backtracking kebab-case pattern of `selector-class-pattern`
bedrich-schindler Nov 18, 2026
5094d78
Align the files in `webpack/` with the other projects
bedrich-schindler Nov 18, 2026
496a938
Lint the tooling files with ESLint
bedrich-schindler Nov 18, 2026
5faf96e
Use the lint scripts shared with the RACOM projects
bedrich-schindler Nov 18, 2026
59dbf5e
Use `jest.config.mjs` and `jest-fail-on-console`
bedrich-schindler Nov 19, 2026
2245a31
Pass the token to `pr-labeler-action` as an input
bedrich-schindler Nov 19, 2026
5d292dd
Remove the unused `markdown-link-check.json`
bedrich-schindler Nov 19, 2026
2c0c5f2
Install the Playwright browsers once in the Playwright workflow
bedrich-schindler Nov 19, 2026
72852b5
Build the PR preview when `tsconfig.build.json` changes
bedrich-schindler Nov 19, 2026
b9dd61c
Align the workflows with the other React UI repositories
bedrich-schindler Nov 19, 2026
12f8b35
Follow the rename of the Jest config in `CODEOWNERS`
bedrich-schindler Nov 19, 2026
a5bc56c
Add the `test:playwright:clear-cache` script
bedrich-schindler Nov 19, 2026
d4c63a3
Pass `onBeforeTest` and `onBeforeSnapshot` through `mixPropTests`
bedrich-schindler Nov 19, 2026
d5b581c
Type-check `playwright-ct.config.ts`
bedrich-schindler Nov 19, 2026
925fbc8
Set the `release_url` output in the release workflow
bedrich-schindler Nov 19, 2026
27cc69c
Name the bundle statistics file `stats.html`
bedrich-schindler Nov 19, 2026
6522b3b
Add the development environment paths to `CODEOWNERS`
bedrich-schindler Nov 19, 2026
c9d6590
Remove the duplicate `attr_list` extension from `mkdocs.yml`
bedrich-schindler Nov 19, 2026
56faa2c
Align `docker/mkdocs/Dockerfile` like the other Dockerfiles
bedrich-schindler Nov 19, 2026
afcee60
Sort the prop test imports in `tests/playwright/index.ts`
bedrich-schindler Nov 19, 2026
49d6869
Pin npm in the `pull-request-preview.yml` workflow
bedrich-schindler Nov 19, 2026
450f372
Add the remaining development environment files to `CODEOWNERS`
bedrich-schindler Nov 19, 2026
113d116
Lint the same style files in the webpack build as `lint:stylelint`
bedrich-schindler Nov 19, 2026
7f101c7
Align comments in `mkdocs.yml` and `resolveStory.ts` with RADES
bedrich-schindler Nov 19, 2026
645eef4
Rename `helpTextAndValidationTextPropType` to `helpTextAndValidationT…
bedrich-schindler Nov 19, 2026
3a191ea
Run Playwright with the default browser launch setup
bedrich-schindler Nov 19, 2026
358c75a
Install `mkdocs-material` 9.8.0 in CI like `docker/mkdocs/Dockerfile`
bedrich-schindler Nov 20, 2026
2b10e28
Indent Python files with 4 spaces in `.editorconfig`
bedrich-schindler Nov 20, 2026
808bb1d
Remove the browser install step from the Playwright workflow
bedrich-schindler Nov 20, 2026
38c7852
Remove the Internet Explorer grid prefixes from the PostCSS config
bedrich-schindler Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .claude/agents/code-reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ Easy-to-miss invariants beyond the generic checks above:
`test:jest` and `test:playwright`
([.github/workflows/](../../.github/workflows/)). `npm run lint` covers
`lint:eslint`, `lint:stylelint`, `lint:markdownlint` and `lint:types`; the
tests run separately. `npm run lint:eslint` covers `src` and `tests`.
tests run separately. `npm run lint:eslint` covers `src`, `tests`, `scripts`,
`webpack` and the config files in the project root.
Remind the author to run them.
* **Component layout** ([frontend.md](../rules/frontend.md)): every component
folder has the `.tsx` + `.types.ts` + `index.ts` barrel + `*.module.scss` + `_settings`/
Expand Down
15 changes: 7 additions & 8 deletions .claude/rules/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ paths:
React UI is a themeable React component library, distributed as a UMD bundle
(with separate CSS) and as ESM (consumers run their own SASS pipeline).
Components are TypeScript / TSX for React. Babel (`@babel/preset-typescript`)
transpiles for the bundle and Jest; TypeScript (`tsc` from the
`@typescript/native` package) type-checks (`strict: true`) and emits the
published declarations (`dist/types`, via `tsconfig.build.json` in
`npm run build`); `dts-bundle-generator` then flattens them into the single
`dist/react-ui.d.ts` referenced by `package.json` `types`. An older TypeScript
is installed alongside under the `typescript` package name for tools that need
the compiler API (typescript-eslint). For the exact versions of these packages,
see [package.json](../../package.json).
transpiles for the bundle and Jest. TypeScript (`tsc`) type-checks
(`strict: true`) and emits the published declarations to `dist/types`, using
`tsconfig.build.json` in `npm run build`. `dts-bundle-generator` then flattens
the declarations into the single `dist/react-ui.d.ts` referenced by
`package.json` `types`. typescript-eslint uses the same `typescript` package.
For the exact versions of these packages, see
[package.json](../../package.json).

Plain function components are annotated as `React.FunctionComponent<Props>`.

Expand Down
11 changes: 10 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{scss,md}]
[*.{css,scss,md}]
indent_size = 4

[*.{cpp,hpp}]
indent_size = 4

[*.py]
indent_size = 4

[Makefile]
indent_style = tab
30 changes: 18 additions & 12 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
################################

# Must match Docker Compose project name used to start the other service containers to allow devcontainer
# to communicate with them (setup.sh derives this from the directory basename by default)
# to communicate with them (setup.sh derives this from the directory basename by default, lowercased and
# stripped of characters that are not allowed in Docker Compose project names)
COMPOSE_PROJECT_NAME=react-ui

# Docker compose ports for Docs server instances
COMPOSE_DOCS_SERVER_PORT=8000
# The default host ports are unique per project, so several projects can run side by side

# Docker compose ports for Playwright Component Testing report server
COMPOSE_PLAYWRIGHT_REPORT_PORT=9323
# Docker compose port for the docs server
COMPOSE_DOCS_SERVER_PORT=21001

# Docker compose port for the Playwright report server
COMPOSE_PLAYWRIGHT_REPORT_PORT=21002

# Flag whether the `node` and `docs` service containers should automatically install dependencies,
# build, and run the application (JavaScript files watcher, docs server) when they start
Expand All @@ -19,14 +22,14 @@ COMPOSE_AUTOSTART=false
# Ownership of the files created in the container
# ⚠️ [Linux] This needs to be set to the output of `id --user`
# ⚠️ [MacOS] This needs to be set to 1000
COMPOSE_UID=1000
COMPOSE_UID=
# ⚠️ [Linux] This needs to be set to the output of `id --group`
# ⚠️ [MacOS] This needs to be set to 1000
COMPOSE_GID=1000
COMPOSE_GID=

#############################
##############################
# Devcontainer configuration #
#############################
##############################

# IDEs automatically mount the host's SSH agent socket into the container
# Visual Studio Code does this by default, it can be disabled by setting the following variable to true.
Expand All @@ -40,9 +43,9 @@ VISUAL=vim
# Select your preferred shell (/bin/bash, /bin/fish, /bin/zsh)
SHELL=/bin/bash

###########################
############################
# Playwright configuration #
###########################
############################

# Number of workers to use to run Playwright tests
PW_WORKERS=1
Expand All @@ -55,7 +58,10 @@ PW_CT_PORT=3100
####################################

# Host Chrome debug port
# CHROME_DEBUG_PORT=9333
CHROME_DEBUG_PORT=21003

# Host Chrome binary path (skip for auto-detection)
# CHROME_BIN=

# URL that the host Chrome opens (skip to open the application, or the docs when the project has no application port)
# CHROME_START_URL=
21 changes: 16 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@
# Soft gates — any team member can review, but relevant expert is notified

# Infrastructure & build tooling
/.devcontainer/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/.env.dist @bedrich-schindler @mbohal @react-ui-org/maintainers
/.github/workflows/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/docker/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/docker-compose.yml @bedrich-schindler @mbohal @react-ui-org/maintainers
/webpack.config.js @bedrich-schindler @mbohal @react-ui-org/maintainers
/babel.config.js @bedrich-schindler @mbohal @react-ui-org/maintainers
/jest.config.js @bedrich-schindler @mbohal @react-ui-org/maintainers
/docker-compose.base.yml @bedrich-schindler @mbohal @react-ui-org/maintainers
/docker-compose.yml.dist @bedrich-schindler @mbohal @react-ui-org/maintainers
/scripts/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/setup.sh @bedrich-schindler @mbohal @react-ui-org/maintainers
/tools/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/webpack.config.mjs @bedrich-schindler @mbohal @react-ui-org/maintainers
/webpack/ @bedrich-schindler @mbohal @react-ui-org/maintainers
/babel.config.mjs @bedrich-schindler @mbohal @react-ui-org/maintainers
/jest.config.mjs @bedrich-schindler @mbohal @react-ui-org/maintainers
/eslint.config.mjs @bedrich-schindler @mbohal @react-ui-org/maintainers
/playwright-ct.config.ts @bedrich-schindler @mbohal @react-ui-org/maintainers
/tsconfig.build.json @bedrich-schindler @mbohal @react-ui-org/maintainers
/tsconfig.json @bedrich-schindler @mbohal @react-ui-org/maintainers

# Docs, styles & style tooling
*.md @adamkudrna @react-ui-org/maintainers
/postcss.config.js @adamkudrna @react-ui-org/maintainers
/postcss.config.mjs @adamkudrna @react-ui-org/maintainers
/src/docs/ @adamkudrna @react-ui-org/maintainers
/src/styles/ @adamkudrna @react-ui-org/maintainers
/src/theme.scss @adamkudrna @react-ui-org/maintainers
Expand Down
10 changes: 0 additions & 10 deletions .github/markdown-link-check.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@v6

- name: Set up Node.js (${{ env.NODE_PREVIOUS_LTS_VERSION }})
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ env.NODE_PREVIOUS_LTS_VERSION }}
cache: npm
Expand All @@ -79,7 +79,7 @@ jobs:
uses: actions/checkout@v6

- name: Set up Node.js (${{ env.NODE_ACTIVE_LTS_VERSION }})
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ env.NODE_ACTIVE_LTS_VERSION }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Get cache ID
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
run: echo "cache_id=$(date --utc '+%V')" >> "$GITHUB_ENV"

- name: Restore cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
key: mkdocs-material-9.8.0-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
mkdocs-material-9.8.0-

- name: Install MkDocs
run: pip install 'mkdocs-material>=9.0.0,<10.0.0'
run: pip install 'mkdocs-material==9.8.0'

- name: Build MkDocs
run: mkdocs build
18 changes: 14 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,35 @@ name: Lint

on: [ pull_request ]

# The Node.js version is the active LTS, the same version as in `.nvmrc`. Node.js and
# npm are pinned so that a broken npm release cannot break the build, see
# <https://github.com/nodejs/node/issues/62425#issuecomment-4200715930>.
env:
NODE_VERSION: 26.13.1
NPM_VERSION: 11.20.0

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 26.13.1
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install npm@${{ env.NPM_VERSION }}
run: npm install -g npm@${{ env.NPM_VERSION }}

- name: Print Node.js and npm version
run: node --version && npm --version

- name: Install
run: npm ci

- name: Test
- name: Lint
run: npm run lint
22 changes: 13 additions & 9 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
schedule:
- cron: '0 6 * * *' # daily at 6:00 UTC (7:00 CET, 8:00 CEST)

# The Node.js version is the active LTS, the same version as in `.nvmrc`. Node.js and
# npm are pinned so that a broken npm release cannot break the build, see
# <https://github.com/nodejs/node/issues/62425#issuecomment-4200715930>.
env:
NODE_VERSION: 26.13.1
NPM_VERSION: 11.20.0

jobs:
test:
name: Playwright
Expand All @@ -14,29 +21,26 @@ jobs:
image: mcr.microsoft.com/playwright:v1.65.0-noble@sha256:9beb546099e11f52d62e505537914870e01a67e0e6b00ae41da4775324e73dbe
steps:
- name: Clone repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 26.13.1
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install npm@${{ env.NPM_VERSION }}
run: npm install -g npm@${{ env.NPM_VERSION }}

- name: Print Node.js and npm version
run: node --version && npm --version

- name: Install
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Playwright tests and generate test report
run: npm run test:playwright

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Upload Playwright test report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:

- name: Add labels
uses: TimonVS/pr-labeler-action@v5
env:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 17 additions & 10 deletions .github/workflows/pull-request-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
paths:
- 'src/**'
- '.browserslistrc'
- 'babel.config.js'
- 'babel.config.mjs'
- 'mkdocs.yml'
- 'package-lock.json'
- 'package.json'
- 'postcss.config.js'
- 'postcss.config.mjs'
- 'tsconfig.build.json'
- 'tsconfig.json'
- 'webpack.config.js'
- 'webpack.config.mjs'
- 'webpack/**'

concurrency:
group: preview-${{ github.ref }}
Expand All @@ -23,8 +25,10 @@ permissions:
deployments: write
pull-requests: write

# Kept in sync with lint.yml.
env:
NODE_VERSION: 26.13.1
NPM_VERSION: 11.20.0

jobs:
build:
Expand All @@ -36,15 +40,18 @@ jobs:
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install Node.js dependencies
- name: Install npm@${{ env.NPM_VERSION }}
run: npm install -g npm@${{ env.NPM_VERSION }}

- name: Install
run: npm ci

- name: Build assets
- name: Build
run: npm run build

# Docoff looks up types imported by components in the bundled type declarations
Expand All @@ -57,18 +64,18 @@ jobs:
python-version: 3.x

- name: Get cache ID
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
run: echo "cache_id=$(date --utc '+%V')" >> "$GITHUB_ENV"

- name: Restore cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
key: mkdocs-material-9.8.0-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
mkdocs-material-9.8.0-

- name: Install MkDocs
run: pip install 'mkdocs-material>=9.0.0,<10.0.0'
run: pip install 'mkdocs-material==9.8.0'

- name: Build docs
run: mkdocs build
Expand Down
Loading
Loading