Skip to content

build: bring bpmn-to-code onto miragon-brand 1.32.0 - #291

Closed
emaarco wants to merge 2 commits into
mainfrom
emaarco/miragon-brand-1-32
Closed

emaarco wants to merge 2 commits into
mainfrom
emaarco/miragon-brand-1-32

Conversation

@emaarco

@emaarco emaarco commented Nov 10, 2026

Copy link
Copy Markdown
Member

Why

miragon-brand 1.32.0 adds brand-assets.mjs, which records every file a repo copies from the plugin in .miragon/brand-assets.yaml and lets CI catch hand edits with a checksum file. The web app's token copy was out of date, and the vendored docs kit was still on 1.25.1.

What

  • Token copy of the web app: bpmn-to-code-web/src/main/resources/static/css/cd-tokens.generated.css is now listed in .miragon/brand-assets.yaml (source skills/modeler-tool-design/assets/cd-tokens.generated.css, because the web app is Miragon's own product UI; the corporate-design copy is byte-identical) and refreshed to 1.32.0. The new file only adds variables (--cd-shell-*, --cd-kachel-*); all 40 --cd-* variables the web app uses still exist, so no stylesheet change was needed.
  • .miragon/brand-assets.sha256 holds the checksum, and a new job "Brand Asset Checksums" in build-backend.yml runs sha256sum -c .miragon/brand-assets.sha256 on every pull request, without Node.
  • The copy and .miragon/brand-assets.* are excluded from brand-lint (ignorieren in .miragon/brand.json), from editorconfig rules, and marked -text linguist-generated in .gitattributes so line-ending conversion cannot change the bytes.
  • The contributing guide explains how to refresh the copy with brand-assets.mjs.
  • Docs kit in docs/.vitepress/miragon/ re-vendored byte-identically from 1.32.0: new theme/ZoomOverlay.vue (images and diagrams open full screen), new theme/abschnitte.mjs / abschnitte.d.mts (Mermaid section colours like designIQ), updated theme/index.ts, theme/miragon.css and manifest.json.
  • vite override in docs/package.json moves from 6.4.3 to the kit's pin 6.4.5, with the lockfile updated. The other templates (docs.yml, theme-index.ts, config.ts) did not change between 1.25.1 and 1.32.0, so the repo's own theme with HomeLanding stays as is. No workflow pins Miragon/corporate-identity with a ref:.

Verification

  • node plugins/miragon-brand/scripts/brand-assets.mjs <repo> --check from Miragon/corporate-identity v1.32.0 exits 0, and sha256sum -c .miragon/brand-assets.sha256 reports OK.
  • ./gradlew :bpmn-to-code-web:build (without the lint tasks, which CI runs separately) passes.
  • node docs/.vitepress/miragon/check.mjs --ci <corporate-identity v1.32.0> reports all 16 files unchanged and equal to the CI; DOCS_BASE=/bpmn-to-code/ npm run build in docs/ passes; npm ls vite mermaid shows one vite 6.4.5 and one mermaid 12.2.0.
  • brand-lint on docs/contributing and the web app's static files finds nothing new.
  • Not checked: the docs and the web app in a browser (zoom overlay, Mermaid colours, light and dark), so there are no screenshots.

Out of scope / Follow-ups

Refs Miragon/corporate-identity#98

@github-actions

Copy link
Copy Markdown
Contributor

Test Coverage

Module Line Coverage
bpmn-to-code-core 98.1% (2207/2249 lines)
bpmn-to-code-gradle 54.2% (52/96 lines)
bpmn-to-code-maven 100.0% (52/52 lines)
bpmn-to-code-web 99.4% (160/161 lines)
bpmn-to-code-testing 95.5% (128/134 lines)
bpmn-to-code-runtime 98.9% (181/183 lines)
bpmn-to-code-cli 100.0% (61/61 lines)

@emaarco

emaarco commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Discarded: the migration is restarted without any docs changes, in a new pull request.

@emaarco emaarco closed this Nov 10, 2026
@emaarco
emaarco deleted the emaarco/miragon-brand-1-32 branch November 10, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant