Skip to content

Commit 6033917

Browse files
authored
Merge pull request #19787 from wireapp/dev
chore(release): Release Candidate β€” 2025-11-20
2 parents 5620a27 + 263126e commit 6033917

File tree

183 files changed

+4418
-4721
lines changed

Some content is hidden

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

183 files changed

+4418
-4721
lines changed

β€Ž.browserslistrcβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
chrome >= 99, not dead
2-
firefox >= 99, not dead
3-
edge >= 99, not dead
1+
>0.5%, baseline widely available, last 1 year, not dead
Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
## Description
1+
# Pull Request
22

3-
<!-- Uncomment this section if your PR has UI changes -->
4-
<!--
5-
## Screenshots/Screencast (for UI changes)
6-
-->
3+
## Summary
74

8-
## Checklist
5+
- What did I change and why?
6+
- Risks and how to roll out / roll back (e.g. feature flags):
97

10-
- [ ] mentions the JIRA issue in the PR name (Ex. [WPB-XXXX])
11-
- [ ] PR has been self reviewed by the author;
12-
- [ ] Hard-to-understand areas of the code have been commented;
13-
- [ ] If it is a core feature, unit tests have been added;
8+
---
149

15-
<!-- Uncomment this section if it is necessary to understand the PR -->
16-
<!-- ## Important Details for the Reviewers
10+
## Security Checklist (required)
1711

