Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[NEW] Add support to Headers & Loaders to the View Model & much more tests #2263

Merged

Conversation

rafaelks
Copy link
Contributor

@RocketChat/ios

  • This PR adds the properties related to loaders & headers to the view model;
  • Also includes tests that covers most of the properties normalized from the view model;

First needs to merge #2262

@rafaelks rafaelks added this to the 3.2.0 milestone Oct 25, 2018
@rafaelks rafaelks added this to In Progress in Cycle 10: 10/05 ~ 11/05 via automation Oct 25, 2018
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths Rocket.Chat/Views/Chat/New, Chat/Cells/UnreadMarkerCell.swift
No lintable files found at paths: 'Rocket.Chat/Views/Chat/New, Chat/Cells/UnreadMarkerCell.swift'

var containsDateSeparator: Bool { return daySeparator != nil }

init(message: UnmanagedMessage, daySeparator: Date? = nil, sequential: Bool = false, unreadIndicator: Bool = false) {
init(message: UnmanagedMessage, daySeparator: Date? = nil, sequential: Bool = false, unreadIndicator: Bool = false, loader: Bool = false, header: Bool = false) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 165 characters (line_length)

@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

Merging #2263 into feature/integrate-rc-view-controller will increase coverage by 0.08%.
The diff coverage is 24.13%.

Impacted file tree graph

@@                           Coverage Diff                            @@
##           feature/integrate-rc-view-controller    #2263      +/-   ##
========================================================================
+ Coverage                                 25.73%   25.82%   +0.08%     
========================================================================
  Files                                       434      436       +2     
  Lines                                     16341    16367      +26     
========================================================================
+ Hits                                       4206     4226      +20     
- Misses                                    12135    12141       +6
Impacted Files Coverage Δ
Rocket.Chat/Extensions/UIColorExtension.swift 56.81% <ø> (ø) ⬆️
...ket.Chat/Controllers/Chat/ChatViewController.swift 0% <ø> (ø) ⬆️
Rocket.Chat/API/Clients/SubscriptionsClient.swift 37.97% <0%> (ø) ⬆️
...Chat/New Chat/ChatItems/UnreadMarkerChatItem.swift 0% <0%> (ø)
...t/Views/Chat/New Chat/Cells/UnreadMarkerCell.swift 0% <0%> (ø)
...Controllers/Chat/ChatSections/MessageSection.swift 3.06% <0%> (+2.02%) ⬆️
...scriptionManager/SubscriptionManagerMessages.swift 0% <0%> (ø) ⬆️
...cket.Chat/Controllers/Chat/MessagesViewModel.swift 33.75% <100%> (+12.97%) ⬆️
...t.Chat/Models/ChatModels/MessageSectionModel.swift 55.55% <100%> (+5.55%) ⬆️
...Chat/Controllers/Chat/MessagesViewController.swift 43.05% <25%> (-1.07%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 09dbb12...b1c80c9. Read the comment docs.

Cycle 10: 10/05 ~ 11/05 automation moved this from In Progress to In Review / QA Oct 25, 2018
Copy link
Collaborator

@filipealva filipealva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! 👍

@filipealva filipealva merged commit 980398b into feature/integrate-rc-view-controller Oct 25, 2018
Cycle 10: 10/05 ~ 11/05 automation moved this from In Review / QA to Done Oct 25, 2018
@filipealva filipealva deleted the feature/headers_and_loaders branch October 25, 2018 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants