diff --git a/CHANGELOG.md b/CHANGELOG.md index a752c587df..98ec7b4102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ___Note:__ Yet to be released changes appear here._ ### General * `FEAT`: support Camunda 8.8 +* `FEAT`: recognize documentation URLs provided via lint rules ([#4491](https://github.com/camunda/camunda-modeler/issues/4491)) * `DEPS`: update to `@camunda/improved-canvas@1.7.6` * `DEPS`: update to `@camunda/linting@3.32.1` diff --git a/client/src/app/panel/tabs/linting/LintingTab.js b/client/src/app/panel/tabs/linting/LintingTab.js index ec3d4639dc..c72d458360 100644 --- a/client/src/app/panel/tabs/linting/LintingTab.js +++ b/client/src/app/panel/tabs/linting/LintingTab.js @@ -91,7 +91,7 @@ function LintingTabItem(props) { const { category, - documentation = {}, + meta, message, rule } = report; @@ -109,7 +109,7 @@ function LintingTabItem(props) { ; } - const { url: documentationUrl = null } = documentation; + const documentationUrl = meta?.documentation?.url; const reportName = getReportName(report); return
', function() { name: 'Foo', message: 'Foo message', rule: 'foo-rule', - documentation: { - url: 'https://foo.bar' + meta: { + documentation: { + url: 'https://foo.bar' + } } } ]