Michael Telatynski
c1d4199b02
Upgrade target to es2022 ( #12852 )
...
* Upgrade target to es2021
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Upgrade to es2022
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix babel config
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix React contexts
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix types
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix React state
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 16:14:28 +00:00
Michael Telatynski
b6addb4118
Fix React contexts ( #12855 )
2024-08-01 13:01:05 +01:00
Michael Telatynski
b34012f289
Remove Quote from MessageContextMenu as it is unsupported by WYSIWYG ( #11914 )
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-22 05:58:08 +00:00
Michael Telatynski
e1cfde0c6e
Migrate more strings to translation keys ( #11694 )
2023-10-03 19:17:26 +01:00
Michael Telatynski
41a2325a2a
Migrate more strings to translation keys ( #11683 )
2023-10-02 13:52:27 +01:00
Michael Telatynski
6af4335db1
Migrate more strings to translation keys ( #11680 )
2023-09-29 08:49:26 +01:00
Michael Telatynski
54c88c57ed
Migrate more strings to translation keys ( #11665 )
2023-09-25 18:12:41 +01:00
Michael Telatynski
d5cacff6c3
Create more action_*
common strings ( #11438 )
2023-08-23 11:57:22 +01:00
Michael Telatynski
99e80dd296
Consume more imports from matrix-js-sdk/src/matrix ( #11449 )
2023-08-23 09:04:25 +00:00
Michael Telatynski
df4a2218d7
Align action_*
strings with Element X project in Localazy ( #11437 )
2023-08-22 20:55:15 +01:00
Michael Telatynski
d2c6577024
Switch to importing more things from the main js-sdk export ( #11394 )
2023-08-14 08:58:55 +00:00
Michael Telatynski
a1328d8ef7
Switch to importing more things from the main js-sdk export ( #11376 )
2023-08-09 15:10:54 +00:00
Michael Telatynski
033c600fa2
Switch to importing @types/{event,partials} from main js-sdk export ( #11369 )
2023-08-08 10:12:12 +00:00
Michael Telatynski
24703eea8f
Switch to importing models/event from main js-sdk export ( #11363 )
2023-08-07 08:24:58 +00:00
Michael Telatynski
e6af09e424
Switch to importing models/room-state & models/room-member from main js-sdk export ( #11362 )
...
* Switch to importing TypedEventEmitter from main js-sdk export
* Switch to importing js-sdk/matrix in cypress
* Remove duplicated imports
* Fix lint:js-fix to run prettier last otherwise ESLint --fix may cause a mess
* Add lint rule
* Switch to importing models/Room from main js-sdk export
* Switch to importing models/room-state & models/room-member from main js-sdk export
* Fix cypress-axe import
* Fix more imports
* Fix cypress-axe import
* Fix bad merge
2023-08-04 11:22:08 +00:00
Michael Telatynski
280f6a9d93
Use MatrixClientPeg::safeGet in src/components/views/* ( #10987 )
2023-06-15 08:46:19 +01:00
Michael Telatynski
938aefc51c
Pass around MatrixClients instead of using MatrixClientPeg ( #11000 )
2023-05-30 10:36:34 +01:00
Michael Telatynski
30429df948
Eliminate the use of MatrixClientPeg in utils ( #10910 )
2023-05-23 16:24:12 +01:00
Richard van der Hoff
60e1349eaa
MessageContextMenu: update once the message is sent ( #10950 )
...
Fixes a flaky cypress test where the "Remove" option was not appearing
2023-05-19 14:11:40 +00:00
Michael Telatynski
4dd214506b
Move reaction message previews out of labs ( #10601 )
...
* Update reaction message previews to match designs
* Delabs reaction message previews
* tsc strict
* Iterate
* Add test
* Iterate
2023-05-05 07:45:14 +00:00
Michael Telatynski
e3930fb8b0
Show all labs even if incompatible, with appropriate tooltip explaining requirements ( #10369 )
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-03-15 08:37:41 +00:00
Michael Telatynski
7c2511a592
Apply strictNullChecks
to src/components/views/context_menus/*
( #10367 )
2023-03-14 09:29:35 +00:00
Michael Telatynski
503df62191
Conform more of the codebase to strictNullChecks
( #10358
...
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Iterate
* Iterate
2023-03-13 15:07:20 +00:00
Germain
8c22584f64
Remove threads labs flag and the ability to disable threads ( #9878 )
2023-02-20 14:46:07 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Kerry
544baa30ed
use Poll model with relations API in poll rendering ( #9877 )
...
* wip
* remove dupe
* use poll model relations in all cases
* update mpollbody tests to use poll instance
* update poll fetching login in pinned messages card
* add pinned polls to room polls state
* add spinner while relations are still loading
* handle no poll in end poll dialog
* strict errors
* strict fix
* more strict fix
2023-02-02 20:22:26 +00:00
Travis Ralston
badb2c4b27
Use js-sdk imports for poll event types instead of events-sdk ( #9904 )
...
* Use js-sdk imports for poll event types instead of events-sdk
* Attempt to appease some tsc --strict errors
* Manually create poll response in cypress test
2023-01-13 10:02:33 -07:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type
in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Germain
7ca1b385d9
Force enable threads labs flag
2023-01-09 12:38:19 +00:00
Michael Telatynski
f1e8e7f140
Enable @typescript-eslint/explicit-member-accessibility
on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Germain
2d2755d145
🧵 Enable threads by default ( #9736 )
...
* Delabs threads
* remove threads reload when labs is toggled
* Fix ts strict
* fix rebase mistake
* remove .only
* fix pr comments
* re-introduce backwards compat
* Fix export test
* Fix SearchREsultTile test
* strict ts
2022-12-13 15:09:15 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Eric Eastwood
2393510a7f
Fix getRelationsForEvent
under TypeScript strict
mode ( #9558 )
...
* Fix getRelationsForEvent tsc strictness
* Use shared type for GetRelationsForEvent
* Fix lint
* Add alternative type
* getRelationsForEvent is not required
* Relations are optional
* Reactions are optional
* We expect relations in these tests
* Add more protection if the eventID is not defined
* Allow null too
* Better test typing
* User ID is not necessary unless something is selected
* It's okay to [].includes(null)
* Null is as good as undefined here
* Null or undefined is good here
* We have some expectations for the tests
* The room and user can be undefined too
* Protec
* Reactions are optional
* Try match signatures
* Null or undefined
* More null or undefined
* Protec
* Fix typo (wrong variable)
* Remove optional params
See https://github.com/matrix-org/matrix-react-sdk/pull/9558#discussion_r1017515913
* Fix up last maaaaybe relevant lint
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-11-21 20:54:24 -07:00
Janne Mareike Koschinski
d92fdc1f5b
Loading threads with server-side assistance ( #9356 )
...
* Fix bug with message context menu
* fix bug where ThreadSummary failed if no last reply is available
* Fix relations direction API
* Use same API for threads as for any other timeline
* Determine if event belongs to thread on jumping to event
* properly listen to thread deletion
* Add thread redaction tests
* Add fetchInitialEvent tests
* Paginate using default TimelinePanel behaviour
* Remove unused threads deleted code
Co-authored-by: Germain <germain@souquet.com>
Co-authored-by: Germain <germains@element.io>
2022-10-28 13:48:15 +02:00
Michael Telatynski
9076152f79
Fix tile soft crash in ReplyInThreadButton ( #9300 )
2022-09-20 16:39:07 +00:00
Šimon Brandner
787ace9dc5
Add Reply in thread
button to the right-click message context-menu ( #9004 )
2022-07-23 12:13:49 +00:00
Kerry
ed92071046
Live location share - open latest location in map site ( #8981 )
...
* move getForwardableBeacon to beacon utils
* move event transform type up
* add helper to get shareable-as-locaion events
* use getShareableLocationEvent in MessageContextMenu
* test opening in maplink
* fix bad copy pasted tests
2022-07-04 16:05:55 +02:00
Kerry
eaf13d490e
Live location share - disallow message pinning (PSF-1084) ( #8928 )
...
* unmock isContentActionable
* test message pinning
* disallow pinning for beacon events
* try to make tests more readable
2022-06-29 07:11:33 +00:00
Šimon Brandner
eca14dea57
Disable option to Quote
when we don't have sufficient permissions ( #8893 )
2022-06-25 12:43:18 +02:00
Kerry
b51ef246ab
Live location share - forward latest location (PSF-1044) ( #8860 )
...
* handle beacon location events in ForwardDialog
* add transformer for forwarded events in MessageContextMenu
* remove canForward
* update snapshots for beacon model change
* add comments
* fix bad copy pasted test
* add test for beacon locations
2022-06-17 15:27:08 +02:00
Michael Telatynski
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
Kerry
158e42f764
Unit test MessageActionBar ( #8732 )
...
* test most basic paths in messageactionbar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add rtl
* add code style note about using rtl
Signed-off-by: Kerry Archibald <kerrya@element.io>
* downgrade to rtl 12
* use rtl for MessageActionBar test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* try mocking settingsstore for ci only failure
Signed-off-by: Kerry Archibald <kerrya@element.io>
* mock setValue too
Signed-off-by: Kerry Archibald <kerrya@element.io>
* uupdate lockfile
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-06-02 10:25:56 +02:00
Kerry
15c2fb6b71
Live location sharing - open location in OpenStreetMap (PSF-1040) ( #8695 )
...
* share plain lat,lon string from beacon tooltip and list item
Signed-off-by: Kerry Archibald <kerrya@element.io>
* export makeMapSiteLink helper fn
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use currentColor in external-link.svg
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add open in openstreetmap link
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fussy import ordering
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix icon color var
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-27 11:58:39 +02:00
Travis Ralston
025fb631b7
Update "jump to related event" for design requirements & dev tooling ( #8652 )
2022-05-20 08:07:00 -06:00
Germain
3f2f839b3b
Add jump to related event context menu item ( #6775 )
2022-05-19 14:56:10 +01:00
Šimon Brandner
b1daf3fec2
Add a Copy link
button to the right-click message context-menu labs feature ( #8527 )
...
* Simplify `Share` button
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Add proper `Copy link` button
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-05-09 08:25:14 +02:00
Michael Telatynski
964c60d086
Apply corrections identified by SonarQube ( #8457 )
2022-05-03 22:04:37 +01:00
Michael Telatynski
65c74bd158
Bring View Source
back from behind developer mode ( #8369 )
2022-04-20 08:24:20 +00:00
Šimon Brandner
511965b840
Cleanup MessageContextMenu
code ( #8351 )
2022-04-19 07:59:23 +00:00
Šimon Brandner
11e0a3a8fa
Enable the message right-click context menu in the browser ( #8336 )
...
* Enable the message right-click context menu in the browser
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Move `getSelectedText()` to `strings.ts`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Move `canCancel()` to `EventUtils.ts`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-04-15 12:12:40 -06:00