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

feat: Xpert and five9 Chat implementation #84

Draft
wants to merge 28 commits into
base: 2U/develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
22d8cf7
feat: initial adding xpert/five9 package, added LiveChatConfig
rnr Sep 19, 2024
4024c42
chore: added closeChat WKScriptEvent
rnr Sep 20, 2024
43bc9b2
chore: added ignoreSafe keyboard area
rnr Sep 23, 2024
b433daf
chore: split config on xpert and five9 configurations
rnr Sep 23, 2024
c093a05
chore: added manual generation of five9 form
rnr Sep 24, 2024
6fa8441
chore: got rid five9 extra parameters
rnr Sep 24, 2024
82cbc0b
chore: got rid five9 config
rnr Sep 25, 2024
f930f92
chore: added chat icon
rnr Sep 26, 2024
9aadef2
chore: replace segment script and use_case config
rnr Sep 26, 2024
0875d84
chore: added dark icon
rnr Sep 27, 2024
117f2d0
chore: clear background for chat on iPad, fixed useCase string
rnr Sep 27, 2024
2298b1d
chore: added loading indocator
rnr Sep 27, 2024
7b05d7d
chore: little refactor
rnr Sep 27, 2024
ee63768
chore: added internet checking, delete test button
rnr Sep 27, 2024
5158a94
chore: fix for Xcode 16
rnr Sep 29, 2024
2a6777e
chore: added five9Enabled parameter to config
rnr Oct 2, 2024
f9df9ab
chore: generated mocks
rnr Oct 2, 2024
f82c1ba
chore: added package tests
rnr Oct 2, 2024
31ea7d2
chore: deleted local package
rnr Oct 2, 2024
1e5a45e
chore: added package via SPM
rnr Oct 2, 2024
5445315
chore: deleted commented code
rnr Oct 2, 2024
0783fc1
Merge branch '2U/develop' into feat/xpert-five9-implementation
rnr Oct 7, 2024
886cd01
chore: changed xpert package branch
rnr Oct 7, 2024
f51959f
chore: added Camera privacy string
rnr Oct 7, 2024
e6d34de
chore: added baseURL to xpert config
rnr Oct 10, 2024
cc6e4a2
chore: moved launch button to separate view, added on main and on reg…
rnr Oct 10, 2024
b72c752
chore: added microphone privacy string
rnr Oct 11, 2024
59e9e4b
chore: use latest xpert package branch
rnr Oct 11, 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
Prev Previous commit
Next Next commit
chore: added internet checking, delete test button
rnr committed Sep 27, 2024
commit ee6376826b15a0bc87e26c075f5b2e9c69636ef2
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ public class PrimaryCourseDashboardViewModel: ObservableObject {
}

public var showChatIcon: Bool {
config.liveChat.enabled
config.liveChat.enabled && connectivity.isInternetAvaliable
}

@MainActor
17 changes: 4 additions & 13 deletions OpenEdX/View/MainScreenView.swift
Original file line number Diff line number Diff line change
@@ -150,23 +150,14 @@ struct MainScreenView: View {
.toolbar {
ToolbarItem(placement: .navigationBarTrailing, content: {
if viewModel.selection == .profile {
// Button(action: {
// let router = Container.shared.resolve(ProfileRouter.self)!
// router.showSettings()
// }, label: {
// CoreAssets.settings.swiftUIImage.renderingMode(.template)
// .foregroundColor(Theme.Colors.accentColor)
// })
// .accessibilityIdentifier("edit_profile_button")
// } else {
Button(action: {
let router = Container.shared.resolve(DashboardRouter.self)!
router.showLiveChat(animated: true)
let router = Container.shared.resolve(ProfileRouter.self)!
router.showSettings()
}, label: {
Image(systemName: "exclamationmark.bubble")
CoreAssets.settings.swiftUIImage.renderingMode(.template)
.foregroundColor(Theme.Colors.accentColor)
})
.accessibilityIdentifier("live_chat_button")
.accessibilityIdentifier("edit_profile_button")
}
})
}