Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Display started polls in timeline (without votes) (behind labs setting) #7088

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented Nov 5, 2021

It doesn't work yet, but this shows polls in the timeline, and allows you to click options to see how they look.

Posting this PR in the hope of getting early feedback on the visual design and code structure.

image
image


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://618bac011943fa006f02f0e2--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@andybalaam andybalaam added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Nov 5, 2021
@andybalaam andybalaam requested a review from a team as a code owner November 5, 2021 11:16
@andybalaam andybalaam added T-Task Refactoring, enabling or disabling functionality, other engineering tasks and removed T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements labels Nov 5, 2021
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, even though you obviously chose the wrong answer in that poll... 🇫🇷

src/components/views/messages/MPollBody.tsx Show resolved Hide resolved
src/components/views/messages/MPollBody.tsx Show resolved Hide resolved
Copy link

@gaelledel gaelledel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The hover state should show background colour for option frames

Current:
Screenshot 2021-11-09 at 15 39 20

Desired
Screenshot 2021-11-09 at 15 40 39
Screenshot 2021-11-09 at 15 51 28

  • The poll creator name and avatar should be the same size and layout, colour as a normal text message.

Current:
Screenshot 2021-11-09 at 15 42 14

Desired:
Screenshot 2021-11-09 at 15 42 47

  • Also it seems to take a long time for the poll to be rendered on the timeline when I press Create poll from the modal. Unsure what can be done on this one.

@andybalaam
Copy link
Contributor Author

Also it seems to take a long time for the poll to be rendered on the timeline when I press Create poll from the modal. Unsure what can be done on this one.

I tried it just now and it was instant, so I think the delay you saw was probably not related to the work we are doing here.

Copy link

@gaelledel gaelledel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thanks for the changes :)

Could you double check that the frame options is set to Quinary for both themes? Otherwise all good, cheers.

Screenshot 2021-11-10 at 11 40 18

@andybalaam
Copy link
Contributor Author

@gaelledel do you mean the circular border of the radio buttons? Should that be quinary? In #7087 I made it quaternary - was that incorrect?

@gaelledel
Copy link

No I meant the rectangular border of options on the timeline

@andybalaam
Copy link
Contributor Author

No I meant the rectangular border of options on the timeline

Cool, yes these are quinary.

Thank you!

@andybalaam andybalaam merged commit 431b69e into matrix-org:develop Nov 10, 2021
@andybalaam andybalaam deleted the psf-506-display-initial-poll-in-timeline branch November 10, 2021 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants