Commit Graph
6218 Commits
Author SHA1 Message Date
Dat Dang d764ec2391 Keep the basic-auth login out of the Hive box (secure storage on mobile, session storage on web) (#5163) 2026-11-26 10:47:48 +07:00
Dat Vu 11514a0c20 TF-5097 Autolink large plain-text bodies in linear time (#5153) 2026-11-26 07:16:57 +07:00
Benoit TELLIER c95e0b153b ci: a fork pull request builds the very commit a member approved (#5181)
The fork gate looked up the pull request head on GitHub after the checkout,
and accepted it when it was the checked out commit or that commit's second
parent. The contributor chooses the parents of the commits they push: a
commit whose second parent is an approved one, pushed back to that approved
commit right after the checkout, passed the gate while its own tree was
built. Reading the head after the checkout also left a race open.

Once a member's approval of the head commit is confirmed, the gate now
checks that commit out, cleans the workspace, and merges the target branch
as fetched from this repository when there is one, before any code of the
pull request runs. Whatever the branch did meanwhile, the approved tree is
the one built. If the approved commit is not in the workspace, the build
fails and asks for a re-run, as before.

The same block is in the Jenkinsfiles of twake-contacts-frontend,
twake-calendar-frontend, twake-calendar-side-service, webadmin-proxy,
tmail-flutter, esn-sabre, tmail-backend and twake-mail-admin.

* ci: fail a fork build whose pinned revision is not the approved commit

Checking out the approved commit in place of the pinned revision built the
right tree, but Jenkins still reported the build status on the revision it
pinned: a passing build could mark a commit nobody reviewed as green.

The gate no longer changes the checkout. It accepts it when HEAD is the
approved commit, or when HEAD is the merge Jenkins made of the approved
commit with the target branch: its first parent is the approved commit, and
so is the pull request revision Jenkins fetched as origin/<BRANCH_NAME>.
Otherwise the build fails and asks for a re-run.

* ci: compare the tree of a fork merge build with the approved merge

The merge case of the fork gate trusted HEAD^1 once origin/<BRANCH_NAME> was
the approved commit. That ref is fetched apart from the revision Jenkins
checks out, so it does not prove which one was pinned, and a single-parent
child of the approved commit passed.

A checkout other than the approved commit is now accepted only as the merge
Jenkins makes: two parents, the approved commit then origin/<CHANGE_TARGET>,
and a tree equal to that merge redone in a scratch worktree outside the
workspace. A commit the contributor shaped like that merge but with a tree
of their own is refused.

* ci: apply the fork gate fix to JenkinsfileMobile

The mobile pipeline carries the same fork gate block as the Jenkinsfile and
still accepted the approved commit as HEAD^2 of the checkout. It now uses the
same pullRequestHead and requireApprovedCheckout.
2026-11-25 11:38:18 +01:00
Dat Vu ec94c11228 TF-5096 Drop email hrefs the browser reads as relative or without a host (#5152) 2026-11-25 14:03:44 +07:00
Dat Vu d9de1d23bc TF-5095 Limit attachment file names to 255 UTF-8 bytes (#5149) 2026-11-25 13:49:46 +07:00
Dat Vu 1861b186a5 TF-5022 T-13 Notify delegated mailboxes and open a notification tap in its account (#5166) 2026-11-25 11:53:27 +07:00
Dat Dang 18f5a69d96 TF-4498 Provision e2e test data through a standalone JMAP client instead of GetX (#5165) 2026-11-25 06:12:48 +07:00
dependabot[bot]andgithub-actions[bot] 0156809267 Bump wcmatch from 8.5.2 to 11.2 in /.github/security (#5171)
* Bump wcmatch from 8.5.2 to 11.2 in /.github/security

Bumps [wcmatch](https://github.com/facelessuser/wcmatch) from 8.5.2 to 11.2.
- [Release notes](https://github.com/facelessuser/wcmatch/releases)
- [Commits](https://github.com/facelessuser/wcmatch/compare/8.5.2...11.2)

---
updated-dependencies:
- dependency-name: wcmatch
  dependency-version: '11.2'
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): Recompile security lockfiles with uv

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-25 06:05:17 +07:00
Benoit TELLIER 0f006234f1 ci: a fork pull request runs no code before a linagora member vouches for it (#5175)
Start the pipeline with the Authorize fork stage of twake-contacts-frontend:
a fork pull request builds only when its owner is a linagora member, or a
member approved its head commit or reviewed it with "Build this please".
Bind the github and dockerHub credentials only around the steps that use
them, Docker Hub in a throwaway Docker config. The helpers are the same
block in the Jenkinsfiles of twake-contacts-frontend, twake-calendar-frontend,
twake-calendar-side-service, webadmin-proxy and tmail-flutter.
2026-11-24 10:11:31 +01:00
Quentin Valmori a8472b30ca Add the decisions log to the agent rules (#5170) 2026-11-20 21:05:02 +01:00
bf4054ef7d Bump tmail-backend docker image to 1.0.23.1 (#5164)
* Bump tmail-backend docker image to 1.0.23.1

* Synchronize the pool backend image tag with the main Compose configuration

---------

Co-authored-by: Software Factory <software-factory@linagora.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-11-20 15:17:59 +01:00
Dat Vu f39fbf41e2 TF-5023 T-15 Add the Delegate/get|set data layer (#5169) 2026-11-20 19:12:02 +07:00
Dat Vu 3d907d91f1 TF-5156 Expose the account switch card as a named dialog to screen readers (#5157)
* TF-5156 Expose AccountSwitchLoadingDialog as a named dialog and hide its avatar initial from screen readers

* TF-5156 Keep AccountSwitchLoadingDialog semantics merged with its Focus node and assert the dialog is focusable
2026-11-20 10:30:15 +07:00
Dat Dang c7dbf06925 TF-5038 Sign a Twake Workplace account out in the sign-in browser on Android (#5161) 2026-11-19 19:47:21 +07:00
Dat Dang 420d0db43d TF-5129 Empty mailbox on Stalwart 1.0: Email/get requests "header:List-Unsubscribe:asText", which RFC 8621 does not allow (#5146) 2026-11-19 14:51:05 +07:00
Dat Vu 5df49491e2 TF-5022 T-11 Add Settings › Delegation with "Delegated to me" and "Remove your access" (#5147)
* TF-5022 T-11 Send the session request to the JMAP URL in DynamicUrlInterceptors so a session reload no longer hits the API URL

* TF-5022 T-11 Add Settings › Delegation with DelegatedToMeNotifier and DelegatedToMeSection to list mailboxes delegated to me and remove my access

* TF-5022 T-11 Drop stale or signed-out session re-reads in DelegatedToMeNotifier and open a delegation link once the local settings load

* TF-5022 T-11 Share the pending re-read setup of the sign-out and user-change tests in DelegatedToMeNotifier tests

* TF-5022 T-11 Keep Delegation selected in ManageAccountMenuController when the quota loads after a deferred delegation link opens

* TF-5022 T-11 Clear the stored Delegation selection in ManageAccountMenuController when Delegation becomes hidden

* TF-5022 T-11 Clear the pending delegation link in ManageAccountDashBoardController.selectSettings when the user picks a settings page
2026-11-19 07:16:29 +07:00
Dat Vu 98309575a4 TF-5022 T-10 Add the delegation package with DelegatedAccount/get and /set and the DelegatedAccountRepository data layer (#5143) 2026-11-18 21:27:48 +07:00
Dat Dang 62f5e8fd47 Fix web Patrol flakes and remove dead GitHub nightly Android workflow (#5127) 2026-11-18 18:54:05 +07:00
Dat Danganddab246 5d4937028f TF-4924 Recover deleted messages dialog says "within the last 15 days days" (#5132)
* TF-4924 Pass number of days to recover deleted messages description

* TF-4924 Remove env.file from the change

* TF-4924 Add day boundary tests for restoration horizon

* TF-4924 Rename horizon to restorationDuration

* TF-4924 Add web scenario for recover deleted messages description

Open Trash and tap the toolbar recover button on the desktop layout, then assert the description has no duplicated day unit.

* TF-4924 Add zero day clamp test for getRestorationHorizonInDays

---------

Co-authored-by: dab246 <tdvu@linagora.com>
2026-11-17 15:39:58 +07:00
dependabot[bot]andgithub-actions[bot] 389729f182 Bump opentelemetry-api from 1.37.0 to 1.45.2 in /.github/security (#5155)
* Bump opentelemetry-api from 1.37.0 to 1.45.2 in /.github/security

Bumps [opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python) from 1.37.0 to 1.45.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-python/compare/v1.37.0...v1.45.2)

---
updated-dependencies:
- dependency-name: opentelemetry-api
  dependency-version: 1.45.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): Recompile security lockfiles with uv

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-17 14:59:37 +07:00
Dat Dang eab476da45 ci: cancel superseded workflow runs on the same PR (#5151)
* ci: cancel superseded workflow runs on the same PR

* ci: skip test reports for cancelled upstream runs

Addresses: 4583936850, 6931471819
https://github.com/linagora/tmail-flutter/pull/5151#discussion_r4583936850
https://github.com/linagora/tmail-flutter/pull/5151#issuecomment-6931471819

* ci: rely on called workflow concurrency for memory-check label runs

Addresses: 4583936853, 6931471819
https://github.com/linagora/tmail-flutter/pull/5151#discussion_r4583936853
https://github.com/linagora/tmail-flutter/pull/5151#issuecomment-6931471819
2026-11-17 13:53:45 +07:00
Dat H. Pham 2b4bee2101 Add TF-5022 delegation entries to v0.42.1 changelog v0.42.1 2026-11-17 11:19:39 +07:00
Dat H. Pham 12a454bb1d Bump version to v0.42.1 2026-11-17 10:55:39 +07:00
Dat H. Pham 354576f6b6 Translate vi, ru, fr, mn 2026-11-17 10:55:30 +07:00
dab246 7e1ad6e094 TF-5022 T-09 Explain in ADR-0114 why a share or mailto intent composes on mine 2026-11-17 10:42:08 +07:00
dab246 284633bb37 TF-5022 T-09 Log a warning in openComposerFromSharedFiles when an intent is dropped for lack of a context 2026-11-17 10:42:08 +07:00
dab246 046adca675 TF-5022 T-09 Close Settings from a detail with closeSettingsFromDetail so the web stand-alone setup no longer opens Language & Region 2026-11-17 10:42:08 +07:00
dab246 f9ef0dabbe TF-5022 T-09 Resolve the composer opener before switching to mine in openComposerFromSharedFiles so ignored intents never switch 2026-11-17 10:42:08 +07:00
dab246 d675bfa950 TF-5022 T-09 Run the stand-alone account switcher e2e on Android and iOS through a shared AccountSwitcherRobot base 2026-11-17 10:42:08 +07:00
dab246 35c9d10fb1 TF-5022 T-09 Switch to mine before a share or mailto intent with showMineBeforeIntent and drop it on a refused switch 2026-11-17 10:42:08 +07:00
dab246 0267b08c1d TF-5022 T-09 Show CompactAccountSwitcher in DefaultMobileAppBarThreadWidget on Android and iOS 2026-11-17 10:42:08 +07:00
c72f5421c2 TF-5099 Prevent StringConvert from corrupting plain entries matching (#5141)
* TF-5099 Prevent StringConvert from corrupting plain entries matching Base64 and URL patterns

- Only decode Base64 strings when decoded output contains '@' and raw input does not
- Wrap Uri.decodeComponent in try-catch to preserve addresses with literal '%'
- Add regression tests in string_convert_test.dart

* refactor: extract _decodeInputIfNeeded to reduce cognitive complexity

* TF-5099 Cover percent and base64 address extraction with more tests

* Update core/lib/utils/string_convert.dart

Co-authored-by: Dat Vu <datx1995@gmail.com>

* refactor: flatten URL decode condition and add regression test for percent-escaped addresses

* TF-5099 Cover invalid percent and partial-encode address pins

* TF-5099 Pin behavior for mixed and quoted partially encoded addresses

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
Co-authored-by: Dat Vu <datx1995@gmail.com>
Co-authored-by: dab246 <80730648+dab246@users.noreply.github.com>
2026-11-17 05:23:19 +07:00
Dat Vu 86b5b7da42 ci: sync docker-compose.pool.yaml backend image to memory-1.0.23 (#5150) 2026-11-16 15:02:19 +07:00
dependabot[bot]andgithub-actions[bot] de0df3996e Bump opentelemetry-api from 1.37.0 to 1.45.2 in /.github/security (#5144)
* Bump opentelemetry-api from 1.37.0 to 1.45.2 in /.github/security

Bumps [opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python) from 1.37.0 to 1.45.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-python/compare/v1.37.0...v1.45.2)

---
updated-dependencies:
- dependency-name: opentelemetry-api
  dependency-version: 1.45.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Build(deps): Recompile security lockfiles with uv

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-16 11:10:06 +07:00
Benoit TELLIERandSoftware Factory 447608d20a Bump tmail-backend docker image to 1.0.23 (#5140)
Co-authored-by: Software Factory <software-factory@linagora.com>
2026-11-16 06:02:44 +07:00
Dat Vu 2b0ebd80e1 TF-5022 T-08: Web Workplace account switcher chip (#5134)
* TF-5022 T-08 Add WorkplaceAccountSwitcher chip in the Workplace header with web e2e

* TF-5022 T-08 Extract CozyHeaderRow and drop the Spacer before WorkplaceAccountSwitcher in MailboxDashBoardView

* TF-5022 T-08 Reuse switchShownAccountOrToastFailure in WorkplaceAccountSwitcher

* TF-5022 T-08 Share AccountSwitchRobotMixin across web account switcher robots and drop unfocus in WebWorkplaceAccountSwitcherAssertionRobot

* TF-5022 T-08 Dispose keyboardShortcutFocusNode after the composer view unmounts in ComposerController.onKeyboardShortcutDispose

* TF-5022 T-08 Switch to the URL account inside Cozy in startOnUrlAccount and drop duplicated PDF keys in intl_messages.arb

* TF-5022 T-08 Point linagora_design_flutter at fix/tf-5022-account-menu-item-key for unique LinagoraAccountMenu row keys

* TF-5022 T-08 Point linagora_design_flutter back to master now that LinagoraAccountMenu row keys are merged
2026-11-13 17:22:42 +07:00
Dat Vu 9f387305f5 TF-5022 T-07.1 Keep the shown delegated account in the web URL (#5137)
* TF-5022 T-07.1 Write the shown delegated account into web URLs and parse it back in RouteUtils and NavigationRouter

* TF-5022 T-07.1 Preview the .eml of the URL account in EmailPreviewerController via SessionDelegationExtension.delegatedAccountIdOrMine

* TF-5022 T-07.1 Reset LabelController.isLabelsLoaded when checkLabelSettingState gets another account

* TF-5022 T-07.1 Start on the URL account via startOnUrlAccount in MailboxController

* TF-5022 T-07.1 Open Inbox instead of the unknown page for missing delegated link targets in MailboxController and ThreadController

* TF-5022 T-07.1 Add the stand-alone web e2e naming the shown delegated account in the URL

* TF-5022 T-07.1 Return no account from RouteUtils.parseAccountId for a malformed account instead of throwing

* TF-5022 T-07.1 Open nested .eml links on the account of the tab in EmailPreviewerController.emlPreviewUriOnAccount

* TF-5022 T-07.1 Ignore a late GetAllLabelFailure of another account in LabelController.handleFailureViewState

* TF-5022 T-07.1 Open Inbox via _switchBackToMailboxDefault in MailboxController.openMissingTargetFromLocationBar

* TF-5022 T-07.1 Leave search to Inbox only on NotFoundEmailException from ThreadAPI.getEmailById in ThreadController

* TF-5022 T-07.1 Keep the shown delegated account in RouteUtils.generateNavigationRoute dashboard paths
2026-11-13 17:22:42 +07:00
dab246 99d1a48956 TF-5022 T-07 Skip Get.updateLocale in LocalizationService.changeLocale when the locale is already applied 2026-11-13 17:22:42 +07:00
dab246 99d04a76ea TF-5022 T-07 Scroll the PreferencesView list in PreferencesRobot._bringPreferenceOnScreen instead of the first Scrollable on screen 2026-11-13 17:22:42 +07:00
dab246 da6f6bed73 TF-5022 T-07 Revert the EML preview account= of EmailPreviewerController, owned by T-07.1 2026-11-13 17:22:42 +07:00
dab246 ca19a917fb TF-5022 T-07 Carry account= in the EML preview URL of a delegated account and read it in EmailPreviewerController 2026-11-13 17:22:42 +07:00
dab246 2e4e8253bb TF-5022 T-07 Update ADR-0114 for autocomplete, read receipts and Send on the shown account and the WebSocket re-enable of T-12 2026-11-13 17:22:42 +07:00
dab246 cc66dc674f TF-5022 T-07 Stop CapabilityIdentifierExtension.isSupported logging a warning on a missing capability 2026-11-13 17:22:42 +07:00
dab246 986a70451d TF-5022 T-07 Stop ComposerController.handleClickSendButton while the shown account has no submission capability 2026-11-13 17:22:42 +07:00
dab246 6822444594 TF-5022 T-07 Send read receipts in SingleEmailController only while the shown account has MDN 2026-11-13 17:22:42 +07:00
dab246 072817994e TF-5022 T-07 Set up contact autocomplete of the shown account in GetXAccountSwitchDashboard and create the Needs Action folder only while it has AI 2026-11-13 17:22:42 +07:00
dab246 d541d8ccce TF-5022 T-07 Update ADR-0114 for capabilities of the shown account, the Drive oversize fallback and the WebSocket label push 2026-11-13 17:22:42 +07:00
dab246 00fcc0af8a TF-5022 T-07 Require a Scribe endpoint on the shown account for AI Scribe and cover ComposerController autocomplete on the shown account 2026-11-13 17:22:42 +07:00
dab246 76166f945e TF-5022 T-07 Keep the open WebSocket in WebSocketController.initialize and take its label push types from my own label setting only 2026-11-13 17:22:42 +07:00
dab246 935cf566f8 TF-5022 T-07 Gate shown-mailbox capabilities on the active account and stop delegated accounts inheriting session-level properties 2026-11-13 17:22:42 +07:00