Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .claude/skills/review-code/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If build fails: stop review, report build failure.

For frontend changes:
```bash
cd openaev-front && yarn check-ts && yarn lint && yarn depcruise
cd openaev-front && yarn check-ts && yarn lint && yarn depcruise && yarn knip --dependencies
```

## Step 4 — Review architecture alignment
Expand Down
60 changes: 60 additions & 0 deletions .github/actions/frontend-quality/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Frontend Quality & Unit Tests
description: >
Run TypeScript checks, ESLint, dependency-cruiser, knip, i18n validation, and Vitest unit tests.
Uploads coverage report as an artifact.

inputs:
no-cache:
description: "true bypasses every cache in this action; set by Nightly, which must not consume the shared cache quota"
required: false
default: "false"

runs:
using: composite
steps:
- name: Install dependencies
uses: ./.github/actions/yarn-install
with:
no-cache: ${{ inputs.no-cache }}
- name: TypeScript check
run: yarn check-ts
shell: bash
working-directory: openaev-front
- name: Check licenses
run: yarn check-licenses
shell: bash
working-directory: openaev-front
- name: Run ESLint
run: yarn lint
shell: bash
working-directory: openaev-front
- name: Test custom ESLint rules
run: yarn test:eslint-rules
shell: bash
working-directory: openaev-front
- name: Check module dependencies
run: yarn depcruise
shell: bash
working-directory: openaev-front
- name: Check declared dependencies
# --dependencies only: the wider knip report (unused files and exports) still has a
# large pre-existing backlog, so only declaration drift is enforced.
run: yarn knip --dependencies
shell: bash
working-directory: openaev-front
- name: Check i18n translations
run: yarn i18n-checker
shell: bash
working-directory: openaev-front
- name: Run unit tests
run: yarn test -- --coverage
shell: bash
working-directory: openaev-front
env:
NODE_OPTIONS: --max_old_space_size=8192
- name: Upload frontend coverage report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
with:
name: vitest-coverage
path: openaev-front/coverage/
2 changes: 1 addition & 1 deletion .github/ci-pipeline-schema.d2
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pba: "📦 Prepare Bundled Assets\ntimeout 10 min · JFrog agents + implants\nca
quality: "STATIC QUALITY" {
class: lane
sc: "🔍 Spotless Check\ntimeout 10 min · Java format" {class: quality}
fq: "🧪 Frontend Quality & Unit Tests\ntimeout 20 min · ESLint + dependency-cruiser + Vitest" {class: quality}
fq: "🧪 Frontend Quality & Unit Tests\ntimeout 20 min · ESLint + dependency-cruiser + knip + Vitest" {class: quality}
bom: "🔎 BOM Override Guard\ntimeout 15 min · Spring Boot BOM overrides\nadvisory in the Gate" {class: quality}
}

