Skip to content

Commit

Permalink
Squashed 'linked-dependencies/matrix-react-sdk/' changes from df47422…
Browse files Browse the repository at this point in the history
…a082..e261ae81d87

e261ae81d87 Merge pull request #8 from tchapgouv/upgrade-v3.101.0
3c4fe5d93c2 chore(merge-conflict): spacepanel and packagejson
66003d918aa Merge matrix-react-sdk v3.101.0 into TCHAP
b705c9e6bc1 fix(theme-tac): use tchap theme for TAC button and badge
e810f9622ce v3.101.0
85685a27d67 Upgrade dependency to matrix-js-sdk@33.1.0
a79b5037661 feat(lowercase-invite): automatically lowercase field text in invite input
2a39b307bd9 feat(ff-screenshare): add feature flag screenshare on call
880ff5c7bbc v3.101.0-rc.1
83f238aad2c Upgrade dependency to matrix-js-sdk@33.1.0-rc.1
444e2765dd7 [Backport staging] Fix image upload preview size (#12612)
07ab7958513 feat(lasuite): add gaufre element in spacepanel
6dee68c7267 v3.101.0-rc.0
cc8c89e459d Upgrade dependency to matrix-js-sdk@33.1.0-rc.0
930b4e24247 Fix roving tab index crash `compareDocumentPosition` (#12594)
3e7511cc5df Keep dialog glass border on narrow screens (#12591)
4e3de2b27ee [create-pull-request] automated change (#12595)
afd6f63d7e1 Add missing a11y label to dismiss onboarding button in room list (#12587)
eee17f43c3d [create-pull-request] automated change (#12592)
8a0dcdd4de1 Update end-to-end-tests.yaml
7091ca02b00 Add hover / active state on avatsetting upload button (#12590)
aeea4bb8e10 Fix EditInPlace button styles (#12589)
1696c5cd0a6 Change avatarsetting componment to use a menu (#12585)
c0cbd687c2b [create-pull-request] automated change (#12584)
fc60eac2b44 [create-pull-request] automated change (#12583)
7e42ffb150c Fix incorrect assumptions about required fields in /search response (#12575)
ceafad32f90 Update babel monorepo to v7.24.6 (#12561)
3c8010b719e Fix display of no avatar in avatar setting controls (#12558)
cfa322cd626 New user profile UI in User Settings (#12548)
c4c1faff979 Add flag for tests to avoid double-reporting check (#12569)
39d0017411e Update typescript-eslint monorepo to v7.11.0 (#12566)
1677ed1be0e MSC4108 support OIDC QR code login (#12370)
ca7760789b7 Use LegacyRendezvousFailureReason over RendezvousFailureReason (#12578)
e867196c15c [create-pull-request] automated change (#12581)
99b24851d86 Update dependency stylelint to v16.6.1 (#12565)
c95fd179ba3 Update dependency @sentry/browser to v7.116.0 (#12563)
58664e7e7d9 Update dependency @playwright/test to v1.44.1 (#12562)
0a01320fca4 Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543)
5004456d82f [create-pull-request] automated change (#12577)
9680a36b145 Update end-to-end-tests.yaml
7cd822fa080 Update definitelyTyped (#12551)
48a291d5b0e Reset matrix-js-sdk back to develop branch
c68c33a884d Resetting package fields for development
c3a7c246087 Merge branch 'master' into develop
3ec0fe166fb v3.100.0
f894ae6b68f Upgrade dependency to matrix-js-sdk@33.0.0
ab6a94aa8f7 [create-pull-request] automated change (#12574)
f2d9f13f1b2 Update end-to-end-tests.yaml
cca684d7d62 feat(hide-threads): extends hidding thread with feature flags with TAC
30850709ef6 Build the playwright html report in the main workflow (#12570)
c3769addd3b [create-pull-request] automated change (#12573)
fa7486e415b [create-pull-request] automated change (#12572)
dff05f4ca8c Update CODEOWNERS
3912401db56 [create-pull-request] automated change (#12557)
18edb2e8117 Update all non-major dependencies (#12560)
aec15a6ac18 Pin playwright synapse docker image to 2 days ago (#12571)
7f49a3009e0 v3.100.0-rc.1
2e1c1d15fc9 Upgrade dependency to matrix-js-sdk@33.0.0-rc.0
ca16462265a Merge remote-tracking branch 'origin/develop' into staging
679b170bc5a Close the release announcement when a dialog is opened (#12559)
17ab5229422 Tooltip: close field tooltip when ESC is pressed (#12553)
e8bb2419c9d Fix tabbedview breakpoint width (#12556)
148a360598d Avoid using deprecated exports, fields, and duplicate code (#12555)
1973197eb69 [create-pull-request] automated change (#12554)
bc48fe4b8f2 Add seedrandom dep to `resolutions` (#12552)
88e8e2df03b Merge pull request #12549 from matrix-org/florianduros/tooltip/legacy-tooltip
d9f718e5892 Add more test for `ReactionsRowButton.tsx`
8f07672da13 Add more tests for `ReadReceiptGroup.tsx`
b6132db68f4 Merge branch 'develop' into florianduros/tooltip/legacy-tooltip
04741ae6a64 Add tests for `ReadReceiptGroup.tsx`
1190de90289 Migrate `TooltipTarget` usage to compound `Tooltip` (#12542)
0c28d37f4e0 Upgrade dependency to matrix-js-sdk@32.4.0
a6907a033e8 Use compound tooltip in `ReactionRowButton`
67c7514dcdd Delete `useTooltip.tsx`
25fa1238eca Use tooltip compound in `ReadReceiptPerson` component
dbe00e5889e Use tooltip compound in `ReadReceiptGroup` component
7d3b3d7f957 Use tooltip compound in `MessageComposer.tsx`
a5e4daa0d1f Deprecate `Tooltip.tsx`
a29cabe45a5 Report verification and recovery state to posthog (#12516)
f712b809e27 Remove code smell assertion identified by Sonar (#12547)
4f3dcb6bc98 Upgrade dependency to matrix-js-sdk@32.3.0
3342aa5ff8a Refactor some logic into common AvatarSetting component (#12544)
f6e919021ad Fix E2E icon display in room header (#12545)
1bb70c5b3bf Only report undecryptable events once (#12501)
3e103941d67 Cleanup work on `DecryptionFailureTracker` (#12546)
75562b1d1ba Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522)
8f3c8b35153 Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539)
2d0319ec1b0 Improve tooltip placement for space settings (#12541)
4e91d8b857f Update all non-major dependencies (#12530)
5109e7e4c0b Fix deformed avatar in call in a narrow timeline (#12538)
eed8d1538b8 Add more encryption properties to PostHog (#12415)
0c04ec1def3 Shown own sent state indicator even when showReadReceipts is disabled (#12540)
8b8b75e4a5b Update dependency eslint-plugin-unicorn to v53 (#12536)
5becbcb1d95 Update stylelint (#12534)
f1ef5ba02e4 Update dependency @sentry/browser to v7.114.0 (#12532)
0ed4d510c4f Update dependency @playwright/test to v1.44.0 (#12531)
6a9a02c281e Update dependency axe-core to v4.9.1 (#12529)
24df2e8cb76 Ensure we do not fire the verification mismatch modal multiple times (#12526)
113c3655636 Stop using deprecated methods, fields & exports (#12524)
bec8fdb3d32 Tooltip: Improve accessibility for  context menus (#12462)
580bc8771c6 Fix avatar in chat export (#12537)
a730e1d3d66 Update dependency @testing-library/jest-dom to v6.4.5 (#12528)
d184cacb6b1 Update definitelyTyped (#12527)
6b0cb75d82a Use kdb in space panel shortcut (#12525)
667a7548a72 Use `*` for italics as it doesn't break when used mid-word (#12523)

git-subtree-dir: linked-dependencies/matrix-react-sdk
git-subtree-split: e261ae81d8727438eed055febeb541a45f21170d
  • Loading branch information
marc.sirisak committed Jun 26, 2024
1 parent 90b2534 commit b9dc9c2
Show file tree
Hide file tree
Showing 216 changed files with 6,924 additions and 3,939 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ module.exports = {
"!matrix-js-sdk/src/secret-storage",
"!matrix-js-sdk/src/room-hierarchy",
"!matrix-js-sdk/src/rendezvous",
"!matrix-js-sdk/src/rendezvous/transports",
"!matrix-js-sdk/src/rendezvous/channels",
"!matrix-js-sdk/src/indexeddb-worker",
"!matrix-js-sdk/src/pushprocessor",
"!matrix-js-sdk/src/extensible_events_v1",
Expand Down
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
/src/stores/SetupEncryptionStore.ts @matrix-org/element-crypto-web-reviewers
/test/stores/SetupEncryptionStore-test.ts @matrix-org/element-crypto-web-reviewers

# Ignore translations as those will be updated by GHA for Localazy download
/src/i18n/strings
# Ignore the synapse plugin as this is updated by GHA for docker image updating
/playwright/plugins/homeserver/synapse/index.ts
29 changes: 2 additions & 27 deletions .github/workflows/end-to-end-tests-netlify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,13 @@ jobs:
statuses: write
deployments: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Download blob reports from GitHub Actions Artifacts
- name: Download HTML report
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
pattern: all-blob-reports-*
path: all-blob-reports
merge-multiple: true

- name: Merge into HTML Report
run: yarn playwright merge-reports --reporter=html,./playwright/flaky-reporter.ts ./all-blob-reports
env:
# Only pass creds to the flaky-reporter on main branch runs
GITHUB_TOKEN: ${{ github.event.workflow_run.head_branch == 'develop' && secrets.ELEMENT_BOT_TOKEN || '' }}

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
name: html-report
path: playwright-report
retention-days: 14

- name: 📤 Deploy to Netlify
uses: matrix-org/netlify-pr-preview@v3
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/end-to-end-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
build:
name: "Build Element-Web"
runs-on: ubuntu-latest
if: inputs.skip != true
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -163,5 +164,43 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: inputs.skip != true
with:
persist-credentials: false
repository: ${{ inputs.react-sdk-repository || github.repository }}

- uses: actions/setup-node@v4
if: inputs.skip != true
with:
cache: "yarn"

- name: Install dependencies
if: inputs.skip != true
run: yarn install --frozen-lockfile

- name: Download blob reports from GitHub Actions Artifacts
if: inputs.skip != true
uses: actions/download-artifact@v4
with:
pattern: all-blob-reports-*
path: all-blob-reports
merge-multiple: true

- name: Merge into HTML Report
if: inputs.skip != true
run: yarn playwright merge-reports --reporter=html,./playwright/flaky-reporter.ts ./all-blob-reports
env:
# Only pass creds to the flaky-reporter on main branch runs
GITHUB_TOKEN: ${{ github.event.workflow_run.head_branch == 'develop' && secrets.ELEMENT_BOT_TOKEN || '' }}

- name: Upload HTML report
if: inputs.skip != true
uses: actions/upload-artifact@v4
with:
name: html-report
path: playwright-report
retention-days: 14

- if: needs.playwright.result != 'skipped' && needs.playwright.result != 'success'
run: exit 1
45 changes: 45 additions & 0 deletions .github/workflows/playwright-image-updates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Playwright docker images
on:
workflow_dispatch: {}
schedule:
- cron: "0 6 * * *" # Every day at 6am UTC
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Update matrixdotorg/synapse image
run: |
docker pull "$IMAGE"
INSPECT=$(docker inspect --format='{{index .RepoDigests 0}}' "$IMAGE")
DIGEST=${INSPECT#*@}
sed -i "s/const DOCKER_TAG.*/const DOCKER_TAG = \"develop@$DIGEST\";/" playwright/plugins/homeserver/synapse/index.ts
env:
IMAGE: matrixdotorg/synapse:develop

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
branch: actions/playwright-image-updates
delete-branch: true
title: Playwright Docker image updates
labels: |
T-Task
- name: Enable automerge
run: gh pr merge --merge --auto "$PR_NUMBER"
if: steps.cpr.outputs.pull-request-operation == 'created'
env:
GH_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}

- name: Enable autoapprove
run: |
gh pr review --approve "$PR_NUMBER"
if: steps.cpr.outputs.pull-request-operation == 'created'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
2 changes: 1 addition & 1 deletion .github/workflows/static_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
cache: "yarn"

- name: Install Deps
run: "./scripts/ci/install-deps.sh --ignore-scripts"
run: "./scripts/ci/install-deps.sh"

- name: Typecheck
run: "yarn run lint:types"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
cache: "yarn"

- name: Install Deps
run: "./scripts/ci/install-deps.sh --ignore-scripts"
run: "./scripts/ci/install-deps.sh"
env:
JS_SDK_GITHUB_BASE_REF: ${{ inputs.matrix-js-sdk-sha }}

Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
Changes in [3.101.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.101.0) (2024-06-18)
=======================================================================================================
## ✨ Features

* Change avatar setting component to use a menu ([#12585](https://github.com/matrix-org/matrix-react-sdk/pull/12585)). Contributed by @dbkr.
* New user profile UI in User Settings ([#12548](https://github.com/matrix-org/matrix-react-sdk/pull/12548)). Contributed by @dbkr.
* MSC4108 support OIDC QR code login ([#12370](https://github.com/matrix-org/matrix-react-sdk/pull/12370)). Contributed by @t3chguy.

## 🐛 Bug Fixes

* [Backport staging] Fix image upload preview size ([#12612](https://github.com/matrix-org/matrix-react-sdk/pull/12612)). Contributed by @RiotRobot.
* Fix roving tab index crash `compareDocumentPosition` ([#12594](https://github.com/matrix-org/matrix-react-sdk/pull/12594)). Contributed by @t3chguy.
* Keep dialog glass border on narrow screens ([#12591](https://github.com/matrix-org/matrix-react-sdk/pull/12591)). Contributed by @dbkr.
* Add missing a11y label to dismiss onboarding button in room list ([#12587](https://github.com/matrix-org/matrix-react-sdk/pull/12587)). Contributed by @t3chguy.
* Add hover / active state on avatar setting upload button ([#12590](https://github.com/matrix-org/matrix-react-sdk/pull/12590)). Contributed by @dbkr.
* Fix EditInPlace button styles ([#12589](https://github.com/matrix-org/matrix-react-sdk/pull/12589)). Contributed by @dbkr.
* Fix incorrect assumptions about required fields in /search response ([#12575](https://github.com/matrix-org/matrix-react-sdk/pull/12575)). Contributed by @t3chguy.
* Fix display of no avatar in avatar setting controls ([#12558](https://github.com/matrix-org/matrix-react-sdk/pull/12558)). Contributed by @dbkr.
* Element-R: pass pickleKey in as raw key for indexeddb encryption ([#12543](https://github.com/matrix-org/matrix-react-sdk/pull/12543)). Contributed by @richvdh.


Changes in [3.100.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.100.0) (2024-06-04)
=======================================================================================================
## ✨ Features

* Tooltip: Improve accessibility for context menus ([#12462](https://github.com/matrix-org/matrix-react-sdk/pull/12462)). Contributed by @florianduros.
* Tooltip: Improve accessibility of space panel ([#12525](https://github.com/matrix-org/matrix-react-sdk/pull/12525)). Contributed by @florianduros.

## 🐛 Bug Fixes

* Close the release announcement when a dialog is opened ([#12559](https://github.com/matrix-org/matrix-react-sdk/pull/12559)). Contributed by @florianduros.
* Tooltip: close field tooltip when ESC is pressed ([#12553](https://github.com/matrix-org/matrix-react-sdk/pull/12553)). Contributed by @florianduros.
* Fix tabbedview breakpoint width ([#12556](https://github.com/matrix-org/matrix-react-sdk/pull/12556)). Contributed by @dbkr.
* Fix E2E icon display in room header ([#12545](https://github.com/matrix-org/matrix-react-sdk/pull/12545)). Contributed by @florianduros.
* Tooltip: Improve placement for space settings ([#12541](https://github.com/matrix-org/matrix-react-sdk/pull/12541)). Contributed by @florianduros.
* Fix deformed avatar in a call in a narrow timeline ([#12538](https://github.com/matrix-org/matrix-react-sdk/pull/12538)). Contributed by @florianduros.
* Shown own sent state indicator even when showReadReceipts is disabled ([#12540](https://github.com/matrix-org/matrix-react-sdk/pull/12540)). Contributed by @t3chguy.
* Ensure we do not fire the verification mismatch modal multiple times ([#12526](https://github.com/matrix-org/matrix-react-sdk/pull/12526)). Contributed by @t3chguy.
* Fix avatar in chat export ([#12537](https://github.com/matrix-org/matrix-react-sdk/pull/12537)). Contributed by @florianduros.
* Use `*` for italics as it doesn't break when used mid-word ([#12523](https://github.com/matrix-org/matrix-react-sdk/pull/12523)). Contributed by @t3chguy.


Changes in [3.99.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.99.0) (2024-05-07)
=====================================================================================================
## ✨ Features
Expand Down
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "matrix-react-sdk",
"version": "0.0.0",
"version-matrix": "3.100.0-rc.0",
"version-matrix": "3.101.0",
"description": "SDK for matrix.org using React for Tchap",
"author": "DINUM",
"repository": {
Expand Down Expand Up @@ -63,12 +63,13 @@
"resolutions": {
"@types/react-dom": "17.0.25",
"@types/react": "17.0.80",
"@types/seedrandom": "3.0.4",
"oidc-client-ts": "3.0.1",
"jwt-decode": "4.0.0"
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@matrix-org/analytics-events": "^0.20.0",
"@matrix-org/analytics-events": "^0.21.0",
"@matrix-org/emojibase-bindings": "^1.1.2",
"@matrix-org/matrix-wysiwyg": "2.17.0",
"@matrix-org/olm": "3.2.15",
Expand All @@ -77,11 +78,12 @@
"@sentry/browser": "^7.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@vector-im/compound-design-tokens": "^1.2.0",
"@vector-im/compound-web": "^4.2.0",
"@vector-im/compound-web": "^4.4.1",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-common": "^3.0.4",
"@zxcvbn-ts/language-en": "^3.0.2",
"await-lock": "^2.1.0",
"bloom-filters": "^3.0.1",
"blurhash": "^2.0.3",
"classnames": "^2.2.6",
"commonmark": "^0.31.0",
Expand All @@ -91,7 +93,7 @@
"emojibase-regex": "15.3.0",
"escape-html": "^1.0.3",
"file-saver": "^2.0.5",
"filesize": "10.1.1",
"filesize": "10.1.2",
"gfm.css": "^1.1.2",
"glob-to-regexp": "^0.4.1",
"graphemer": "^1.4.0",
Expand All @@ -109,15 +111,15 @@
"maplibre-gl": "^2.0.0",
"matrix-encrypt-attachment": "^1.0.3",
"matrix-events-sdk": "0.0.1",
"matrix-js-sdk": "32.3.0-rc.0",
"matrix-js-sdk": "33.1.0",
"matrix-widget-api": "^1.5.0",
"memoize-one": "^6.0.0",
"minimist": "^1.2.5",
"oidc-client-ts": "^3.0.1",
"opus-recorder": "^8.0.3",
"pako": "^2.0.3",
"png-chunks-extract": "^1.0.0",
"posthog-js": "1.130.1",
"posthog-js": "1.135.2",
"proposal-temporal": "^0.9.0",
"qrcode": "1.5.3",
"re-resizable": "^6.9.0",
Expand Down Expand Up @@ -183,25 +185,26 @@
"@types/react-transition-group": "^4.4.0",
"@types/sanitize-html": "2.11.0",
"@types/sdp-transform": "^2.4.6",
"@types/seedrandom": "3.0.4",
"@types/tar-js": "^0.3.2",
"@types/ua-parser-js": "^0.7.36",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"axe-core": "4.9.0",
"axe-core": "4.9.1",
"babel-jest": "^29.0.0",
"blob-polyfill": "^7.0.0",
"eslint": "8.57.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-deprecate": "0.8.4",
"eslint-plugin-deprecate": "0.8.5",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^28.0.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-matrix-org": "1.2.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unicorn": "^53.0.0",
"express": "^4.18.2",
"fake-indexeddb": "^5.0.2",
"fetch-mock-jest": "^1.5.1",
Expand Down
2 changes: 1 addition & 1 deletion playwright/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.43.1-jammy
FROM mcr.microsoft.com/playwright:v1.44.1-jammy

WORKDIR /work/matrix-react-sdk
VOLUME ["/work/element-web/node_modules"]
Expand Down
Loading

0 comments on commit b9dc9c2

Please sign in to comment.