Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
06b4304
feat: update all dept & standardize tooling
stee-re Apr 24, 2026
55bf6fe
feat: switch to oscd-ui components and scope plugin
stee-re Apr 24, 2026
f57826d
test: fix EditV2 test harness and add IED removal coverage
stee-re Oct 12, 2026
93d30ca
fix: use docVersion and correct plugin documentation
stee-re Oct 12, 2026
20e1ad3
chore: migrate to oscd-tooling
stee-re Oct 12, 2026
f734c3d
chore: added "oscd updates" and updated all deps
stee-re Oct 12, 2026
5eac0b8
chore: update oscd-tooling (contains fix)
stee-re Oct 13, 2026
2849d00
feat: minor costmetic tweaks to the dialog
stee-re Oct 13, 2026
70d8a31
feat: add optional removal of associated LNodes
stee-re Oct 13, 2026
9453c30
feat: add explicit removal choices and communication impact review
stee-re Oct 19, 2026
5c2c33e
docs: add upgrade plan
danyill Oct 19, 2026
7d10d69
build: adopt the OpenPowerShift package identity
danyill Oct 19, 2026
d98e02e
refactor: extract removal planning and IED labels
danyill Oct 19, 2026
812b00c
test: add plugin, driver and SCL fixtures
danyill Oct 19, 2026
076c2f1
feat: localize and theme the removal dialog
danyill Oct 19, 2026
1530686
test: add screenshot tests for the plugin states
danyill Oct 19, 2026
6ee4c83
ci: gate release and deploy on tests
danyill Oct 19, 2026
d754b4f
docs: add the Antora documentation
danyill Oct 19, 2026
bc32472
test: default to Chromium for the unit suite
danyill Oct 19, 2026
9ee7f82
docs: record the final verification
danyill Oct 19, 2026
9d025cf
fix: size the removal options to their content
danyill Oct 19, 2026
5082a35
feat: add filtered bulk selection and side options
danyill Oct 19, 2026
b60f326
fix: keep the removal dialog at a stable size
danyill Oct 19, 2026
d0687af
test: update visual baselines
github-actions[bot] Oct 19, 2026
a7d7300
test: make visual baselines stable and tolerant
danyill Oct 19, 2026
db87044
Merge remote-tracking branch 'openpowershift/upgrade' into upgrade
danyill Oct 19, 2026
05abda3
test: update visual baselines
github-actions[bot] Oct 19, 2026
1173ff0
docs: record the visual baseline regeneration
danyill Oct 19, 2026
bd03416
test: prove one undo entry for several IEDs
danyill Oct 19, 2026
ba35766
docs: remove the icons and tooltips page
danyill Oct 19, 2026
39ed843
test: wait for the nested confirmation animation
danyill Oct 19, 2026
a886e1f
test: update visual baselines
github-actions[bot] Oct 19, 2026
f43b917
fix: restore source editor
danyill Oct 21, 2026
5ce4bb0
chore: update @openscd/scl-lib to 2.0.2
danyill Oct 21, 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: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Screenshot baselines are normal Git files, not Git LFS files, so that the
# documentation can link to them and Antora can read them from the repository.
test/**/*.png binary
3 changes: 3 additions & 0 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# generated by @omicronenergy/oscd-tooling
npx --no -- oscd commitlint --edit "$1"
3 changes: 3 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# generated by @omicronenergy/oscd-tooling
npx --no -- oscd lint-staged
35 changes: 0 additions & 35 deletions .github/workflows/deploy.yml

This file was deleted.

112 changes: 112 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Release and deploy

# Automated releases with release-please. Pushing Conventional-Commit changes
# to main maintains a "release PR" that bumps the version and updates the
# changelog. Merging that PR tags the release (vX.Y.Z), creates the GitHub
# Release, and, via the gated job below, publishes to npm with Trusted
# Publishing (OIDC), with no stored token.
#
# The demo on GitHub Pages follows main.
#
# Every push to main runs the full test suite (test.yml) first, and nothing is
# tagged, released, published or deployed unless it passes.
#
# Secret to configure once:
# * RELEASE_PLEASE_TOKEN: a fine-grained personal access token for this repo
# with Contents, Pull requests and Issues read/write. release-please opens
# the release PR with it, because a PR opened with the default GITHUB_TOKEN
# does not trigger test.yml and would get no checks.
#
# Trusted publisher to configure once, keyed to THIS workflow file:
# * npm: repo + workflow `release.yml`
# npm requires the package to already exist before a trusted publisher can be
# configured, so publish the first version by hand once, then configure the
# trusted publisher for later releases.

