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
Michael Telatyński
629e5cb01f
Properly type Modal props to ensure useful typescript checking ( #10238
...
* Properly type Modal props to ensure useful typescript checking
* delint
* Iterate
* Iterate
* Fix modal.close loop
* Iterate
* Fix tests
* Add comment
* Fix test
2023-02-28 10:31:48 +00:00
Suguru Hirahara
ea4000cf1e
Fix 'Failed check: Ellipsis' on Weblate ( #10144 )
...
* Fix 'Failed check: Ellipsis' on Weblate
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Fix tests
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Remove white space characters before the horizontal ellipsis from RoomPreviewBar
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* yarn run i18n
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Additional change
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
---------
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-02-14 09:05:01 +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
Kerry
9a8545bf34
Fix: Editing a poll will silently change it to a closed poll ( #9809 )
...
* add failing test case
* dont reset poll disclosure on editing
2022-12-21 21:29:11 +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 Weimann
3be20cf434
Use doMaybeLocalRoomAction ( #9038 )
...
* Use doMaybeLocalRoomAction
* Revert unnecessary changes
2022-07-13 07:56:36 +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
Andy Balaam
f1e1b7be86
Support "closed" polls whose votes are not visible until they are ended ( #7842 )
2022-02-21 10:21:35 +00:00
Kerry
fc9a221371
Focus trap in poll creation dialog ( #7847 )
...
* add autofocus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* scope ids
Signed-off-by: Kerry Archibald <kerrya@element.io>
* whitespace
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-18 16:35:08 +00:00
Andy Balaam
7387f3c80a
Allow editing polls ( #7806 )
2022-02-17 09:13:05 +00:00
Germain
f0446a23d5
Fix poll creation from a thread ( #7706 )
2022-02-02 17:55:41 +00:00
Travis Ralston
65987e6b72
Move all polls processing to events-sdk & prep for stable polls ( #7517 )
...
* Move all polls processing to events-sdk
This makes polls support the full range of extensible events (both parsing and generation).
* Appease the linter
* Fix & update tests
* Update events-sdk for polls bugfix
* Update events-sdk for typechecking
* Add missing type cast
* Update per review
2022-01-17 10:06:30 -07:00
Andy Balaam
fc58ce7ed2
Use the moved makePollContent function from js-sdk ( #7387 )
2021-12-15 16:54:01 +00:00
Andy Balaam
43839adec0
Use constants from js-sdk in polls code ( #7381 )
2021-12-15 14:26:26 +00:00
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Andy Balaam
965539da2d
Show an error dialog if poll creation or voting fails ( #7201 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-11-25 17:00:13 +00:00
Andy Balaam
d7f3d2791a
Basic tests for PollCreateDialog ( #7193 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-11-24 13:48:07 +00:00
Andy Balaam
aec09dcad2
Show a spinner while waiting for a poll to be created ( #7189 )
2021-11-23 14:19:48 +00:00
Andy Balaam
39e47e0375
Limit the length of poll questions and answers to 340 characters ( #7166 )
2021-11-19 14:01:30 +00:00
Travis Ralston
73731cc478
Polls: Creation form & start event ( #7001 )
...
* PSFD-423: Permission check for polls dialog
* PSFD-423: Implement compound scrollable dialog and skeleton create poll
* PSFD-325: Ask the question
* PSFD-328: Ask for options
* PSFD-423: Ensure form submission semantics work for dialogs
* PSFD-328: Option semantics
* Can delete all option to end up with zero
* Minimum 2 to submit the form
* PSFD-316: Send poll start event
* Appease the linter
* PSFD-328: Reduce padding between options to account for field size
* Iterate per design
* Fix submission
2021-11-01 23:44:42 -06:00