From d60d4caf829e441f33fbcee88f1c61db06176bf9 Mon Sep 17 00:00:00 2001 From: I531348 Date: Wed, 4 Mar 2026 08:56:46 +0100 Subject: [PATCH 1/5] add reuse lint check corresponding to gh badge check --- .github/workflows/ci-checks.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci-checks.yaml b/.github/workflows/ci-checks.yaml index a8ca7fb366..7c66c8e52a 100644 --- a/.github/workflows/ci-checks.yaml +++ b/.github/workflows/ci-checks.yaml @@ -25,6 +25,15 @@ jobs: reuse-compliance: uses: cloudoperators/common/.github/workflows/shared-reuse.yaml@main + reuse-compliance-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v6 # WILL USED HASH, TESTING + license-headers: permissions: contents: write From d6cb16838ed291029aaea2b3d2cde6c341845797 Mon Sep 17 00:00:00 2001 From: I531348 Date: Mon, 9 Mar 2026 10:52:08 +0100 Subject: [PATCH 2/5] remove script for reqriting in new ticket --- .../generateTailwindThemeClassesJson.ts | 105 ------------------ 1 file changed, 105 deletions(-) delete mode 100644 packages/ui-components/src/docs/ColorPalette/generateTailwindThemeClassesJson.ts diff --git a/packages/ui-components/src/docs/ColorPalette/generateTailwindThemeClassesJson.ts b/packages/ui-components/src/docs/ColorPalette/generateTailwindThemeClassesJson.ts deleted file mode 100644 index bbe08455d8..0000000000 --- a/packages/ui-components/src/docs/ColorPalette/generateTailwindThemeClassesJson.ts +++ /dev/null @@ -1,105 +0,0 @@ -// /* -// * SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors -// * SPDX-License-Identifier: Apache-2.0 -// */ - -// import fs from "fs" -// import tailwindConfig from "../../../tailwind.config" - -/* - Generates Tailwindclasses in a js file. So Tailwind generates the classes and so they are useable in the documentation, which colors are available. -*/ - -const generateTailwindThemeClassesJson = () => { - // fs.writeFileSync( - // "./src/docs/ColorPalette/TailwindColors.ts", - // "/*\n" + - // " * SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors\n" + - // " * SPDX-License-Identifier: Apache-2.0\n" + - // " */\n\n" + - // "/* Do not change this File. This is an (by generateTailwindThemeClassesJson.js) auto-generated file for documentation issues." + - // "\nIt is needed for the ColorPalette and JunoColorPalette to show the documented colors." + - // "\nWe need to do this because Tailwind classes can't be concatenated at runtime via String interpolation. It only works if you use the full class name.*/" + - // "\n// prettier-ignore" + - // "\nexport const getThemeColors = " + - // JSON.stringify(getColors(), null, 2) + - // "\n// prettier-ignore" + - // "\nexport const getThemeTextColors = " + - // JSON.stringify(getTextColors(), null, 2) + - // "\n// prettier-ignore" + - // "\nexport const getJunoColors = " + - // JSON.stringify(getJunoColors(), null, 2) + - // "\n" - // ) - // } - // const getColors = () => { - // const allowList = [ - // "accent", - // "danger", - // "error", - // "info", - // "success", - // "warning", - // "focus", - // "background-lvl-0", - // "background-lvl-1", - // "background-lvl-2", - // "background-lvl-3", - // "background-lvl-4", - // "background-lvl-5", - // ] - // const theme = tailwindConfig.theme.colors.theme - // const colors: Record = {} - // Object.keys(theme).forEach((colorName) => { - // if (allowList.includes(colorName)) { - // colors[colorName] = `jn:bg-theme-${colorName}` - // } - // }) - // return colors - // } - // const getTextColors = () => { - // const allowList = ["highest", "high", "default", "light", "disabled", "link"] - // const theme = tailwindConfig.theme.extend.textColor.theme - // const colors: Record = {} - // Object.keys(theme).forEach((colorName) => { - // if (allowList.includes(colorName)) { - // colors[colorName] = `jn:text-theme-${colorName}` - // } - // }) - // return colors - // } - // const getJunoColors = () => { - // const allowList = [ - // "juno-grey-blue", - // "juno-blue", - // "juno-red", - // "juno-turquoise", - // "juno-grey-light", - // "sap-grey", - // "sap-blue", - // "sap-gold", - // "sap-purple", - // "sap-green", - // "sap-red", - // "white", - // "black", - // ] - // const colorList = tailwindConfig.theme.colors - // const colors: Record = {} - // Object.keys(colorList).forEach((colorName) => { - // if (allowList.includes(colorName)) { - // colors[colorName] = `jn:bg-${colorName}` - // const colorfam = Object.keys(colorList[colorName as keyof typeof colorList]) - // if (colorfam) { - // colorfam.map((subcolor) => { - // if (subcolor != "DEFAULT") { - // colors[`${colorName}-${subcolor}`] = `jn:bg-${colorName}-${subcolor}` - // } - // }) - // } - // } - // }) - // return colors -} - -module.exports = { generateTailwindThemeClassesJson } From 8b9b5b11fdad8b3339dde6a0defd1b3c78810cd0 Mon Sep 17 00:00:00 2001 From: I531348 Date: Mon, 9 Mar 2026 11:16:16 +0100 Subject: [PATCH 3/5] change to commit version --- .github/workflows/ci-checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-checks.yaml b/.github/workflows/ci-checks.yaml index 7c66c8e52a..5641016bf5 100644 --- a/.github/workflows/ci-checks.yaml +++ b/.github/workflows/ci-checks.yaml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - name: REUSE Compliance Check - uses: fsfe/reuse-action@v6 # WILL USED HASH, TESTING + uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6 license-headers: permissions: From 0e444a390033b820b56f0d69e3d28c4d2431118c Mon Sep 17 00:00:00 2001 From: I531348 Date: Mon, 9 Mar 2026 11:19:24 +0100 Subject: [PATCH 4/5] mock issue --- .../ui-components/src/docs/ColorPalette/JunoColorPalette.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx b/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx index 6babb46e6a..d9b6051376 100644 --- a/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx +++ b/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx @@ -1,6 +1,6 @@ /* * SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors - * SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: Apache-2.0X */ import React from "react" From 4870e3880235684202a2d1782fbbf2fcaaf56068 Mon Sep 17 00:00:00 2001 From: I531348 Date: Mon, 9 Mar 2026 11:21:05 +0100 Subject: [PATCH 5/5] undo: mock issue --- .../ui-components/src/docs/ColorPalette/JunoColorPalette.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx b/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx index d9b6051376..6babb46e6a 100644 --- a/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx +++ b/packages/ui-components/src/docs/ColorPalette/JunoColorPalette.tsx @@ -1,6 +1,6 @@ /* * SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors - * SPDX-License-Identifier: Apache-2.0X + * SPDX-License-Identifier: Apache-2.0 */ import React from "react"