Skip to content
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

MOB-1824 - Push messaging service update #392

Merged
merged 84 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
dd66958
Updated PUSH SDK
Oleg-Pecheneg Feb 13, 2024
fe8f068
Added new messages types and expected metadata.
Oleg-Pecheneg Feb 13, 2024
9873519
AnyCodable refactoring
Oleg-Pecheneg Feb 13, 2024
4a860d9
Added reaction message type
Oleg-Pecheneg Feb 13, 2024
669d607
Fixed Preview tartget
Oleg-Pecheneg Feb 13, 2024
d3dcac1
Working on reactions view
Oleg-Pecheneg Feb 13, 2024
0260f3b
Fixed main target
Oleg-Pecheneg Feb 13, 2024
e9be205
Updated loading logic.
Oleg-Pecheneg Feb 13, 2024
2d6beb2
Implemented UI for reactions
Oleg-Pecheneg Feb 14, 2024
57f7e57
Adjusted reactions position.
Oleg-Pecheneg Feb 14, 2024
078fec8
Adjusted text message bubble UI
Oleg-Pecheneg Feb 14, 2024
8376626
Fixed chat messages broken constraints
Oleg-Pecheneg Feb 14, 2024
f313ac2
Show reactions view in context menu
Oleg-Pecheneg Feb 14, 2024
3af143d
Merge branch 'development' into dev/feat/MOB-1824-push-messages
Oleg-Pecheneg Feb 14, 2024
036480a
Merge branch 'development' into dev/feat/MOB-1824-push-messages
Oleg-Pecheneg Feb 16, 2024
3b62d2e
Implementing Chat View in SwiftUI
Oleg-Pecheneg Feb 16, 2024
a26892f
Filling ChatViewModel
Oleg-Pecheneg Feb 16, 2024
13f6396
Handle keyboard focused state.
Oleg-Pecheneg Feb 16, 2024
41bb51c
Build mock message entities
Oleg-Pecheneg Feb 19, 2024
050bb14
Implemented UI for failed and sending states.
Oleg-Pecheneg Feb 19, 2024
4617a94
Implemented UI for image messages
Oleg-Pecheneg Feb 19, 2024
a6d8e47
Implemented UI for remote content message
Oleg-Pecheneg Feb 19, 2024
08dbbd6
Implemented UI for unknown message
Oleg-Pecheneg Feb 19, 2024
d6fb5c2
Added context menu to text and image messages
Oleg-Pecheneg Feb 19, 2024
a4cdb6c
Implemented chat nav view
Oleg-Pecheneg Feb 19, 2024
e445b19
Added top menu
Oleg-Pecheneg Feb 19, 2024
5570d55
Handle view state
Oleg-Pecheneg Feb 19, 2024
0bbb2d3
Show bottom view when needed
Oleg-Pecheneg Feb 19, 2024
77dd7de
Added placeholder to text field
Oleg-Pecheneg Feb 19, 2024
70b5a78
Handle chat view actions
Oleg-Pecheneg Feb 19, 2024
2e0a9e1
Created ChatsList module
Oleg-Pecheneg Feb 19, 2024
e2b56fc
Refactoring
Oleg-Pecheneg Feb 19, 2024
c525505
Implementing chats navigation
Oleg-Pecheneg Feb 19, 2024
b2c7958
Use new chats list
Oleg-Pecheneg Feb 19, 2024
b39af72
Merge branch 'development' into dev/feat/MOB-1824-push-messages
Oleg-Pecheneg Feb 20, 2024
b9ccca6
Added more mock chats
Oleg-Pecheneg Feb 20, 2024
81d4ed2
Show communities in list
Oleg-Pecheneg Feb 20, 2024
e3dbcb0
UI for channels list
Oleg-Pecheneg Feb 20, 2024
a1a227a
Show chats and channels requests
Oleg-Pecheneg Feb 20, 2024
7e8bdb4
Added empty states
Oleg-Pecheneg Feb 20, 2024
eb59c9b
Control search bar activation state
Oleg-Pecheneg Feb 20, 2024
e63d3f5
Hide data selector when search is active
Oleg-Pecheneg Feb 20, 2024
cc0f712
Show unread messages indicator
Oleg-Pecheneg Feb 20, 2024
98c5be6
Implemented search functionality
Oleg-Pecheneg Feb 20, 2024
175fd4e
Improved UI behaviours
Oleg-Pecheneg Feb 20, 2024
1cb5a77
Fixed empty state UI
Oleg-Pecheneg Feb 20, 2024
6e6f445
Implemented Channel module
Oleg-Pecheneg Feb 20, 2024
29c6afb
Implemented empty state for chats
Oleg-Pecheneg Feb 20, 2024
3e0aca4
Navigation refactoring
Oleg-Pecheneg Feb 20, 2024
6fec865
Created chat requests list view
Oleg-Pecheneg Feb 20, 2024
2a1d6ad
Implemented chats requests view
Oleg-Pecheneg Feb 20, 2024
642faad
Disable rows selection when selecting
Oleg-Pecheneg Feb 20, 2024
e0ca73e
Show edit button for chats only
Oleg-Pecheneg Feb 20, 2024
eea42b1
Navigation to chat requests
Oleg-Pecheneg Feb 20, 2024
d84abd3
Improved navigation transitions
Oleg-Pecheneg Feb 20, 2024
41fbea8
Improved chats list
Oleg-Pecheneg Feb 20, 2024
d589f85
Cleaning
Oleg-Pecheneg Feb 20, 2024
bc86a69
Project structure update
Oleg-Pecheneg Feb 21, 2024
d4f9fe0
Show unread messages indicator on data type selector
Oleg-Pecheneg Feb 21, 2024
8910c80
Cleaning
Oleg-Pecheneg Feb 21, 2024
6f85083
Added no search results state
Oleg-Pecheneg Feb 21, 2024
3da6af2
Minor UI improvements
Oleg-Pecheneg Feb 21, 2024
f231c9d
Added context actions to messages
Oleg-Pecheneg Feb 21, 2024
0a929b1
Adding reactions to messages
Oleg-Pecheneg Feb 21, 2024
0125d2f
Added reactions view
Oleg-Pecheneg Feb 21, 2024
b93d0cb
Added ability to select and send reactions
Oleg-Pecheneg Feb 21, 2024
ea5637e
Fixed navigation to empty view
Oleg-Pecheneg Feb 21, 2024
a8eac3e
Don't show reactions for private chats
Oleg-Pecheneg Feb 21, 2024
be7a34c
Show added reaction on the UI
Oleg-Pecheneg Feb 21, 2024
3912bec
Mark reactions as read
Oleg-Pecheneg Feb 21, 2024
d077aac
Minor fixes in chat view model
Oleg-Pecheneg Feb 21, 2024
5176a3f
Switch to fork Push SDK version
Oleg-Pecheneg Feb 21, 2024
7205b62
Push messages fetching optimisation
Oleg-Pecheneg Feb 21, 2024
bdac596
Set min height to reactions view
Oleg-Pecheneg Feb 21, 2024
b4f3c73
Updated scroll to logic
Oleg-Pecheneg Feb 21, 2024
8708348
Added progress indicator when loading more messages
Oleg-Pecheneg Feb 21, 2024
14932ca
Improved push chats secrets caching
Oleg-Pecheneg Feb 22, 2024
a9bb955
Improved chat top loading indicator
Oleg-Pecheneg Feb 22, 2024
d6e148b
Fixed loading indicator color
Oleg-Pecheneg Feb 22, 2024
ab0d33c
Improved scrolling
Oleg-Pecheneg Feb 22, 2024
7b1502a
Manually assign link to push messages
Oleg-Pecheneg Feb 22, 2024
ed8a463
Fixing messaging UI scrolling. Switch to ScrollView
Oleg-Pecheneg Feb 22, 2024
19748a0
Updated mock entities
Oleg-Pecheneg Feb 22, 2024
1c09344
Handle links tap in chat
Oleg-Pecheneg Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ final class MessagingService: MessagingServiceProtocol {
}