Expand Down
2 changes: 1 addition & 1 deletion .github/ci-pipeline-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ The minutes column is each job's `timeout-minutes` ceiling, not its runtime.
| 🎨 **Frontend Build** | 15 min | Yarn build of `openaev-front` |
| 📦 **Prepare Bundled Assets** | 10 min | Agent/implant binaries from JFrog, patches `catalog-integrators.json`, uploads `release-assets` |
| 🔍 **Spotless Check** | 10 min | Java formatting |
| 🧪 **Frontend Quality & Unit Tests** | 20 min | ESLint + dependency-cruiser + Vitest + coverage |
| 🧪 **Frontend Quality & Unit Tests** | 20 min | ESLint + dependency-cruiser + knip + Vitest + coverage |
| 🐳 **Docker Build** ×4 | 25 min | `standard`/`ubi9` × `amd64`/`arm64`, native runners, no QEMU. `fail-fast: false` |
| 🐳 **Merge Platforms** ×2 | 45 min | Multi-arch OCI index per variant, with artifact fallback when the registry is unavailable |
| 🔒 **Container Vulnerability Scan** | 25 min | CVE scan of both amd64 images, threshold `high` |
Expand Down
6 changes: 3 additions & 3 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The minimum Node.js version is specified in `openaev-front/package.json` (`engin
### Linting & Formatting

**Backend**: `mvn spotless:check` / `mvn spotless:apply` (Google Java Format)
**Frontend**: `yarn lint` (~60s), `yarn check-ts`, `yarn depcruise` (import cycles, dependency rules), `yarn i18n-checker`, `yarn test:eslint-rules` (when changing `packages/eslint-plugin-custom-rules`)
**Frontend**: `yarn lint` (~60s), `yarn check-ts`, `yarn depcruise` (import cycles, dependency rules), `yarn knip --dependencies` (unused or undeclared dependencies), `yarn i18n-checker`, `yarn test:eslint-rules` (when changing `packages/eslint-plugin-custom-rules`)
**Known Issue**: Pre-existing Spotless errors in `DetectionRemediationApiTest.java` and `InjectExpectationUtils.java` -
ignore unless your changes touch these.

Expand All @@ -56,7 +56,7 @@ ignore unless your changes touch these.
CI runs on GitHub Actions (see `.github/workflows/`):

1. **API Tests**: `mvn spotless:check`, `mvn clean install -DskipTests`, tests, `mvn jacoco:check`
2. **Frontend Tests**: `yarn install/build/check-ts/lint/test:eslint-rules/depcruise/i18n-checker/test`
2. **Frontend Tests**: `yarn install/build/check-ts/lint/test:eslint-rules/depcruise/knip/i18n-checker/test`
3. **E2E Tests**: Full app test with Playwright
4. **Type Check**: `yarn generate-types-from-api` verification

Expand Down Expand Up @@ -89,7 +89,7 @@ Before creating a pull request, validate locally:
1. **Formatting**: `mvn spotless:check` (or via Docker: `docker run --rm -v $(pwd):/app -w /app maven:3.9-eclipse-temurin-21-noble mvn spotless:check`)
2. **PR title**: Must match `type(scope?): description (#issue)` — no `[context]` prefix. The `openaev-pr-checks` GitHub App validates this pattern; titles with extra prefixes (e.g. `[backend]`) will be rejected.
3. **Compile**: `mvn compile -DskipTests` (or via Docker)
4. **Frontend** (if changed): `cd openaev-front && yarn check-ts && yarn lint && yarn depcruise`
4. **Frontend** (if changed): `cd openaev-front && yarn check-ts && yarn lint && yarn depcruise && yarn knip --dependencies`
5. **PR description**: Must follow [`.github/PULL_REQUEST_TEMPLATE.md`](/.github/PULL_REQUEST_TEMPLATE.md) — see [PR description format](#pr-description-format).

## Code Conventions
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ mvn test # Tests (needs Docker services)
cd openaev-front && yarn build # Build frontend
yarn lint && yarn check-ts # Lint + type-check
yarn depcruise # Import cycles + dependency rules
yarn knip --dependencies # Unused or undeclared dependencies
yarn test:eslint-rules # Tests of the local ESLint rules (packages/eslint-plugin-custom-rules)
yarn generate-types-from-api # Sync API types
```
Expand Down
1 change: 1 addition & 0 deletions docs/docs/development/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ cd openaev-front
yarn lint # ESLint (must pass with 0 warnings)
yarn check-ts # TypeScript type checking
yarn depcruise # Import cycles and dependency rules (dependency-cruiser)
yarn knip --dependencies # Unused or undeclared dependencies (knip)
yarn test:eslint-rules # Tests of the local ESLint rules (packages/eslint-plugin-custom-rules)
yarn test # Unit tests (Vitest)
yarn test:e2e # E2E tests (Playwright, requires running application)
Expand Down
1 change: 1 addition & 0 deletions openaev-front/.dependency-cruiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const DEV_FILES = [
'^vitest\\.config\\.ts$',
'^playwright\\.config\\.ts$',
'^eslint\\.config\\.js$',
'^knip\\.ts$',
'^\\.dependency-cruiser\\.ts$',
'^scripts/',
];
Expand Down
1 change: 0 additions & 1 deletion openaev-front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ node_modules
/coverage

# production
/builder/dev/build
/builder/prod/build
/build

Expand Down
141 changes: 0 additions & 141 deletions openaev-front/builder/dev/dev.js

This file was deleted.

20 changes: 0 additions & 20 deletions openaev-front/builder/dev/index.html

This file was deleted.

Empty file.
73 changes: 0 additions & 73 deletions openaev-front/builder/prod/prod.js

This file was deleted.

1 change: 0 additions & 1 deletion openaev-front/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ export default [
'public',
'src/static/ext',
'builder/prod/build',
'builder/dev/build',
'__generated__',
// fds-migration bridge (filigran-design-system pnpm generate:mui-bridge) —
// pure generated data, regenerate upstream instead of hand-fixing lint
Expand Down
Loading