Skip to content

chore(web): track brand token copy in .miragon/brand-assets.yaml - #292

Merged
emaarco merged 1 commit into
mainfrom
emaarco/miragon-yaml-configs
Nov 10, 2026
Merged

emaarco merged 1 commit into
mainfrom
emaarco/miragon-yaml-configs

Conversation

@emaarco

@emaarco emaarco commented Nov 10, 2026

Copy link
Copy Markdown
Member

Why

The web app's token stylesheet was a hand-made copy of the Miragon tokens. Nothing recorded where it came from or noticed a stale copy. This PR moves it onto the .miragon/ contract of miragon-brand 1.32.0, so brand-assets.mjs refreshes it and CI notices a copy edited by hand.

What

  • .miragon/brand-assets.yaml lists bpmn-to-code-web/src/main/resources/static/css/cd-tokens.generated.css, and .miragon/brand-assets.sha256 holds its checksum. Both were written by brand-assets.mjs.
  • Source: skills/modeler-tool-design/assets/cd-tokens.generated.css, because bpmn-to-code-web is an app Miragon builds. The corporate-design file is byte-identical in 1.32.0.
  • The copy is now 1.32.0. It only adds variables (26 lines). No variable was removed or renamed, and all 40 var(--cd-*) names used in bpmn-to-code-web still exist.
  • build-backend.yml gets a Check brand asset copies job. It runs sha256sum -c .miragon/brand-assets.sha256 with no Node setup, and without the backend path filter, so it runs on every PR to main.
  • brand-lint already skips *.generated.* files, and .gitattributes / .editorconfig do not rewrite the copy, so .miragon/brand.json was not changed.

Verification

  • brand-assets.mjs --check exits 0, and sha256sum -c .miragon/brand-assets.sha256 passes locally.
  • Compared the var(--cd-*) usages in bpmn-to-code-web against the new token file. None are missing.
  • The Gradle build and tests run in CI. They were not run locally.

Out of scope / Follow-ups

  • docs/ was left alone on purpose, including the docs kit copy in docs/.vitepress/miragon/theme/ (it has its own manifest) and docs/contributing/.

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 marked this pull request as ready for review November 10, 2026 18:07
@emaarco
emaarco merged commit 5fc0c22 into main Nov 10, 2026
13 checks passed
@emaarco
emaarco deleted the emaarco/miragon-yaml-configs branch November 10, 2026 18:07
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