Share UI code through an npm workspace

Extracts the avatar components and the style tokens into shared/ui, which
both apps consume as a workspace package, to try out ADR 2. Nix and the
Docker setups are not updated yet.
This commit is contained in:
Rūdolfs Ošiņš
2026-10-29 16:27:03 +01:00
parent 84995442a5
commit f79b23dde7
97 changed files with 1898 additions and 9022 deletions
+10 -5
View File
@@ -1,11 +1,16 @@
name: explorer-e2e
# Only explorer changes, or changes to this workflow, run it. Rust-only
# changes don't affect the web app: its tests run against a pinned, pre-built
# radicle-httpd.
# Only explorer, shared/ui and root npm changes, or changes to this workflow,
# run it. Rust-only changes don't affect the web app: its tests run against a
# pinned, pre-built radicle-httpd.
on:
push:
paths:
- "explorer/**"
- "shared/**"
- "package.json"
- "package-lock.json"
- ".npmrc"
- ".nvmrc"
- "!explorer/crates/**"
- "!explorer/Cargo.toml"
- "!explorer/Cargo.lock"
@@ -29,7 +34,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: "explorer/.nvmrc"
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
@@ -39,7 +44,7 @@ jobs:
id: playwright-dep-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('explorer/package-lock.json') }}
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
- name: Install Playwright browsers
if: steps.playwright-dep-cache.outputs.cache-hit != 'true'