18-
- use (x) data
19-
- can be reviewed commit-by-commit
20-
- be sure to look at ... -->
12+
- [ ] **External inputs are validated & sanitized** on client and/or server where applicable.
13+
- [ ] **API responses are validated**; unexpected shapes are handled safely (fallbacks or errors).
14+
- [ ] **No unsafe HTML is rendered**; if unavoidable, sanitization is applied **and** documented where it happens.
15+
- [ ] **Injection risks (XSS/SQL/command) are prevented** via safe APIs and/or escaping.
16+
17+
## Standards Acknowledgement (required)
18+
19+
- [ ] I have read and this PR **upholds** our [Coding Standards](https://github.com/wireapp/wire-webapp/tree/docs/coding-standards.md) and [Tech Radar Choices](https://github.com/wireapp/wire-webapp/tree/docs/tech-radar.md).
20+
21+
---
22+
23+
## Screenshots or demo (if the user interface changed)
24+
25+
## Notes for reviewers
26+
27+
- Trade-offs:
28+
- Follow-ups (linked issues):
29+
- Linked PRs (e.g. web-packages):
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Copilot β€” Repository Instructions (Security-first)
2+
3+
## Goals & tone
4+
5+
- Apply our **Web Coding Standards** during **PR description drafting** and **code review**.
6+
- Prefer **specific, actionable** comments with short code examples.
7+
- Use severities: **[Blocker]**, **[Important]**, **[Suggestion]**.
8+
- Do **not** nitpick items handled by automation (formatting, lint rules).
9+
10+
Related docs (important):
11+
12+
- **Coding Standards:** docs/coding-standards.md
13+
- **Tech Radar:** docs/tech-radar.md
14+
15+
**Additional rules (open when relevant)**
16+
17+
- Security: `.github/instructions/security.instructions.md`
18+
- Accessibility: `.github/instructions/accessibility.instructions.md`
19+
- React/UX: `.github/instructions/react.instructions.md`
20+
- TypeScript: `.github/instructions/typescript.instructions.md`
21+
22+
---
23+
24+
## PR description β€” Auto-checks Copilot should perform
25+
26+
---
27+
28+
## Security Checklist (required)
29+
30+
- [ ] **External inputs validated & sanitised** (client/server as applicable). _Tick if_ validation/sanitisation is visible before use.
31+
- [ ] **API responses validated**; unexpected shapes handled (fallbacks/errors). _Tick if_ guards/schemas are present at boundaries.
32+
- [ ] **No unsafe HTML is rendered**; if unavoidable, sanitisation is applied **and** noted where it happens. _Fail signal:_ `dangerouslySetInnerHTML` without sanitiser (e.g., `DOMPurify.sanitize`).
33+
- [ ] **Injection risks (XSS/SQL/command) mitigated** via safe APIs/escaping. _Tick if_ sinks are avoided or safely wrapped.
34+
35+
---
36+
37+
## When reviewing pull requests (Copilot)
38+
39+
**Scope & approach**
40+
41+
- Review **from the code diff only**; do not assume runtime behavior.
42+
- Use severities: **[Blocker]**, **[Important]**, **[Suggestion]**.
43+
- Provide concise, actionable comments; include a minimal before/after snippet where useful.
44+
45+
### Security (focus of inline review)
46+
47+
- Avoid/flag `dangerouslySetInnerHTML`; if present, require sanitisation and name the sanitizer.
48+
- No raw DOM insertion into trusted contexts; validate URLs/redirect targets.
49+
- Validate untrusted inputs and API responses **before** use; prefer schemas/guards.
50+
- Check for secrets/tokens in code, configs, and tests.
51+
- Call out missing error/fallback paths on boundary failures.
52+
53+
### Accessibility (minimum check)
54+
55+
- Keyboard access (Esc closes dialogs), visible focus, correct roles/labels.
56+
- Use of `aria-live` for async status where appropriate.
57+
58+
### Everything else
59+
60+
- For imports/TS/React/testing/naming/readability: **refer to** the [Coding Standards](docs/coding-standards.md).
61+
- If a standard is violated, link the relevant section and suggest a minimal change.
62+
63+
### Technology choices
64+
65+
- Compare any new dependencies in `package.json`/lockfiles to the [Tech Radar](docs/tech-radar.md).
66+
- If not **Adopt**/**Trial**, mark **[Blocker]** and request an RFC/approval link.
67+
- For **Trial**, ensure usage is narrowly scoped and success criteria exist.
68+
69+
---
70+
71+
## Comment format Copilot should use
72+
73+
**Top-level summary**
74+
75+
- Verdict: **Ready** / **Changes requested**, with counts of Blockers/Important/Suggestions.
76+
- Mini checklist (only items evidenced by diff): Security, Accessibility, Tech choices, (then link to Coding Standards for any non-security notes).
77+
78+
**Inline comments**
79+
80+
- One issue per comment with severity, file:line, brief reason, and (when helpful) a minimal suggested patch.
81+
82+
**Approval**
83+
84+
- Approve only if there are **no Blockers** and Important items are fixed or explicitly deferred with rationale.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
appliesTo:
3+
paths:
4+
- 'src/**/*'
5+
---
6+
7+
# Copilot β€” Accessibility
8+
9+
- Ensure keyboard access is coded: focusable controls; Escape key closes dialogs; trap & restore focus in dialogs.
10+
- Use semantic elements; provide names/labels; add `aria-live` for async status updates where relevant.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
appliesTo:
3+
paths:
4+
- 'src/**/*.tsx'
5+
---
6+
7+
# Copilot β€” React code review rules
8+
9+
- Prefer event handlers or a data tool over `useEffect`.
10+
- If an effect is necessary, it must: (1) do one thing, (2) have stable deps, (3) avoid inline objects/functions in deps.
11+
- No derived state from props unless justified.
12+
- Keys in lists: stable unique ids; never array indexes.
13+
- Keep UI components β€œdumb”: render from props; move business logic to a separate module or hook.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
appliesTo:
3+
paths:
4+
- 'src/**/*'
5+
---
6+
7+
# Copilot β€” Security hygiene
8+
9+
- Validate and sanitise **all untrusted input** and **all API responses**.
10+
- Avoid `dangerouslySetInnerHTML`. If used, it must be sanitised and commented with the sanitizer reference.
11+
- Avoid raw DOM insertion and unvalidated URLs; suggest safe helpers.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
appliesTo:
3+
paths:
4+
- 'src/**/*.ts'
5+
- 'src/**/*.tsx'
6+
---
7+
8+
# Copilot β€” TypeScript safety
9+
10+
- Do not use `any`, type casts (`as T`/`<T>`), or the non-null operator `!`.
11+
- Exported APIs must have explicit types. Narrow with type guards (or schemas) at boundaries.
12+
- Handle `null`/`undefined` explicitly; avoid `@ts-ignore` (unless narrowly scoped with a reason).

β€Ž.github/workflows/jira-lint-and-link.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
if: ${{ github.actor != 'dependabot[bot]' }}
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: cakeinpanic/jira-description-action@v0.9.0
11+
- uses: cakeinpanic/jira-description-action@master
1212
name: jira-description-action
1313
with:
1414
github-token: ${{ secrets.GITHUB_TOKEN }}
1515
jira-token: ${{ secrets.JIRA_TOKEN }}
1616
jira-base-url: https://wearezeta.atlassian.net
1717
skip-branches: '^(dev|master|release\/*)$'
18-
fail-when-jira-issue-not-found: false
18+
fail-when-jira-issue-not-found: true

β€Ž.github/workflows/playwright-cells-crit-flow-tests-manual.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
environment: ${{ github.event.inputs.environment }}
2121
secrets:
2222
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
23+
WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}

β€Ž.github/workflows/playwright-cells-crit-flow-tests-scheduled.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jobs:
1616
environment: ${{ matrix.environment }}
1717
secrets:
1818
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
19+
WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}

0 commit comments

Comments
Β (0)