Commit Graph
100 Commits
Author SHA1 Message Date
Michael TelatynskiandGitHub 6b30a5e1c9 Migrate some enzyme tests to RTL (#9383) 2022-10-10 16:29:10 +01:00
Michael TelatynskiandGitHub cf029c51dc Pin back Synapse used in Cypress to alleviate test failures (#9381) 2022-10-10 13:34:39 +01:00
Michael TelatynskiandGitHub eaff7e945c Consolidate js-sdk release mode typing CI (#9326) 2022-09-30 17:12:16 +01:00
Michael TelatynskiandGitHub 45556e6662 Move @testing-library/react to devDeps (#9309) 2022-09-23 08:17:03 +01:00
Michael TelatynskiandGitHub 56c95467de Don't show feedback prompts when that UIFeature is disabled (#9305) 2022-09-22 15:08:14 +01:00
Michael TelatynskiandGitHub fa2ec7f6c9 Fix soft crash around unknown room pills (#9301)
* Fix soft crash around unknown room pills

* Add tests

* Fix types
2022-09-20 17:00:31 +00:00
Michael TelatynskiandGitHub 7e435eef13 Fix spaces feedback prompt wrongly showing when feedback is disabled (#9302) 2022-09-20 16:59:29 +00:00
Michael TelatynskiandGitHub 9076152f79 Fix tile soft crash in ReplyInThreadButton (#9300) 2022-09-20 16:39:07 +00:00
Michael TelatynskiandGitHub 9d83fba5ca Turn off tsc --strict annotations (#9285)
* Update static_analysis.yaml

* Update static_analysis.yaml
2022-09-16 11:09:32 +00:00
Michael TelatynskiandGitHub 4bfb1e7b2f Make autocomplete pop-up wider in thread view (#9289)
* Make autocomplete pop-up wider in thread view

* Handle non-narrow mode too
2022-09-16 09:12:28 +00:00
Michael TelatynskiandGitHub 4a23630e06 Fix soft crash around inviting invalid MXIDs in start DM on first message flow (#9281)
* Fix soft crash around inviting invalid MXIDs

* Make ts --strict happier

* Prevent suggesting invalid MXIDs

* Add tests

* Fix coverage

* Fix coverage

* Make tsc --strict happier

* Fix test

* Add tests
2022-09-16 09:03:17 +01:00
Michael TelatynskiandGitHub b8bb8f163a Delete tsc.txt 2022-09-15 14:56:24 +01:00
Michael TelatynskiandGitHub eace4d6894 Update image-media.ts (#9276) 2022-09-14 12:00:54 +01:00
Michael TelatynskiandGitHub b1cecccb57 Fix thumbnail generation when offscreen canvas fails (#9272) 2022-09-13 13:34:35 +01:00
Michael TelatynskiandGitHub 6be85e7146 Prevent sliding sync from showing a room under multiple sublists (#9266)
* Prevent sliding sync from showing a room under multiple sublists

* Add tests

(cherry picked from commit 96656e4e17)
2022-09-12 16:16:37 +00:00
Michael TelatynskiandGitHub e52ef4522d Fix tile crash around tooltipify links (#9270) 2022-09-12 15:28:22 +01:00
Michael TelatynskiandGitHub 0ab476b828 Upgrade @types (#9261)
* Upgrade @types

* Make typescript happier
2022-09-12 11:58:05 +01:00
Michael TelatynskiandGitHub c365949e85 Update cypress.yaml (#9269) 2022-09-12 10:17:44 +01:00
Michael TelatynskiandGitHub e3b13eb97c Update commit status earlier in cypress workflow_run (#9263) 2022-09-08 23:05:05 +00:00
Michael Telatynski d87f4b0336 Revert "Add tests"
This reverts commit 96656e4e17.
2022-09-08 18:15:34 +01:00
Michael Telatynski 96656e4e17 Add tests 2022-09-08 18:13:03 +01:00
Michael TelatynskiandGitHub 52fc8ff255 Fix html export not including images (#9260)
* Fix html export not including images

* Respect showPlaceholder

* Add tests
2022-09-08 10:00:58 +00:00
Michael TelatynskiandGitHub 638175b7d7 Update cypress.yaml (#9262) 2022-09-08 10:05:43 +01:00
Michael TelatynskiandGitHub 9050ae4bb7 Fix possible soft crash from a race condition in space hierarchies (#9254)
* Fix possible soft crash from a race condition in space hierarchies

* Improve typing
2022-09-08 08:17:55 +00:00
Michael TelatynskiandGitHub c76cc9aee1 Handle M_INVALID_USERNAME on /register/available (#9237)
* Handle M_INVALID_USERNAME on /register/available

* Add tests

* Make typescript check happier
2022-09-07 21:47:20 +00:00
Michael TelatynskiandGitHub 5bdae150fa Tweak backport labels (#9258) 2022-09-07 14:15:03 +00:00
Michael TelatynskiandGitHub 4be1d85522 Update cypress.yaml 2022-09-07 13:12:03 +01:00
Michael TelatynskiandGitHub 06540633fc Update cypress.yaml 2022-09-07 12:58:27 +01:00
Michael TelatynskiandGitHub 56326c75f1 Run Cypress in parallel (#9010)
* Update cypress.yaml

* Update cypress.yaml

* Make percy parallel-compatible

* Add PERCY_PARALLEL_NONCE

* Update cypress.yaml

* Merge performance measurement files
2022-09-07 12:48:37 +01:00
Michael TelatynskiandGitHub b91f0ed7ba Improve partial translation or to have usage context (#9244) 2022-09-06 13:27:36 +01:00
Michael TelatynskiandGitHub 9f5857dd38 Simplify releases: move npm publishing to gha, consolidate scripts (#9216)
* Remove stale comment re dependency

* Move npm publishing from release.sh to GHA

* Extract js-sdk & react-sdk post release steps

* Consolidate release subproject upgrade management
2022-09-06 12:10:28 +01:00
Michael TelatynskiandGitHub 219f4fae3d Fix suggested rooms going missing (#9236) 2022-09-02 13:04:16 +00:00
Michael TelatynskiandGitHub 3e8da6ffa4 Fix tooltip infinitely recursing (#9235) 2022-09-02 09:03:53 +00:00
Michael TelatynskiandGitHub 5aae974e93 Make use of js-sdk roomNameGenerator to handle i18n for generated room names (#9209)
* Make use of js-sdk roomNameGenerator to handle i18n for generated room names

* DRY

* Make tsc happier

* Update MatrixClientPeg.ts
2022-08-26 11:23:56 +01:00
Michael TelatynskiandGitHub 9b99c967f4 Fix progress bar regression throughout the app (#9219)
* Fix useSmoothAnimation enablement not working properly by getting rid of it

Passing duration=0 is more logical and less superfluous

* Refactor UploadBar to handle state more correctly

* Change ProgressBar to new useSmoothAnimation signature and default animated to true for consistency

* Add type guard

* Make types stricter

* Write tests for the ProgressBar component

* Make the new test conform to tsc --strict

* Update UploadBar.tsx

* Update UploadBar.tsx

* Update UploadBar.tsx
2022-08-25 16:39:00 +01:00
Michael TelatynskiandGitHub 6407cd4c0d Reuse empty string & space string logic for event types in devtools (#9218)
* Reuse empty string & space string logic for event types in devtools

* Fix edge case behaviours

* Make tsc quality higher

* Make remainder of tsc happy
2022-08-25 11:08:52 +00:00
Michael TelatynskiandGitHub 4c94155ff0 Improve Cypress & Percy stability (#9217)
* Improve Cypress & Percy stability

* Update percy snapshot width
2022-08-25 10:46:43 +01:00
Michael TelatynskiandGitHub ec0b2b551a Add backport automation (#9214) 2022-08-24 12:45:35 +01:00
Michael TelatynskiandGitHub e11b0cef47 Add static analysis for tsc --strict (#9212)
* Add static analysis for tsc --strict

* Make tsconfig legal

* Make tsconfig more legal

* Update static_analysis.yaml

* Test strict mode check

* Revert "Test strict mode check"

This reverts commit 879df9879738fabfa02466ce07634a0f5c132311.
2022-08-24 11:08:26 +01:00
Michael Telatynski 13c9755ff3 Make types happier 2022-08-24 10:28:59 +01:00
Michael Telatynski 95e78f6210 Merge branch 'actions/upgrade-deps' of github.com:matrix-org/matrix-react-sdk into actions/upgrade-deps
 Conflicts:
	yarn.lock
2022-08-24 10:24:50 +01:00
Michael TelatynskiandGitHub e269c6895d Fix url preview AXE and layout issue & add percy test (#9189) 2022-08-17 16:07:18 +00:00
Michael TelatynskiandGitHub 0e43f3c015 Wrap long space names (#9201) 2022-08-17 15:13:04 +00:00
Michael TelatynskiandGitHub 27a7263965 Attempt to fix Failed to execute 'removeChild' on 'Node' (#9196)
* Switch tooltips to use React Portals

* Remove redundant React key to simplify reconciliation

* Fix cleanup and it.each test

* Update snapshots due to style order difference
2022-08-17 13:35:33 +00:00
Michael TelatynskiandGitHub 3461573df9 Standardise sane capitalisation in verification modal (#9198) 2022-08-17 14:05:20 +01:00
Michael TelatynskiandGitHub d0d91599a9 Fix soft crash around space hierarchy changing between spaces (#9191) 2022-08-16 14:39:10 +00:00
Michael TelatynskiandGitHub ba171f1fe5 Fix soft crash around room view store metrics (#9190)
* Fix soft crash around room view store metrics

* Use awaitRoomDownSync utility
2022-08-16 12:26:25 +01:00
Michael TelatynskiandGitHub 801858a091 Convert some Enzyme tests to RTL (#9163) 2022-08-11 00:00:53 +00:00
Michael TelatynskiandGitHub 4e30d3c0fc Fix space panel subspace indentation going missing (#9167)
* Fix space panel subspace indentation going missing

* Add cypress test around subspaces in space panel

* Add cypress test around subspaces in space panel

* Fix bad selector

* Fix aria axe violation heading-order

* Fix test

* Remove it.only
2022-08-10 16:29:53 +01:00
Michael TelatynskiandGitHub df016ff5f6 Upgrade deps (#9165) 2022-08-10 15:10:08 +00:00
Michael TelatynskiandGitHub 2e32a4d4b6 Fix invisible power levels tile when showing hidden events (#9162)
* Fix invisible power levels tile when showing hidden events

* Add regression test
2022-08-10 13:33:13 +00:00
Michael TelatynskiandGitHub 3d0982e9a6 Space panel accessibility improvements (#9157)
* Move the UserMenu out of the SpacePanel ul list

* Apply aria-selected to the spacepanel treeview

* Fix typing
2022-08-10 12:14:54 +00:00
Michael TelatynskiandGitHub 350341d13d Fix inverted logic for showing UserWelcomeTop component (#9164) 2022-08-10 11:22:15 +01:00
Michael TelatynskiandGitHub fdde6b1428 Cypress test stability improvements (#9156)
* Make cypress hidden event test more reliable

* Make timeline tests more stable
2022-08-10 09:40:17 +01:00
Michael TelatynskiandGitHub 3b64a7999c Override the disambiguated profile colour in percy tests for screenshot consistency (#9161) 2022-08-10 07:20:29 +00:00
Michael TelatynskiandGitHub 394e181854 Define interface for RLS to ease wiring in Sliding Sync (#9150)
* Define iface for RLS

* Iterate interface
2022-08-09 20:46:59 +01:00
Michael TelatynskiandGitHub e63072e21f Fixes around URL tooltips and in-app matrix.to link handling (#9139)
* Add regression test for tooltipify exposing raw HTML

* Handle m.to links involving children better

* Comments

* Fix mistaken assertion
2022-08-09 15:37:55 +01:00
Michael TelatynskiandGitHub 48ae16b5a5 Fix pillification sometimes doubling up (#9152)
* Fix pillification sometimes doubling up

* Remove redundant assignment

* Add unit tests around pillification

* Kill ts-ignore
2022-08-09 15:37:13 +01:00
Michael TelatynskiandGitHub 5fbeb20df8 Some small tidying up (#9149)
* Remove stale comment

* Fix typing

* Install katex type definitions
2022-08-09 11:55:49 +00:00
Michael TelatynskiandGitHub e08b11b9c9 Make Spaces cypress tests less flaky (#9138) 2022-08-08 16:07:55 +00:00
Michael TelatynskiandGitHub e864dbfacf Fix highlights not being applied to plaintext messages (#9126)
* Fix highlights not being applied to plaintext messages

* Add percy test for search result highlighting

* Fix percy target

* Update timeline.spec.ts
2022-08-05 07:08:56 +00:00
Michael TelatynskiandGitHub 6796375b10 Fix dismissing edit composer when change was undone (#9109)
* Fix dismissing edit composer when change was undone

* Add tests
2022-08-02 14:54:40 +01:00
Michael TelatynskiandGitHub d5db131eef Spike AXE A11Y testing in Cypress (#9111)
* Spike AXE A11Y testing in Cypress

* Fix NewRoomIntro breaking html/aria list rules

* Fix HeaderButtons breaking aria role semantics rules

* missing type

* Switch left panel from aside to nav and include space panel

* Give the page a main heading of the room name when viewing a room

* Use header landmark on RoomHeader

* Improve aria attributes on composer when autocomplete is closed

* Fix aria-owns on RoomHeader

* Give Spinner an aria role

* Give server picker help button an aria label

* Improve auth aria attributes and semantics

* Improve heading semantics in use case selection screen

* Fix autocomplete attribute to be valid

* Fix heading semantics on login page

* Improve Cypress axe testing

* Add axe tests

* Stop synapse after the timeline tests

* Await spinners to fade before percy snapshotting timeline tests

* Improve naming of plugin

* Update snapshots

* Fix accidental heading change

* Fix double synapse stoppage

* Fix Cypress timeline avatar assertions to be DPI agnostic

* Fix aria attributes on date separators

* delint

* Update snapshots

* Revert style change

* Skip redundant call
2022-08-01 08:31:14 +01:00
Michael TelatynskiandGitHub f566c600e2 Port remaining Puppeteer tests over to Cypress (#9104)
* Port remaining Puppeteer tests over to Cypress

* Remove puppeteer support files

* Fix lifecycle matrixclientpeg setup race condition

* Alternative solution to the lifecycle problem

* Dismiss the notifications toast
2022-07-29 14:03:25 +00:00
Michael TelatynskiandGitHub 45f6c32eb6 Make sonar happier (#9114)
* Make sonar happier

* Rename method
2022-07-29 11:01:15 +00:00
ca1d9729fd Extract dockery bits from Cypress' synapsedocker plugin (#9103)
* Extract dockery bits from Cypress' synapsedocker plugin

* Update cypress/plugins/docker/index.ts

Co-authored-by: David Baker <dbkr@users.noreply.github.com>

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2022-07-27 15:22:14 +00:00
Michael TelatynskiandGitHub 8eeeee1aa2 Use default styling on nested numbered lists due to MD being sensitive (#9110) 2022-07-27 14:38:34 +01:00
Michael TelatynskiandGitHub a2c5a59b22 Fix replying using chat effect commands (#9101) 2022-07-27 11:03:25 +01:00
Michael Telatynski 103f7a0ad4 Revert "Upgrade matrix-js-sdk to 19.2.0-rc.1"
This reverts commit da98e3d201.
2022-07-26 17:45:23 +01:00
Michael Telatynski b6829947c8 Revert "Prepare changelog for v3.50.0"
This reverts commit c73fa49293.
2022-07-26 17:45:22 +01:00
Michael Telatynski 48aa18a6e1 Revert "v3.50.0"
This reverts commit 54c47d8347.
2022-07-26 17:45:22 +01:00
Michael Telatynski c0d69e1d30 Revert "Prepare changelog for v3.50.0"
This reverts commit c73fa49293.
2022-07-26 17:43:12 +01:00
Michael Telatynski 49f312f734 Revert "v3.50.0"
This reverts commit 54c47d8347.
2022-07-26 17:43:05 +01:00
Michael Telatynski 3e4918342d Revert "Resetting package fields for development"
This reverts commit 79d76a0a5a.
2022-07-26 17:42:51 +01:00
Michael Telatynski e53fb60763 Revert "Reset matrix-js-sdk back to develop branch"
This reverts commit 35a6f4bb56.
2022-07-26 17:42:50 +01:00
Michael TelatynskiandGitHub d2b942de42 Fix avatars in percy not having the right border radius (#9102)
* Fix avatars in percy not having the right border radius

* Fix percy media for base avatars
2022-07-26 16:39:17 +01:00
Michael TelatynskiandGitHub 42ff9d6dc8 Move Lazy Loading tests from Puppeteer to Cypress (#8982)
* Remove Puppeteer Lazy Loading tests

* Remove Puppeteer Lazy Loading tests

* Remove Puppeteer Lazy Loading tests

* Stash lazy loading cypress tests

* Stash lazy loading cypress tests

* Update cypress-real-events

* Stash offline-less test

* Add offline/online'ing
2022-07-18 13:16:44 +01:00
Michael TelatynskiandGitHub 01f4bb8c78 Rename PostCSS files to .pcss (#9013)
* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Delint

* Rename new files too

* delint

* Fix bad comment placement
2022-07-15 14:53:23 +01:00
Michael TelatynskiandGitHub e576347b62 Fix pinned messages not re-linkifying on edit (#9042)
* Fix pinned messages not re-linkifying on edit

* Fix tests
2022-07-12 07:27:45 +01:00
Michael TelatynskiandGitHub 0bc2f1c101 Fix event list summaries including invalid events (#9041) 2022-07-11 16:25:11 +01:00
Michael TelatynskiandGitHub 375ff265db Update cypress.md (#9039) 2022-07-11 11:23:06 +00:00
Michael TelatynskiandGitHub 7fb48d24e4 Upgrade to Cypress 10 (#9008)
* Upgrade to Cypress 10

* Remove stale comment
2022-07-08 13:14:13 +01:00
Michael TelatynskiandGitHub eff0395771 Update cypress.yaml (#9007) 2022-07-08 10:06:29 +01:00
Michael TelatynskiandGitHub e72598e40b Fix expand/collapse state wrong in metaspaces (#8952) 2022-07-01 08:53:47 +01:00
Michael TelatynskiandGitHub 89ae540faa Respect filename field on m.file events (#8951) 2022-06-30 16:22:52 +01:00
Michael TelatynskiandGitHub 424d33d4b0 Fix PlatformSettingsHandler always returning true due to returning a Promise (#8954)
* Fix PlatformSettingsHandler always returning true due to returning a Promise

* Improve typescript
2022-06-30 14:48:21 +00:00
Michael TelatynskiandGitHub bb859d5886 Fix wrong assertions that all media events have a mimetype (#8946) 2022-06-30 14:35:40 +01:00
Michael TelatynskiandGitHub 7f7ad10b04 Update matrix-web-i18n (#8914) 2022-06-28 14:15:51 +01:00
Michael TelatynskiandGitHub e7a8dbd04c Revert recent composer changes (#8840)
* Revert "Prevent new composer from overflowing from non-breakable text (#8829)"

This reverts commit 57dff8131c.

* Revert "Fix scroll jump issue with the composer (#8791)"

This reverts commit 5167521ea4.

* Revert "Fix scroll jump issue with the composer (#8788)"

This reverts commit f568a76dc6.

* Revert "Revert link color change in composer (#8784)"

This reverts commit aedbeb2995.

* Revert "Improve composer visiblity (#8578)"

This reverts commit f14374a51c.
2022-06-27 09:43:58 +01:00
Michael TelatynskiandGitHub d81e2cea14 Remove unused sessionStorage layer (#8834)
* Remove unused sessionStorage layer

* Update global.d.ts

* Fix tests
2022-06-14 21:29:24 +01:00
Michael TelatynskiandGitHub 3c5c2bef6d Remove Piwik support (#8835)
* Remove all mentions of Piwik

* Kill off all consumer of the old Piwik Analytics module

* Simplify ModalManager interface

* i18n

* Attempt to fix old e2e tests

* Remove unused component

* Iterate PR
2022-06-14 17:51:51 +01:00
Michael Telatynski d6c162a5cf Abstract electron settings properly to avoid boilerplate-hell (#8798)
* Remove unused method `BasePlatform::screenCaptureErrorString`

* Improve platform typescripting

* Remove redundant awaits

* Abstract electron settings properly to avoid boilerplate-hell

* i18n

* Fix stray semi-colons

* Fix setting level order for Platform settings

(cherry picked from commit ba2ce5ecba)
2022-06-14 13:54:08 +01:00
Michael TelatynskiandGitHub 79195dea8b Skip running jobs on fork develop where they lack secrets (#8837)
* Skip running jobs on fork `develop` where they lack secrets

* Fix contexts
2022-06-14 11:37:07 +01:00
Michael TelatynskiandGitHub b03aa2ebf5 Move room directory Puppeteer tests over to Cypress (#8832)
* Fix user view percy test by sticking the user avatar colour

* Move room directory Puppeteer tests over to Cypress

* Consolidate import

* Fix tests

* Grab default widths

* Tweak Percy CSS mechanism
2022-06-13 19:25:39 +01:00
Michael TelatynskiandGitHub f10d35cb18 Add try-catch around blurhash loading (#8830) 2022-06-13 13:25:32 +01:00
Michael TelatynskiandGitHub ba2ce5ecba Abstract electron settings properly to avoid boilerplate-hell (#8798)
* Remove unused method `BasePlatform::screenCaptureErrorString`

* Improve platform typescripting

* Remove redundant awaits

* Abstract electron settings properly to avoid boilerplate-hell

* i18n

* Fix stray semi-colons

* Fix setting level order for Platform settings
2022-06-10 22:38:50 +01:00
Michael TelatynskiandGitHub 3f99f594de Keep draft in composer when a slash command syntax errors (#8811) 2022-06-10 17:16:31 +01:00
Michael TelatynskiandGitHub 5b149bcffd Use a fixed matrix-org/github-action-benchmark (#8810) 2022-06-10 15:42:51 +01:00
Michael TelatynskiandGitHub 3510f8efa4 Update cypress.yaml (#8804) 2022-06-09 14:52:06 +01:00
Michael TelatynskiandGitHub 1d79c78f21 Update cypress.yaml 2022-06-09 10:12:45 +01:00