-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details screen of a poll (PSG-1039) #7314
Conversation
# Conflicts: # Riot/Assets/en.lproj/Vector.strings # Riot/Generated/Strings.swift
# Conflicts: # Riot/Generated/Strings.swift # RiotSwiftUI/Modules/Room/PollHistory/Coordinator/PollHistoryCoordinator.swift # RiotSwiftUI/Modules/Room/PollHistory/PollHistoryModels.swift # RiotSwiftUI/Modules/Room/PollHistory/PollHistoryViewModel.swift
Codecov ReportBase: 12.02% // Head: 12.06% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #7314 +/- ##
===========================================
+ Coverage 12.02% 12.06% +0.04%
===========================================
Files 1630 1634 +4
Lines 161272 161473 +201
Branches 66073 66221 +148
===========================================
+ Hits 19391 19489 +98
- Misses 141237 141336 +99
- Partials 644 648 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
RiotSwiftUI/Modules/Room/PollHistory/Coordinator/PollHistoryCoordinator.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/Room/PollHistory/Coordinator/PollHistoryCoordinator.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/Room/PollHistory/PollHistoryDetail/View/PollHistoryDetail.swift
Outdated
Show resolved
Hide resolved
...I/Modules/Room/PollHistory/PollHistoryDetail/Test/Unit/PollHistoryDetailViewModelTests.swift
Show resolved
Hide resolved
RiotSwiftUI/Modules/Room/PollHistory/PollHistoryDetail/View/PollHistoryDetail.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/Room/PollHistory/PollHistoryDetail/View/PollHistoryDetail.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/Room/PollHistory/PollHistoryDetail/View/PollHistoryDetail.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
self.parameters = parameters | ||
let timelinePollCoordinator = try TimelinePollCoordinator(parameters: .init(session: parameters.room.mxSession, room: parameters.room, pollEvent: parameters.event)) | ||
|
||
let viewModel = PollHistoryDetailViewModel(timelineViewModel: timelinePollCoordinator.viewModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the idea behind constructing a viewModel with another viewModel? There should be a 1to1 relationship between a coordinator a view model and the view it controls
Kudos, SonarCloud Quality Gate passed! |
Details of poll starting from poll history list.
The poll it's showed accordingly with it's status.
It's done by embedding the existing TimelinePoll in order to save all the existing logic for voting, and live update.
There is the possibility to see the Poll in timeline, navigating back to Room