Skip to content

Commit 5b0c5eb

Browse files
committed
Merge remote-tracking branch 'origin/main' into docs-input-changed-variant-name
# Conflicts: # __snapshots__/textarea/showcase/chromium/DBTextarea-should-match-screenshot-1/DBTextarea-should-match-screenshot.png # __snapshots__/textarea/showcase/firefox/DBTextarea-should-match-screenshot-1/DBTextarea-should-match-screenshot.png # __snapshots__/textarea/showcase/mobile-chrome/DBTextarea-should-match-screenshot-1/DBTextarea-should-match-screenshot.png
2 parents 030808c + 138055c commit 5b0c5eb

File tree

79 files changed

+4335
-3369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4335
-3369
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@db-ux/agent-cli"
1919
]
2020
],
21-
"ignore": ["scripts"],
21+
"ignore": ["scripts", "@db-ux/core-web", "@db-ux/docs", "@db-ux/e2e", "angular-showcase", "angular-ssr-showcase", "next-showcase", "nuxt-showcase", "patternhub", "react-showcase", "stencil-showcase", "vue-showcase"],
2222
"linked": [],
2323
"access": "public",
2424
"baseBranch": "origin/main",

.config/.jscpd.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
"packages/foundations/assets/icons/functional/fonts/**",
4848
"packages/foundations/assets/icons/fonts/**",
4949
"packages/foundations/dev",
50+
"packages/migration/test/**/has-changes.txt",
51+
"packages/migration/test/**/no-change.txt",
5052
"showcases/**/results/**",
5153
"showcases/angular-showcase/.angular/cache",
5254
"showcases/angular-showcase/.angular/cache/**",

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ body:
99
value: |
1010
Thank you for taking the time to fill out this bug report! Feedback from the community is highly valuable to us, as it helps improve our work and benefits all users. 🙂
1111
12-
We would be more than happy if you could share a URL if the problem occurs in our [documentation](https://design-system.deutschebahn.com/core-web/), or at least some code. Even better would be a [working example on StackBlitz or CodeSandbox](https://design-system.deutschebahn.com/core-web/version/latest/foundations/playgrounds). Please keep in mind not to share any internal information or data this way. This includes internal URLs. Only use sample material.
12+
We would be more than happy if you could share a URL if the problem occurs in our [documentation](https://design-system.deutschebahn.com/core-web/), or at least some code. Even better would be a [working example on StackBlitz or CodeSandbox](https://design-system.deutschebahn.com/core-web/version/latest/foundations/playgrounds).
13+
14+
⚠️ **Please keep in mind to use anonymous sample material:**
15+
- **Do not share any personal data (e.g., names, email addresses, customer data)**
16+
- **Do not attach any confidential company information**
17+
- **Do not upload full-screen product screenshots**
18+
- **Do not share internal URLs.**
1319
1420
- type: checkboxes
1521
id: component

.github/ISSUE_TEMPLATE/github_copilot_instructions.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ body:
88
value: |
99
Thanks for taking the time to share your feedback! This form is to help us improve the `.github/copilot-instructions.md` documentation provided in the design system by using the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) node package.
1010
11-
Please keep in mind not to share any internal information or data this way. This includes internal URLs. Only use sample material.
11+
⚠️ **Please keep in mind to use anonymous sample material:**
12+
- **Do not share any personal data (e.g., names, email addresses, customer data)**
13+
- **Do not attach any confidential company information**
14+
- **Do not upload full-screen product screenshots**
15+
- **Do not share internal URLs.**
1216
1317
- type: input
1418
id: model-used

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ updates:
5959
- "@angular*"
6060
- "@angular-devkit*"
6161
- "ng-packagr"
62-
update-types:
63-
- "minor"
6462
react:
6563
patterns:
6664
- "react"

.github/workflows/00-scan-secrets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
TruffleHog:
11+
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
1112
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
1213
steps:
1314
- name: ⏬ Checkout repo
@@ -17,7 +18,6 @@ jobs:
1718

1819
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
1920
- name: 🐷 TruffleHog OSS
20-
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
2121
uses: trufflesecurity/trufflehog@main
2222
with:
2323
# Setting base to an empty string scans the entire branch, per TruffleHog OSS advanced usage:

.github/workflows/01-get-playwright-version.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ on:
1010
version:
1111
description: "Current playwright version"
1212
value: ${{ jobs.playwright-version.outputs.version }}
13+
test-ally:
14+
description: "If aria-snapshots are changed"
15+
value: ${{ jobs.playwright-version.outputs.test-ally }}
1316

1417
jobs:
1518
playwright-version:
1619
name: Get and save publish version
1720
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
1821
outputs:
1922
version: ${{ steps.version.outputs.version }}
23+
test-ally: ${{ steps.ally.outputs.test-ally }}
2024
steps:
2125
- name: ⏬ Checkout repo
2226
uses: actions/checkout@v5
27+
with:
28+
fetch-depth: 0
29+
fetch-tags: false
2330

2431
- name: 🔄 Init Cache
2532
uses: ./.github/actions/npm-cache
@@ -29,3 +36,11 @@ jobs:
2936
run: |
3037
OUTPUT=$(npx --no tsx scripts/github/get-playwright-version.ts)
3138
echo "version=$OUTPUT" >> $GITHUB_OUTPUT
39+
40+
- name: 👩 Should Test a11y
41+
id: ally
42+
shell: bash
43+
run: |
44+
ARIA_MAIN=$(npx --no tsx scripts/github/snapshot-changes/check-main-aria.ts)
45+
echo "test-ally=$ARIA_MAIN"
46+
echo "test-ally=$ARIA_MAIN" >> $GITHUB_OUTPUT

.github/workflows/01-init-playwright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
# TODO: enable again after guidepup controlling Voiceover on MacOS 14 and 15 gets more stable
21+
# https://github.com/actions/runner-images/issues/11257 needs to get fixed for that
2122
# os: [macos-13, windows-2022]
2223
os: [windows-2022] # macOS is not perfectly supported yet, we disable it for now
2324
steps:

.github/workflows/02-e2e-screen-reader.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
# TODO: enable again after guidepup controlling Voiceover on MacOS 14 and 15 gets more stable
22+
# https://github.com/actions/runner-images/issues/11257 needs to get fixed for that
2223
# os: [macos-13, windows-2022]
2324
os: [windows-2022] # macOS is not perfectly supported yet, we disable it for now
2425
shardIndex: [1, 2, 3, 4]

.github/workflows/02-e2e-showcases.yml

Lines changed: 15 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,9 @@ on:
99
showcase:
1010
required: true
1111
type: string
12-
outputs:
13-
aria-snapshots-changed:
14-
description: "If aria snapshots changed in current PR"
15-
value: ${{ jobs.playwright-showcases.outputs.aria-snapshots-changed }}
16-
aria-snapshots-changed-to-main:
17-
description: "If aria snapshots changed to main branch"
18-
value: ${{ jobs.playwright-showcases.outputs.aria-snapshots-changed-to-main }}
19-
visual-snapshots-changed:
20-
description: "If visual snapshots changed"
21-
value: ${{ jobs.playwright-showcases.outputs.visual-snapshots-changed }}
12+
test-ally:
13+
required: false
14+
type: string
2215

2316
permissions:
2417
actions: write
@@ -32,20 +25,15 @@ jobs:
3225
image: mcr.microsoft.com/playwright:v${{ inputs.version }}
3326
options: --user 1001
3427
strategy:
35-
fail-fast: false
28+
fail-fast: true
3629
matrix:
37-
shardIndex: [1, 2, 3, 4]
38-
shardTotal: [4]
39-
outputs:
40-
aria-snapshots-changed: ${{ steps.aria-snapshots.outputs.aria-snapshots-changed }}
41-
aria-snapshots-changed-to-main: ${{ steps.aria-snapshots.outputs.aria-snapshots-changed-to-main }}
42-
visual-snapshots-changed: ${{ steps.visual-snapshots.outputs.visual-snapshots-changed }}
30+
shardIndex: [1, 2, 3, 4, 5]
31+
shardTotal: [5]
4332
steps:
4433
- name: ⏬ Checkout repo
4534
uses: actions/checkout@v5
4635
with:
47-
fetch-depth: 0 # fetch all history for all branches
48-
fetch-tags: false
36+
fetch-depth: 2
4937

5038
- name: 🔄 Init Cache
5139
uses: ./.github/actions/npm-cache
@@ -89,60 +77,37 @@ jobs:
8977
shell: bash
9078
if: github.event.pull_request != null
9179
run: |
92-
npm run test:aria-snapshots --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --update-snapshots
93-
OUTPUT=$(npx --no tsx scripts/github/snapshot-changes/check-aria.ts)
94-
if [ "$OUTPUT" = "true" ]; then
95-
echo "aria-snapshots-changed=$OUTPUT" >> $GITHUB_OUTPUT
96-
fi
97-
OUTPUT=$(npx --no tsx scripts/github/snapshot-changes/check-main-aria.ts)
98-
if [ "$OUTPUT" = "true" ]; then
99-
echo "aria-snapshots-changed-to-main=$OUTPUT" >> $GITHUB_OUTPUT
100-
fi
80+
npm run test:aria-snapshots --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
10181
102-
- name: 👩‍🔬 Test axe-core with Playwright 🎭
82+
- name: 👩‍🔬 Test visual-snapshots with Playwright 🎭
83+
id: visual-snapshots
10384
shell: bash
10485
if: github.event.pull_request != null
10586
run: |
106-
npm run test:axe-core --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
87+
npm run test:visual-snapshots --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
10788
108-
- name: 👩‍🔬 Test visual-snapshots with Playwright 🎭
109-
id: visual-snapshots
89+
- name: 👩‍🔬 Test axe-core with Playwright 🎭
11090
shell: bash
11191
if: github.event.pull_request != null
11292
run: |
113-
npm run test:visual-snapshots --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --update-snapshots
114-
OUTPUT=$(npx --no tsx scripts/github/snapshot-changes/check-visual.ts)
115-
if [ "$OUTPUT" = "true" ]; then
116-
echo "visual-snapshots-changed=$OUTPUT" >> $GITHUB_OUTPUT
117-
fi
93+
npm run test:axe-core --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
11894
11995
- name: 👩‍🔬 Test a11y-checker with Playwright 🎭
12096
shell: bash
12197
if: |
12298
github.event.pull_request != null &&
123-
steps.aria-snapshots.outputs.aria-snapshots-changed-to-main == 'true'
99+
inputs.test-ally == 'true'
124100
run: |
125101
npm run test:a11y-checker --workspace=${{ inputs.showcase }} -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
126102
127-
- name: 🌳 Log Snapshot Changes
128-
if: github.event.pull_request != null
129-
env:
130-
ARIA: ${{ steps.aria-snapshots.outputs.aria-snapshots-changed}}
131-
VISUAL: ${{ steps.visual-snapshots.outputs.visual-snapshots-changed}}
132-
ARIA_MAIN: ${{ steps.aria-snapshots.outputs.aria-snapshots-changed-to-main }}
133-
run: |
134-
echo "ARIA: $ARIA"
135-
echo "VISUAL: $VISUAL"
136-
echo "ARIA_MAIN: $ARIA_MAIN"
137-
138103
- name: 🔣 Print GitHub Report
139104
if: failure()
140105
shell: bash
141106
run: |
142107
npx playwright merge-reports --reporter github ./blob-report
143108
144109
- name: 🆙 Upload test results
145-
if: failure()
110+
if: ${{ failure() }}
146111
uses: actions/upload-artifact@v4
147112
with:
148113
name: ${{ inputs.showcase }}-playwright-results-${{ matrix.shardIndex }}

0 commit comments

Comments
 (0)