★ wanayoo — archive 1999 https://github.com/RocketChat/Rocket.Chat.iOS/pull/2357Nouvelle recherche | Portail wanayoo
Skip to content
This repository has been archived by the owner. It is now read-only.

[NEW] Header of conversations #2357

Merged
merged 22 commits into from Dec 7, 2018
Merged

Conversation

@rafaelks
Copy link
Contributor

@rafaelks rafaelks commented Nov 23, 2018 •

@RocketChat/ios

Closes #2328

--

img_0265 2

img_0263 2

img_0264 2

@rafaelks rafaelks added this to the 3.2.0 milestone Nov 23, 2018
@rafaelks rafaelks added this to In progress in Cycle 11: 11/05 ~ 12/05 via automation Nov 23, 2018
rafaelks added 3 commits Nov 23, 2018
@rafaelks rafaelks requested review from filipealva and cardoso Nov 29, 2018
@rafaelks rafaelks changed the title [WIP][NEW] Header of conversations [NEW] Header of conversations Nov 29, 2018
@codecov
Copy link

@codecov codecov bot commented Nov 29, 2018 •

Codecov Report

Merging #2357 into develop will decrease coverage by 0.15%.
The diff coverage is 14.51%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2357      +/-   ##
===========================================
- Coverage    26.18%   26.02%   -0.16%     
===========================================
  Files          444      447       +3     
  Lines        16715    16770      +55     
===========================================
- Hits          4376     4365      -11     
- Misses       12339    12405      +66
Impacted Files Coverage Δ
Rocket.Chat/Models/Message/UnmanagedMessage.swift 32.87% <ø> (ø) ⬆️
...et.Chat/Views/Chat/New Chat/Cells/HeaderCell.swift 0% <0%> (ø)
...cket.Chat/Controllers/Chat/MessagesViewModel.swift 35.19% <16.66%> (+0.16%) ⬆️
...Chat/Controllers/Chat/MessagesViewController.swift 41.92% <16.66%> (+2.15%) ⬆️
.../Controllers/Chat/ChatSections/HeaderSection.swift 28.57% <28.57%> (ø)
...t.Chat/Models/ChatModels/MessageSectionModel.swift 61.11% <33.33%> (-5.56%) ⬇️
...Views/Chat/New Chat/ChatItems/HeaderChatItem.swift 8% <8%> (ø)
...anagers/Model/AuthManager/AuthManagerRecover.swift 36.36% <0%> (-60.61%) ⬇️
Rocket.Chat/Managers/AppManager.swift 42.75% <0%> (-4.83%) ⬇️
Rocket.Chat/Managers/PushManager.swift 24.13% <0%> (-3.45%) ⬇️
... and 7 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 7b76eea...7b19681. Read the comment docs.

Copy link
Collaborator

@cardoso cardoso left a comment

Looks great 👍

Copy link
Collaborator

@filipealva filipealva left a comment

The header needs to be presented even when there's no message on a conversation, and currently it's not showed

let containsUnreadMessageIndicator: Bool

var containsDateSeparator: Bool { return daySeparator != nil }

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

This comment has been minimized.

@houndci-bot

houndci-bot Dec 7, 2018

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

@@ -159,6 +160,12 @@ final class MessagesViewController: RocketChatViewController {
guard let self = self else { return }
Log.debug("[VIEW MODEL] dataChanged with \(self.viewModel.dataNormalized.count) values.")

if self.viewModel.dataNormalized.first?.model.differenceIdentifier == AnyHashable(HeaderChatItem.globalIdentifier) {

This comment has been minimized.

@houndci-bot

houndci-bot Dec 7, 2018

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

@filipealva filipealva changed the title [NEW] Header of conversations [WIP][NEW] Header of conversations Dec 7, 2018
rafaelks and others added 3 commits Dec 7, 2018
@filipealva filipealva changed the title [WIP][NEW] Header of conversations [NEW] Header of conversations Dec 7, 2018
rafaelks added 4 commits Dec 7, 2018
…Chat/Rocket.Chat.iOS into feature/header_conversations.2328
@rafaelks rafaelks merged commit 09d04c1 into develop Dec 7, 2018
4 of 6 checks passed
4 of 6 checks passed
codecov/patch 14.51% of diff hit (target 26.18%)
Details
codecov/project 26.02% (-0.16%) compared to d56b19d
Details
Hound 2 violations found.
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
license/cla Contributor License Agreement is signed.
Details
@rafaelks rafaelks deleted the feature/header_conversations.2328 branch Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.