riot-web/test/components/views/elements
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__ Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
AccessibleButton-test.tsx
AppTile-test.tsx Migrate AppTile-Test to RTL (#9838) 2022-12-30 10:33:10 +00:00
EventListSummary-test.tsx Fix wrongly grouping 3pid invites into a single repeated transition (#10087) 2023-02-07 10:09:46 +00:00
ExternalLink-test.tsx
Field-test.tsx Add edit and remove actions to link in RTE (#9864) 2023-01-11 10:10:55 +00:00
FilterDropdown-test.tsx
FilterTabGroup-test.tsx Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
InteractiveTooltip-test.ts
LabelledCheckbox-test.tsx Migrate LabelledCheckbox-test to react-testing-library (#10115) 2023-02-09 12:23:34 +01:00
LearnMore-test.tsx
PollCreateDialog-test.tsx Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
PowerSelector-test.tsx
ProgressBar-test.tsx
QRCode-test.tsx
ReplyChain-test.tsx
StyledRadioGroup-test.tsx
SyntaxHighlight-test.tsx Fix error when viewing source of redacted events (#9914) 2023-01-15 16:22:59 +00:00
TooltipTarget-test.tsx