Create poll UX (#1571)

* Add poll attachment button

* Add poll creation feature flag

* Setup navigation to CreatePollScreen

* Add create/cancel actions

* Add create poll screen ui skeleton

* Add bindings in CreatePollScreen

* Add logics in CreatePollScreen

* Cleanup code

* Fix option deletion crash

* Fix conflicts

* Add create poll logic

* Add localisations

* Fix test build errors

* Fix crash

* Add UTs

* Add accessibility IDs

* Add ui tests

* Add 240 char limit

* Fix addOption hide behavior

* Add maxNumberOfOptions

* Cleanup code

* Move delete workaround in the view model

* Use compound delete icon
This commit is contained in:
Alfonso Grillo
2023-08-30 11:23:30 +02:00
committed by GitHub
parent e08d7b491e
commit a2623dd254
41 changed files with 846 additions and 3 deletions
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "timeline-poll-attachment.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
@@ -0,0 +1,95 @@
%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.000000 3.000000 cm
0.000000 0.000000 0.000000 scn
4.500000 0.000000 m
1.000000 0.000000 l
0.450000 0.000000 0.000000 0.450001 0.000000 1.000000 c
0.000000 11.000000 l
0.000000 11.550000 0.450000 12.000000 1.000000 12.000000 c
4.500000 12.000000 l
5.050000 12.000000 5.500000 11.550000 5.500000 11.000000 c
5.500000 1.000000 l
5.500000 0.450001 5.050000 0.000000 4.500000 0.000000 c
h
11.750000 18.000000 m
8.250000 18.000000 l
7.700000 18.000000 7.250000 17.549999 7.250000 17.000000 c
7.250000 1.000000 l
7.250000 0.450001 7.700000 0.000000 8.250000 0.000000 c
11.750000 0.000000 l
12.300000 0.000000 12.750000 0.450001 12.750000 1.000000 c
12.750000 17.000000 l
12.750000 17.549999 12.300000 18.000000 11.750000 18.000000 c
h
19.000000 10.000000 m
15.500000 10.000000 l
14.950000 10.000000 14.500000 9.550000 14.500000 9.000000 c
14.500000 1.000000 l
14.500000 0.450001 14.950000 0.000000 15.500000 0.000000 c
19.000000 0.000000 l
19.549999 0.000000 20.000000 0.450001 20.000000 1.000000 c
20.000000 9.000000 l
20.000000 9.550000 19.549999 10.000000 19.000000 10.000000 c
h
f
n
Q
endstream
endobj
3 0 obj
1151
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
0000001241 00000 n
0000001264 00000 n
0000001437 00000 n
0000001511 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1570
%%EOF
@@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}