Commit Graph

142 Commits

Author SHA1 Message Date
Théo Poizat e7405051d1 fixup! Use html parser instead of regex to clean composer input
Improve efficiency and add more tests in convertHtmlContentToTextContent
2025-12-19 19:03:39 +07:00
Théo Poizat a9cfe86a59 Use html parser instead of regex to clean composer input
Before sending input to the LLM, we clean the composer input to
remove html tags. We relied on regex that we not complete enough and
could be bypassed easily. So let's use the html parser available in
Dart instead.

I also added some tests.
2025-12-19 19:03:39 +07:00
Théo Poizat 4d0880b8be fixup! Extract method to convert html content to text content
Move the method in utils
2025-12-19 19:03:39 +07:00
Théo Poizat 8b17fcdc54 fixup! Add text selection mixin 2025-12-19 19:03:39 +07:00
Théo Poizat 4013973110 Add text selection mixin
This mixin leverages HTML callbacks that can be set by WebView editor
to send text selection event to the composer so the composer will
receive text selection event necessary to display buttons related to
text selection.
2025-12-19 19:03:39 +07:00
dab246 aba3cbbe4c TF-4152 Fix tooltip stay out of screen in Email View 2025-11-20 11:03:54 +07:00
dab246 d6e959c4d9 TF-4145 Create paywall url from workplaceFqdn 2025-11-17 14:24:30 +07:00
dab246 14ab5352a3 TF-4145 Use generateWebLink for paywall url 2025-11-17 14:24:30 +07:00
dab246 8b5fb2f030 TF-4145 Add generateWebLink and safeGenerateWebLink with FQDN validation 2025-11-17 14:24:30 +07:00
dab246 fa0ba5d689 TF-4142 Close link overlay when click email content view 2025-11-17 11:43:18 +07:00
dab246 f69179438f TF-4139 Fix attachment reminder mistakenly shown when replying to an email 2025-11-12 13:36:55 +07:00
dab246 846c9c6583 TF-3911 Remove window event listeners to prevent memory leaks in Email View 2025-11-03 05:18:48 +07:00
dab246 b2989521d9 TF-3911 Support mail keyboard shortcut actions in email detailed view on web 2025-11-03 05:18:48 +07:00
dab246 7d80557582 TF-4093 Make interface more compact 2025-10-16 14:15:15 +07:00
dab246 0f3002879d TF-4084 Fix cannot read or scroll emails when opening them in Twake Mail on Android chrome mobile browser 2025-10-15 14:59:39 +07:00
dab246 0a73f0e5cb TF-4058 Remove class/object are not used 2025-10-15 13:54:34 +07:00
dab246 9600b169cc TF-4054 Add comprehensive tests for wrapPlainTextLinks 2025-10-13 13:21:56 +07:00
dab246 aa710113b0 TF-4054 Fix link detection 2025-10-13 13:21:56 +07:00
dab246 b57e2a9fb7 TF-4051 Fix text and images are truncated on mobile in received emails 2025-10-06 17:09:38 +07:00
dab246 64f4096340 Fix cannot scroll editor when disable code view in composer 2025-10-03 15:03:41 +07:00
dab246 1f83484998 TF-4009 Display a attachment reminder warning modal 2025-09-16 11:04:26 +07:00
dab246 b94d1900ae TF-3552 Add expect email view scrollable with long content
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
dab246 ca1bd0dfe0 TF-3944 Remove line-height = 1px when drag & drop
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-22 11:02:01 +07:00
dab246 346b115169 TF-3944 Use new style with line height 24px in content writing of composer view
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-22 11:02:01 +07:00
dab246 aeeb47a6f8 TF-3864 Support pasting multiple address with multiple format mixed
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-19 15:07:55 +07:00
dab246 f1ae5b58b2 TF-3864 Support pasting address with display name
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-19 15:07:55 +07:00
dab246 801b08bc90 TF-3933 Avoid load font from google
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-11 10:05:35 +07:00
DatDang ef6008afb7 Update Thread Detail Reply toggle design 2025-07-31 16:37:10 +07:00
dab246 8100e886d7 Support vertical scrolling email view when cursor is over calendar event description
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 16:37:10 +07:00
dab246 23ecdfbf11 TF-2948 Apply new identity view for web
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 14:45:59 +07:00
DatDang f86392c854 TF-3720 Thread Detail Collapse quote reply
Revert "fixup! TF-3720 Thread Detail Collapse quote reply"

This reverts commit 2104530977664f892702fba5e5bc6fb3e5768b19.

TF-3720 Thread Detail adjust receiver size

TF-3720 Thread Detail refactor email receiver alignment
2025-07-21 05:34:53 +07:00
Dat Dang 78cb93ef1c Update Android API 35 (#3874) 2025-07-18 10:15:25 +07:00
dab246 672188baa2 Apply new style Language section in Setting on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-15 13:37:15 +07:00
dab246 5744e4782d TF-3846 Fix Notion email always not wrap in mobile view
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-02 18:23:10 +07:00
dab246 8579eb2518 TF-3792 Hide buttons of blue bar in case of event not belong to this account and change
Signed-off-by: dab246 <tdvu@linagora.com>
2025-06-26 15:50:16 +07:00
dab246 798f570491 TF-3734 Fix cannot open email as new tab on safari v16.6
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-22 17:20:28 +07:00
dab246 0ca3ca170d TF-3719 Add handle export log to device if need
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-16 09:59:49 -07:00
dab246 3f5cfef2fa TF-3719 Add LogTracking to trace error notFound email in Email/get
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-16 09:59:49 -07:00
dab246 70ed5bcaab TF-3703 Fix have to scroll left-right to read some parts of email
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-04 23:10:28 -07:00
dab246 ac569387d4 TF-3691 Support HTML escaping in search snippets
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-04 23:04:10 -07:00
dab246 3337a608be TF-3627 Remove right padding editor scroll bar in composer
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-16 19:59:47 -07:00
dab246 b8b4557fd7 TF-3627 Fix two scrollbar with different look
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-16 19:59:47 -07:00
dab246 c6bb268a75 TF-3622 Synchronize all style attributes in html and write E2E for it.
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-14 01:55:26 -07:00
dab246 3248f44cf2 TF-3622 Add integration test for case deformed inlined image
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-14 01:55:26 -07:00
dab246 551ef15276 TF-3622 Fix deformed inlined image
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-14 01:55:26 -07:00
dab246 51c95bbc69 Upgrade hive database version to 14
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-08 23:43:53 -07:00
dab246 7523ddf07b Prevents the content from automatically wrapping to the next line
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-08 23:43:53 -07:00
dab246 75b675002c Add div tag with markdown style when isTextTable is true for email content text/plain
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-08 23:43:53 -07:00
dab246 868ec1bc8e Check if text is a table (Markdown or ASCII art format) when email content is text/plain
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-08 23:43:53 -07:00
dab246 0b9bb3530c Fix appear save draft dialog when reload editing composer
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-01 04:40:13 -07:00