Refine polls UI in the timeline (#1474)

* Add summary view in PollRoomTimelineView

* Add selectedPollOption action

* Handle undisclosed polls

* Add more logics in PollRoomTimelineView

* Refine ended poll UI

* Refine poll layout

* More UI refinements

* Fix layout issue

* Refine progress bar

* Add poll mocks and UI tests

* Cleanup
This commit is contained in:
Alfonso Grillo
2023-08-11 12:25:16 +02:00
committed by GitHub
parent f64159670b
commit 25f66d2557
27 changed files with 465 additions and 144 deletions
@@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -1,89 +0,0 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 4.000000 4.000000 cm
0.196078 0.196078 0.196078 scn
8.000000 0.000000 m
9.100000 0.000000 10.000000 0.900000 10.000000 2.000000 c
10.000000 14.000000 l
10.000000 15.100000 9.100000 16.000000 8.000000 16.000000 c
6.900000 16.000000 6.000000 15.100000 6.000000 14.000000 c
6.000000 2.000000 l
6.000000 0.900000 6.900000 0.000000 8.000000 0.000000 c
h
2.000000 0.000000 m
3.100000 0.000000 4.000000 0.900000 4.000000 2.000000 c
4.000000 6.000000 l
4.000000 7.100000 3.100000 8.000000 2.000000 8.000000 c
0.900000 8.000000 0.000000 7.100000 0.000000 6.000000 c
0.000000 2.000000 l
0.000000 0.900000 0.900000 0.000000 2.000000 0.000000 c
h
12.000000 9.000000 m
12.000000 2.000000 l
12.000000 0.900000 12.900000 0.000000 14.000000 0.000000 c
15.100000 0.000000 16.000000 0.900000 16.000000 2.000000 c
16.000000 9.000000 l
16.000000 10.100000 15.100000 11.000000 14.000000 11.000000 c
12.900000 11.000000 12.000000 10.100000 12.000000 9.000000 c
h
f
n
Q
endstream
endobj
3 0 obj
1014
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 24.000000 24.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000001104 00000 n
0000001127 00000 n
0000001300 00000 n
0000001374 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1433
%%EOF
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "equalizer.pdf",
"filename" : "timeline-poll.pdf",
"idiom" : "universal"
}
],
@@ -0,0 +1,121 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 2.750000 2.750000 cm
0.105882 0.113725 0.133333 scn
4.583333 3.666666 m
4.843056 3.666666 5.060764 3.754514 5.236458 3.930208 c
5.412153 4.105903 5.500000 4.323611 5.500000 4.583333 c
5.500000 9.166666 l
5.500000 9.426389 5.412153 9.644096 5.236458 9.819792 c
5.060764 9.995485 4.843056 10.083333 4.583333 10.083333 c
4.323611 10.083333 4.105903 9.995485 3.930208 9.819792 c
3.754514 9.644096 3.666667 9.426389 3.666667 9.166666 c
3.666667 4.583333 l
3.666667 4.323611 3.754514 4.105903 3.930208 3.930208 c
4.105903 3.754514 4.323611 3.666666 4.583333 3.666666 c
h
8.250000 3.666666 m
8.509723 3.666666 8.727430 3.754514 8.903125 3.930208 c
9.078819 4.105903 9.166667 4.323611 9.166667 4.583333 c
9.166667 11.916666 l
9.166667 12.176389 9.078819 12.394097 8.903125 12.569792 c
8.727430 12.745486 8.509723 12.833333 8.250000 12.833333 c
7.990278 12.833333 7.772570 12.745486 7.596875 12.569792 c
7.421181 12.394097 7.333333 12.176389 7.333333 11.916666 c
7.333333 4.583333 l
7.333333 4.323611 7.421181 4.105903 7.596875 3.930208 c
7.772570 3.754514 7.990278 3.666666 8.250000 3.666666 c
h
11.916667 3.666666 m
12.176389 3.666666 12.394097 3.754514 12.569792 3.930208 c
12.745486 4.105903 12.833334 4.323611 12.833334 4.583333 c
12.833334 6.416666 l
12.833334 6.676389 12.745486 6.894097 12.569792 7.069792 c
12.394097 7.245486 12.176389 7.333333 11.916667 7.333333 c
11.656944 7.333333 11.439237 7.245486 11.263542 7.069792 c
11.087848 6.894097 11.000000 6.676389 11.000000 6.416666 c
11.000000 4.583333 l
11.000000 4.323611 11.087848 4.105903 11.263542 3.930208 c
11.439237 3.754514 11.656944 3.666666 11.916667 3.666666 c
h
1.833333 0.000000 m
1.329167 0.000000 0.897569 0.179514 0.538542 0.538542 c
0.179514 0.897569 0.000000 1.329166 0.000000 1.833333 c
0.000000 14.666667 l
0.000000 15.170834 0.179514 15.602430 0.538542 15.961458 c
0.897569 16.320486 1.329167 16.500000 1.833333 16.500000 c
14.666667 16.500000 l
15.170834 16.500000 15.602431 16.320486 15.961458 15.961458 c
16.320486 15.602430 16.500000 15.170834 16.500000 14.666667 c
16.500000 1.833333 l
16.500000 1.329166 16.320486 0.897569 15.961458 0.538542 c
15.602431 0.179514 15.170834 0.000000 14.666667 0.000000 c
1.833333 0.000000 l
h
1.833333 1.833333 m
14.666667 1.833333 l
14.666667 14.666667 l
1.833333 14.666667 l
1.833333 1.833333 l
h
f
n
Q
endstream
endobj
3 0 obj
2382
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 22.000000 22.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000002472 00000 n
0000002495 00000 n
0000002668 00000 n
0000002742 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
2801
%%EOF
@@ -93,6 +93,9 @@
"common_password" = "Password";
"common_people" = "People";
"common_permalink" = "Permalink";
"common_poll_final_votes" = "Final votes: %1$@";
"common_poll_total_votes" = "Total votes: %1$@";
"common_poll_undisclosed_text" = "Results will show after the poll has ended";
"common_privacy_policy" = "Privacy policy";
"common_reactions" = "Reactions";
"common_refreshing" = "Refreshing…";