on:
push:
branches:
- main

jobs:
test:
uses: ./.github/workflows/test.yml
with:
visual: true

release-please:
needs: test
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
permissions:
contents: write
pull-requests: write
issues: write
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
# Not GITHUB_TOKEN, so the release PR triggers test.yml
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

npm-publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Update npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

- name: Build the package
run: npm run build

- name: Publish to npm
run: npm publish --access public

deploy:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm

- name: Configure git
run: |
git config user.name "GitHubActions"
git config user.email "<deploy@actions.openscd.github.io>"

- name: Install dependencies
run: npm ci

- name: Bundle
run: npm run-script bundle

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
34 changes: 0 additions & 34 deletions .github/workflows/test-on-pr-branch.yml

This file was deleted.

97 changes: 85 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,104 @@
name: Test
on: push

on:
# main is tested by release.yml, which calls this workflow and only releases
# when it passes
push:
branches-ignore:
- main
pull_request:
workflow_call:
inputs:
visual:
description: Also run the visual regression tests
type: boolean
default: false

jobs:
test:
runs-on: ubuntu-latest
unit:
name: Lint and unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

# A documentation image which links to a missing screenshot baseline
# stops the whole documentation site from building.
- name: Check the documentation images
run: |
broken=$(find docs -xtype l)
if [ -n "$broken" ]; then
echo "::error::These documentation images link to screenshot baselines which do not exist. Add the 'update-visual-baselines' label to make them."
echo "$broken"
exit 1
fi

- name: Cache Playwright browsers
uses: actions/cache@v4
with:
lfs: 'true'
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Playwright browser
run: npx playwright install --with-deps chromium

- name: Run unit tests with coverage
run: npm test

- name: Upload coverage report
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage
path: coverage/lcov-report
retention-days: 7
if-no-files-found: ignore

# Screenshot tests run for pull requests and before a release. A missing
# baseline fails the run. Baselines are owned by CI and are not updated
# locally.
visual:
name: Visual regression tests
if: github.event_name == 'pull_request' || inputs.visual
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
cache: npm

- name: Install dependencies
run: npm ci

- name: Install playwright browsers
run: npx playwright install --with-deps
- name: Install Playwright browser
run: npx playwright install --with-deps chromium

- name: Run tests
run: npm run-script test
- name: Run visual regression tests
run: npm run test:visual

- name: Explain how to fix visual test failures
if: failure()
run: |
echo "::error::Visual tests failed. If baselines are missing or the change is intended, add the 'update-visual-baselines' label to this pull request (or run the 'Update visual baselines' workflow) and review the committed images."

- name: Create visual test failures artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: visual-test-failures
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/update-visual-baselines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Update visual baselines

# Screenshot baselines are owned by CI because rendering differs between
# machines. Create or update them after a deliberate visual change or when a
# screenshot test is added, then review the committed images in the pull request.
#
# Two ways to run this:
# * Add the `update-visual-baselines` label to a pull request. This works from
# the pull request's branch, so it needs nothing on the default branch. The
# label is removed when the run finishes so it can be added again.
# * Run it by hand from the Actions tab. GitHub only lists a manually triggered
# workflow once this file is on the default branch.
on:
workflow_dispatch:
pull_request:
types: [labeled]

permissions:
contents: write
pull-requests: write

jobs:
update:
name: Update baselines
# Pull requests from forks cannot be pushed to
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event.label.name == 'update-visual-baselines' &&
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm

- name: Install dependencies
run: npm ci

- name: Install Playwright browser
run: npx playwright install --with-deps chromium

- name: Regenerate baselines
run: npx oscd test --update

- name: Commit changed baselines
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add test/screenshots/baseline
if git diff --cached --quiet; then
echo "Baselines are already up to date"
else
git commit -m "test: update visual baselines"
git push
fi

- name: Remove the label so it can be added again
if: always() && github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label update-visual-baselines
Loading
Loading