Feature/4393 poll with visible participant p1

This commit is contained in:
Frank Rotermund
2023-05-25 13:52:30 +00:00
committed by JanNiklas Grabowski
parent b76b4e0803
commit 902b529245
18 changed files with 71 additions and 5 deletions
@@ -40,6 +40,7 @@ enum MockPollHistoryDetailScreenState: MockScreenState, CaseIterable {
startDate: .init(timeIntervalSinceReferenceDate: 0),
totalAnswerCount: 20,
type: self == .closedDisclosed || self == .openDisclosed ? .disclosed : .undisclosed,
showParticipants: false,
eventType: self == .closedPollEnded ? .ended : .started,
maxAllowedSelections: 1,
hasBeenEdited: false,
@@ -57,6 +57,7 @@ private extension MockPollHistoryService {
startDate: .init().addingTimeInterval(TimeInterval(-index) * 3600 * 24),
totalAnswerCount: 30,
type: .disclosed,
showParticipants: false,
eventType: .started,
maxAllowedSelections: 1,
hasBeenEdited: false,
@@ -74,6 +75,7 @@ private extension MockPollHistoryService {
startDate: .init().addingTimeInterval(TimeInterval(-index) * 3600 * 24),
totalAnswerCount: 30,
type: .disclosed,
showParticipants: false,
eventType: .started,
maxAllowedSelections: 1,
hasBeenEdited: false,
@@ -90,6 +90,7 @@ struct PollListItem_Previews: PreviewProvider {
startDate: .init(),
totalAnswerCount: 30,
type: .disclosed,
showParticipants: false,
eventType: .started,
maxAllowedSelections: 1,
hasBeenEdited: false,
@@ -102,6 +103,7 @@ struct PollListItem_Previews: PreviewProvider {
startDate: .init(),
totalAnswerCount: 30,
type: .disclosed,
showParticipants: false,
eventType: .started,
maxAllowedSelections: 1,
hasBeenEdited: false,
@@ -117,6 +119,7 @@ struct PollListItem_Previews: PreviewProvider {
startDate: .init(),
totalAnswerCount: 30,
type: .disclosed,
showParticipants: false,
eventType: .started,
maxAllowedSelections: 1,
hasBeenEdited: false,