element-web/test/components/views/dialogs
Kerry 18ab325eaf
Poll history - filter by active or ended (#10098)
* 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

* render a poll body that errors for poll end events

* add fetching logic to pollend tile

* extract poll testing utilities

* test mpollend

* strict fix

* more strict fix

* strict fix for forwardref

* add filter component

* update poll test utils

* add unstyled filter tab group

* filtertabgroup snapshot

* lint

* update test util setupRoomWithPollEvents to allow testing multiple polls in one room

* style filter tabs

* test error message for past polls

* sort polls list by latest

* move FilterTabGroup into generic components

* comments

* Update src/components/views/dialogs/polls/types.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-02-13 09:19:45 +13:00
..
__snapshots__ Devtools for stuck notifications (#10042) 2023-02-03 11:07:24 +01:00
devtools Devtools for stuck notifications (#10042) 2023-02-03 11:07:24 +01:00
polls Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
spotlight Apply prettier formatting 2022-12-12 12:24:14 +01:00
AccessSecretStorageDialog-test.tsx Autofocus security key field (#10048) 2023-02-03 09:39:25 +01:00
ChangelogDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ConfirmRedactDialog-test.tsx When deleting a voice broadcast, also delete related events (#9737) 2022-12-23 15:44:01 +00:00
DevtoolsDialog-test.tsx Use CopyableText in devtools (#9993) 2023-01-30 17:01:54 +00:00
ExportDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ForwardDialog-test.tsx Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
InteractiveAuthDialog-test.tsx Migrate InteractiveAuthDialog-test.tsx to react-testing-library (#10134) 2023-02-10 14:00:02 +01:00
InviteDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
MessageEditHistoryDialog-test.tsx Fix "[object Promise]" appearing in HTML exports (#9975) 2023-01-30 14:31:32 +00:00
SpotlightDialog-test.tsx Migrate SpotlightDialog for dynamic room predecessors (#10076) 2023-02-03 15:47:07 +01:00
UserSettingsDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00