Michael Telatynski
ef2bd7ae04
Improve types for sendEvent
( #12335 )
2024-03-25 12:48:48 +00:00
Michael Telatynski
0a881e2123
Iterate landmarks around the app in order to improve a11y ( #12064 )
...
* Iterate landmarks around the app in order to improve a11y
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Add missing aria-label
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Update snapshots
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* i18n
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Fix tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Update screenshots which have changed a fraction due to default heading margins being different in different landmarks
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-20 15:32:24 +00:00
Michael Telatynski
e1cfde0c6e
Migrate more strings to translation keys ( #11694 )
2023-10-03 19:17:26 +01:00
Michael Telatynski
36a7a96e0e
Migrate more strings to translation keys ( #11574 )
2023-09-07 10:37:09 +01:00
Michael Telatynski
d5cacff6c3
Create more action_*
common strings ( #11438 )
2023-08-23 11:57:22 +01:00
Michael Telatynski
d4571aef68
Consume @matrix-org/emojibase-bindings ( #11433 )
2023-08-21 20:06:40 +01: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
44615b2b04
Strip emoji variation when searching emoji by emoji ( #11221 )
2023-07-12 07:26:13 +00:00
Michael Telatynski
280f6a9d93
Use MatrixClientPeg::safeGet in src/components/views/* ( #10987 )
2023-06-15 08:46:19 +01:00
Michael Telatynski
68ff19fb4b
Fix regression in emoji picker order mangling after clearing filter ( #10854 )
...
* Add regression test for emoji picker order mangling after clearing filter
* Fix regression in emoji picker order mangling after clearing filter
* Iterate
* Update src/components/views/emojipicker/EmojiPicker.tsx
2023-05-11 13:24:39 +00:00
Michael Telatynski
619a9e8542
Conform more of the codebase with strictNullChecks
( #10703 )
2023-04-25 09:28:48 +01:00
Michael Telatynski
2da52372d4
Add arrow key controls to emoji and reaction pickers ( #10637 )
...
* Add arrow key controls to emoji and reaction pickers
* Iterate types
* Switch to using aria-activedescendant
* Add tests
* Fix tests
* Iterate
* Update test
* Tweak header keyboard navigation behaviour
* Also handle scrolling on left/right arrow keys
* Iterate
2023-04-20 14:56:21 +00:00
Michael Telatynski
2191a2d820
Apply strictNullChecks
to src/components/views/emojipicker/* ( #10298 )
2023-03-07 11:28:48 +00:00
Michael Telatynski
bda54a8b20
Kill off enzyme in preference of react testing library ( #10255 )
2023-03-06 15:17:46 +00:00
grimhilt
0546a11fd9
Sort short/exact emoji matches before longer incomplete matches ( #10212 )
...
* apply sort for exact match
* add tests for emoji provider
* apply filter in the emoji picker
* add tests
* revert cypress version
* put correct copyright
* fix eslint
* fix eslint
* add type
* fix cypress test
* fix tsc types issues
* add forgotten space...
---------
Co-authored-by: grimhilt <grimhilt@users.noreply.github.com>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2023-02-27 17:09:15 +00:00
Michael Telatynski
76b82b4b2b
Make more code conform to strict null checks ( #10219
...
* Make more code conform to strict null checks
* Fix types
* Fix tests
* Fix remaining test assertions
* Iterate PR
2023-02-24 15:28:40 +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
Michael Telatynski
61a63e47f4
Comply with noImplicitAny ( #9940 )
...
* Stash noImplicitAny work
* Stash
* Fix imports
* Iterate
* Fix tests
* Delint
* Fix tests
2023-02-13 11:39:16 +00: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
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
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Telatynski
d258402186
Typescript updates ( #9658 )
...
* Typescript updates
* Update @types/node
* Fix more types
2022-11-30 11:32:56 +00: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
Šimon Brandner
3eecd68175
Fix context menu being opened when clicking message action bar buttons ( #9200 )
2022-08-18 09:18:18 +02:00
Michael Telatynski
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
Šimon Brandner
9b8b1d193e
Disable redacting reactions if we don't have sufficient permissions ( #8767 )
2022-06-10 18:41:05 +00: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
Michael Telatynski
964c60d086
Apply corrections identified by SonarQube ( #8457 )
2022-05-03 22:04:37 +01:00
Travis Ralston
997d6d40bf
Step 1: Remove all usage of @replaceableComponent
2022-03-28 14:02:31 -06:00
Šimon Brandner
3534e9b6ce
Upgrade emojibase
and twemoji
( #7286 )
...
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-23 17:08:34 +00:00
Michael Telatynski
c727942095
Autofocus correct composer after sending reaction ( #7950 )
2022-03-02 16:31:34 +00:00
Šimon Brandner
df591ee835
Make everything use the KeyBindingManager
( #7907 )
2022-02-28 16:05:52 +00:00
Michael Telatynski
5163ad216f
Use lazy rendering in the AddExistingToSpaceDialog ( #7369 )
2021-12-15 09:55:53 +00:00
Kerry
eab028f2f8
Make emoji picker search placeholder localizable ( #7294 )
2021-12-06 14:39:11 +00:00
Michael Telatynski
87e8e3d6ef
Fix EmojiPicker lazy loaded rendering bug ( #7225 )
2021-11-29 17:12:56 +00:00
Michael Telatynski
ddbfebbaa0
Fix automatic composer focus, regressed by threads work ( #7167 )
2021-11-19 17:15:15 +00:00
Michael Telatynski
e089c34db7
Fix EmojiPicker filtering to lower case emojibase data strings
2021-08-31 17:36:10 +01:00
Michael Telatynski
f5630acea7
Adhere to better eslint rules
2021-07-23 10:35:10 +01:00
Michael Telatynski
d8c4ab53e0
Merge pull request #6347 from robintown/emojibase-updates
2021-07-20 12:57:00 +01:00
Michael Telatynski
ce78cdf4ad
Conform to new react and typescript eslint rules
2021-07-19 22:43:11 +01:00
Robin Townsend
f8a922eaa1
Apply code review suggestions
...
including filling in gaps in emoji shortcode coverage.
Signed-off-by: Robin Townsend <robin@robin.town>
2021-07-19 15:09:15 -04:00
Robin Townsend
f88d5dd24e
Zip shortcodes in with emoji objects
...
Signed-off-by: Robin Townsend <robin@robin.town>
2021-07-16 16:36:03 -04:00
Robin Townsend
718887dd27
Update Emojibase and switch to IamCal (Slack-style) shortcodes
...
for consistency with shortcodes commonly used by other platforms, as
was decided in https://github.com/vector-im/element-web/issues/13857 .
One thing to be aware of is that the currently used version of Twemoji
does not support a few of the newer emoji present in Emojibase, so these
look a little out of place in the emoji picker. Optimally Twemoji would
be updated at the same time, though I don't know how to do that.
Signed-off-by: Robin Townsend <robin@robin.town>
2021-07-10 23:13:48 -04:00
Šimon Brandner
7734f8aeef
Handle focusing multiple composers
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-08 17:33:49 +02:00
Šimon Brandner
14687f3630
Merge remote-tracking branch 'upstream/develop' into fix/focus-composer-reaction/11023
2021-07-08 13:19:46 +02:00
Šimon Brandner
64f32a9fc1
Focus composer after reacting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-08 13:12:57 +02:00
Šimon Brandner
b7ef7d2a47
Fifth batch of burning
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-03 10:06:42 +02:00
David Baker
80f5232217
Comply with new member-delimiter-style rule
...
Just `eslint --fix` with rule from
https://github.com/matrix-org/eslint-plugin-matrix-org/pull/9 in place
2021-07-01 23:23:03 +01:00