func getMessagesForChat(_ chatDisplayInfo: MessagingChatDisplayInfo, before message: MessagingChatMessageDisplayInfo?, cachedOnly: Bool, limit: Int) async throws -> [MessagingChatMessageDisplayInfo] {
[]
await Task.sleep(seconds: 0.2)
return MockEntitiesFabric.Messaging.createMessagesForUITesting(isFixedID: false)
}

func loadRemoteContentFor(_ message: MessagingChatMessageDisplayInfo, in chat: MessagingChatDisplayInfo) async throws -> MessagingChatMessageDisplayInfo {
throw NSError()
// throw NSError()
message
}

func sendMessage(_ messageType: MessagingChatMessageDisplayType, isEncrypted: Bool, in chat: MessagingChatDisplayInfo) async throws -> MessagingChatMessageDisplayInfo {
Expand Down Expand Up @@ -119,11 +121,11 @@ final class MessagingService: MessagingServiceProtocol {
}

func getChannelsForProfile(_ profile: MessagingChatUserProfileDisplayInfo) async throws -> [MessagingNewsChannel] {
[]
MockEntitiesFabric.Messaging.createChannelsForUITesting()
}

func getFeedFor(channel: MessagingNewsChannel, cachedOnly: Bool, page: Int, limit: Int) async throws -> [MessagingNewsChannelFeed] {
[]
MockEntitiesFabric.Messaging.createChannelsFeedForUITesting()
}

func markFeedItem(_ feedItem: MessagingNewsChannelFeed, isRead: Bool, in channel: MessagingNewsChannel) throws {
Expand Down Expand Up @@ -157,14 +159,7 @@ final class MessagingService: MessagingServiceProtocol {
}

func getChatsListForProfile(_ profile: MessagingChatUserProfileDisplayInfo) async throws -> [MessagingChatDisplayInfo] {
[.init(id: "1",
thisUserDetails: .init(wallet: "1"),
avatarURL: nil,
serviceIdentifier: .xmtp,
type: .private(.init(otherUser: .init(wallet: "2"))),
unreadMessagesCount: 0,
isApproved: true,
lastMessageTime: Date())]
MockEntitiesFabric.Messaging.createChatsForUITesting()
}

func searchForUsersWith(searchKey: String) async throws -> [MessagingChatUserDisplayInfo] { [] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class WalletConnectServiceV2: WalletConnectServiceV2Protocol {
""
}

func proceedSendTxViaWC_2(sessions: [SessionV2Proxy], chainId: Int, txParams: AnyCodable, in wallet: UDWallet) async throws -> ResponseV2 {
func proceedSendTxViaWC_2(sessions: [SessionV2Proxy], chainId: Int, txParams: WCAnyCodable, in wallet: UDWallet) async throws -> ResponseV2 {
throw NSError()
}

Expand Down Expand Up @@ -122,3 +122,7 @@ public struct WalletConnectURI: Equatable {
var symKey: String
var absoluteString: String
}

struct WCAnyCodable: Codable {

}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading