Add native support chat#461
Open
DRadmir wants to merge 13 commits into
Open
Conversation
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
…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
reviewed
Jun 9, 2026
|
|
||
| enum Status { | ||
| case sending | ||
| case sent(time: String) |
Contributor
There was a problem hiding this comment.
Suggested change
| case sent(time: String) | |
| case sent(date: Date) |
gemcoder21
reviewed
Jun 9, 2026
| var id: String | ||
| var content: String | ||
| var sender: SupportMessageSender | ||
| var status: SupportMessageDeliveryStatus |
Contributor
There was a problem hiding this comment.
Suggested change
| var status: SupportMessageDeliveryStatus | |
| var status: SupportMessageStatus |
gemcoder21
approved these changes
Jun 9, 2026
- 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.
…et into codex/native-support-chat-v2
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the support WebView with a native chat. Users can send text and images, see delivery status, and retry failed messages.