Skip to content

Add native support chat#461

Open
DRadmir wants to merge 13 commits into
mainfrom
native-support-chat-v2
Open

Add native support chat#461
DRadmir wants to merge 13 commits into
mainfrom
native-support-chat-v2

Conversation

@DRadmir

@DRadmir DRadmir commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Replaces the support WebView with a native chat. Users can send text and images, see delivery status, and retry failed messages.

Replace the Chatwoot support WebView with a native chat across the stack:
- core: Chatwoot widget client, support message/image endpoints, support primitives and stream event
- iOS: chat scene with text and image messages, optimistic send with retry, local image cache, GRDB store
- Android: support API client methods and stream handler
@DRadmir DRadmir self-assigned this Jun 4, 2026
gemcoder21 and others added 6 commits June 4, 2026 18:45
…port-chat-v2

# Conflicts:
#	core/crates/support/src/chatwoot.rs
#	core/crates/support/src/client.rs
# Conflicts:
#	android/gemcore/src/main/kotlin/com/wallet/core/primitives/generated/Support.kt
#	core/crates/primitives/src/support.rs
#	core/crates/support/src/chatwoot.rs
#	core/crates/support/src/model.rs
#	core/crates/support/tests/model_tests.rs
#	ios/Packages/GemAPI/TestKit/GemAPISupportService+TestKit.swift
#	ios/Packages/Primitives/Sources/Generated/Support.swift
Replace the support WebView with a native SwiftUI chat: message bubbles, day separators, per-agent grouping, and image attachments. Add a scroll-to-bottom button with an unread-agent badge, backed by SupportChatService, a GRDB message store, and localization.
Tap a chat image to preview it full-screen via the native QuickLook modifier. Materialize images to local files in SupportChatService, reusing the URLCache the bubble already filled, and unify SupportImageStore for both uploads and preview caching. Make image bubbles buttons (retry when failed, open when sent) and trim surrounding whitespace from message text.
@gemcoder21 gemcoder21 marked this pull request as ready for review June 9, 2026 17:07

enum Status {
case sending
case sent(time: String)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
case sent(time: String)
case sent(date: Date)

var id: String
var content: String
var sender: SupportMessageSender
var status: SupportMessageDeliveryStatus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
var status: SupportMessageDeliveryStatus
var status: SupportMessageStatus

DRadmir added 6 commits June 9, 2026 23:55
- Open chat images full-screen with QuickLook
- Resolve image URLs via local upload fast-path with server fallback
- Add loading indicator and fix image tap hit area
- Fix empty-state layout and keyboard dismissal after first send
- Cover day grouping and unread watermark with unit tests
Update support copy and add a message placeholder across Android and iOS localization files (changed empty-state text to an “Ask us anything” style and added support_message_placeholder in many locales). Refactor iOS Support feature: remove unused package dependencies from Package.swift, simplify target products, add SupportMessageContent, update SupportChatService and related models/views, and refactor SupportChatScene to a new ScrollView-based layout (several old view files and tests removed or renamed). Localization resources (.strings and .ftl) updated for multiple languages.
- Disable interactive sheet dismiss so drag-down no longer closes the chat
- Extend background behind the keyboard so no white gap shows under the input bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants