Skip to content

feat: Insert inline attachment - #3014

Open
Elouan1411 wants to merge 6 commits into
mainfrom
insert-image-in-draft
Open

feat: Insert inline attachment#3014
Elouan1411 wants to merge 6 commits into
mainfrom
insert-image-in-draft

Conversation

@Elouan1411

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings August 4, 2026 14:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds inline image attachments to the message composer, including photo selection, CID-based editor insertion, caching, and upload metadata.

Changes:

  • Adds a localized attachment-type popup for photos and files.
  • Inserts selected photos into the HTML editor as responsive CID images.
  • Uploads inline disposition and content-ID metadata with attachments.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
OldKotlin/realm-models/src/main/kotlin/com/infomaniak/mail/data/models/Attachment.kt Adds inline attachment marking.
app/src/main/res/values/strings.xml Adds English menu labels.
app/src/main/res/values-sv/strings.xml Adds Swedish translations.
app/src/main/res/values-pt/strings.xml Adds Portuguese translations.
app/src/main/res/values-pl/strings.xml Adds Polish translations.
app/src/main/res/values-nl/strings.xml Adds Dutch translations.
app/src/main/res/values-nb/strings.xml Adds Norwegian translations.
app/src/main/res/values-it/strings.xml Adds Italian translations.
app/src/main/res/values-fr/strings.xml Adds French translations.
app/src/main/res/values-fi/strings.xml Adds Finnish translations.
app/src/main/res/values-es/strings.xml Adds Spanish translations.
app/src/main/res/values-el/strings.xml Adds Greek translations.
app/src/main/res/values-de/strings.xml Adds German translations.
app/src/main/res/values-da/strings.xml Adds Danish translations.
app/src/main/res/raw/insert_inline_image.js Inserts CID images at the editor selection.
app/src/main/res/raw/editor_style.css Makes editor images responsive.
app/src/main/res/menu/attachment_menu.xml Defines photo/file attachment choices.
app/src/main/java/com/infomaniak/mail/utils/HtmlFormatter.kt Loads the inline-image script.
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageViewModel.kt Prepares imported attachments as inline images.
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageFragment.kt Handles photo import, caching, and editor insertion.
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageEditorManager.kt Displays and handles the attachment-type popup.
app/src/main/java/com/infomaniak/mail/data/api/ApiRepository.kt Sends disposition and content-ID upload headers.

@Elouan1411
Elouan1411 force-pushed the insert-image-in-draft branch from 99e1e05 to 62905d8 Compare August 5, 2026 06:55
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

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