feat: Reply with euria - #2986
Open
solrubado wants to merge 24 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an Euria-assisted reply flow from message threads, reusing the existing AI prompt and proposition UI.
Changes:
- Adds an AI Reply action and prompt bottom sheet.
- Reuses AI proposition generation with message context arguments.
- Extracts the AI prompt into a reusable custom view.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
new_message_navigation.xml |
Adds the optional message UID argument. |
main_navigation.xml |
Registers the reply prompt and proposition destinations. |
view_ai_prompt.xml |
Hosts the reusable prompt view. |
view_ai_prompt_content.xml |
Updates the prompt layout header. |
bottom_sheet_ask_euria_actions.xml |
Adds the Reply action. |
ic_reply_euria.xml |
Adds the Euria reply icon. |
AiPromptView.kt |
Encapsulates prompt UI behavior. |
AiPropositionFragment.kt |
Supports generation from a thread message. |
AiPromptFragment.kt |
Adopts the reusable prompt view. |
ThreadFragment.kt |
Coordinates the new reply navigation flow. |
EuriaPromptBottomSheet.kt |
Implements the thread reply prompt. |
AskEuriaBottomSheetDialog.kt |
Handles Reply action selection. |
solrubado
force-pushed
the
reply-with-euria
branch
from
July 17, 2026 13:04
64cfff3 to
555b467
Compare
Elouan1411
marked this pull request as ready for review
July 24, 2026 10:56
Elouan1411
force-pushed
the
reply-with-euria
branch
from
July 24, 2026 10:59
6003d48 to
becf9f6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (2)
app/src/main/java/com/infomaniak/mail/ui/newMessage/AiPropositionFragment.kt:325
- This conversion treats every body as HTML. For
text/plainmessages,htmlToText()removes newline characters before parsing, which concatenates lines; for HTML replies it also retains quoted history instead of using the existing quote-aware conversion inNewMessageViewModel. Reuse a sharedBody.asPlainText()implementation so Euria receives the same clean context as the composer flow.
aiViewModel.previousMessageBodyPlainText = message?.body?.value?.htmlToText()
app/src/main/java/com/infomaniak/mail/ui/newMessage/AiPropositionFragment.kt:152
- Reading
currentMailbox.valueonly once can leavemailboxuninitialized when this destination is restored before the asynchronous LiveData query emits. Generation then accessesmailbox.uuidand crashes. Await a non-null mailbox (or initialize and generate in one coroutine) instead of returning permanently on the initial null value.
mainViewModel.currentMailbox.value ?: return@launch
Elouan1411
force-pushed
the
reply-with-euria
branch
3 times, most recently
from
July 27, 2026 14:56
a6f568a to
dd955e6
Compare
…fore starting generation
…my request" button
Elouan1411
force-pushed
the
reply-with-euria
branch
from
July 29, 2026 08:41
b6a2bd8 to
e78ddbb
Compare
|
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.



No description provided.