Christian Schmidt
0e476f3c4f
[Glitch] Add `lang` attribute to media and poll options
Port d3eefead30
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Renaud Chaput
81ef21a0c8
[Glitch] Rename JSX files with proper `.jsx` extension
Port 44a7d87cb1
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Claire
155424e52f
[Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what
c49213f0ea
and a few others did.
1 year ago
Claire
b728b25c10
Move flavours/glitch/utils/emoji back to flavours/glitch/features/emoji
1 year ago
Claire
015e798394
Move some modules from flavours/glitch/utils/ back to flavours/glitch/features/ui/util/
1 year ago
Claire
d3879c07b1
Rename flavours/glitch/util into flavours/glitch/utils
1 year ago
Eugen Rochko
b38361a347
[Glitch] Fix various issues with logged-out Web UI
Port fixes from e623c302d5
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
1 year ago
Sasha Sorokin
5169b374c6
[Glitch] Add single option votes tooltip in polls
Port 89b5071fde
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
ThibG
00e55445b9
[Glitch] Add “translate” class to other user strings
Port 5fcac81302
to glitch-soc
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
3 years ago
ThibG
81ef26b67d
[Glitch] Fix not being able to vote
Port e12a5635da
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
Gurgen Hayrapetyan
4849752a9c
[Glitch] Fix Poll fetchPoll action not being debounced.
Port ab8d7c0680
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
Sasha Sorokin
b367dd713e
[Glitch] Improve polls: option lengths & redesign
Port 37b3985bfa
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
c6ba870f00
[Glitch] Fix poll options not being selectable via keyboard
Port c05ed8a625
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
Takeshi Umeda
f2fc7246e1
[Glitch] Fix an issue where polls with 'expires_at' not set expired
Port 5b46467474
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
e5a50eda4c
[Glitch] Add voters count support
Port front-end changes from 3babf8464b
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
332be562ea
[Glitch] Change vote results to display ex-aequo leading options as leading
Port 15b3eeb326
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
98cc81c0e2
[Glitch] Fix vote checkmark in poll results
Port b0cda7a504
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
e25b7feb72
[Glitch] Show user what options they have voted
Port front-end changes from b359974d9b
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
ThibG
15a37a967c
[Glitch] Fix expiring polls not being displayed as such in the WebUI
Port 524187b653
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
Thibaut Girka
682cfbb829
Fix imports importing modules from vanilla flavour instead of glitch
4 years ago
ThibG
be6885eb93
[Glitch] Update poll remaining time just like with status timestamps
Port daab45d4ae
to glitch-soc
5 years ago
ThibG
8b5b686f08
[Glitch] Add support for custom emojis in poll options
Fixes #956
Port 80f0910e21
to glitch-soc
5 years ago
Eugen Rochko
ca45198ccb
[Glitch] Fix NaN in Poll component
Port 75cb93676b
to glitch-soc
5 years ago
Eugen Rochko
94a0149ff3
Fix poll options not rendering text after vote/refresh
Port fd128b9c7a
to glitch-soc
5 years ago
Eugen Rochko
7f32d675b0
Render unicode emoji in polls using emoji pack
Port 4407f07014
to glitch-soc
5 years ago
Eugen Rochko
ba6ca3cd69
Fix various issues in polls
Port front-end changes from a198add83b
to glitch-soc
5 years ago
ThibG
7f27ee35a8
Display closed polls as such
Port cda6ece760
to glitch-soc
5 years ago
ThibG
530151466e
Fixes to the polls UI
Port 4ced609497
to glitch-soc
5 years ago
Eugen Rochko
f14eda23e9
Fix web UI crash on page load when detailed status has a poll
Port 5dfa433698
to glitch-soc
5 years ago
Eugen Rochko
8d70a8a19b
Add polls
Port front-end parts of 230a012f00
to glitch-soc
5 years ago
Eugen Rochko
a198add83b
Fix various issues in polls ( #10165 )
* Fix ActivityPub poll results being serialized even with hide_totals
* Fix poll refresh button having a different font size
* Display poll in OpenGraph description
* Fix NoMethodError when serializing votes
Regression from #10158
* Fix polls on public pages being broken for non-logged-in users
* Do not show time remaining if poll has no expiration date
5 years ago
ThibG
cda6ece760
Display closed polls as such ( #10156 )
5 years ago
ThibG
4ced609497
Fixes to the polls UI ( #10150 )
* Allow unselecting choices in multiple choice polls
* Properly disable checkboxes/radio buttons for polls in public pages
* Visually differentiate checkboxes and radio buttons
5 years ago
Eugen Rochko
5dfa433698
Fix web UI crash on page load when detailed status has a poll ( #10139 )
5 years ago
Eugen Rochko
230a012f00
Add polls ( #10111 )
* Add polls
Fix #1629
* Add tests
* Fixes
* Change API for creating polls
* Use name instead of content for votes
* Remove poll validation for remote polls
* Add polls to public pages
* When updating the poll, update options just in case they were changed
* Fix public pages showing both poll and other media
5 years ago