* 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
* TF-5022 Add ShownAccountCapabilities.canOpenSettings, shownAccountCapabilitiesProvider and ActiveAccountReader.shownAccountCapabilities
* TF-5022 Refuse goToSettings and goToVacationSetting and add SettingsRouteGuard on /settings while a delegated account is shown
* TF-5022 Hide Manage account, the mobile mailbox bar avatar and the vacation setting link while a delegated account is shown, extract DashboardNavigationBar and CozyProfileSettingIcon
* TF-5022 Point the dashboard reader scan comments at T-02.5 for the composer, identities and labels
* TF-5022 Name ShownAccountCapabilities.canOpenSettings in ADR-0114 Settings and keep mobile Sign out reachable in T-09
* TF-5022 Extract DashboardVacationBanner from the vacation banners of the dashboard, email, thread and thread detail views
* TF-5022 Keep mobile Sign out hidden with Settings while a delegated account is shown in ADR-0114
* TF-5022 Add ShownAccountCapabilities.canCreateFilter and route the rule filter entries through it instead of ActiveAccountReader.isDelegatedAccountShown
* TF-5022 Report the folder and email list loads of a switch attempt to ShownAccountLoadTracker and reload the shown account through watchShownReload
* TF-5022 Implement AccountSwitchView in DashboardAccountSwitchView with ShownMailboxSelection, the shown account input blocker and the closing of open popups
* TF-5022 Close every route above the dashboard in DashboardAccountSwitchView.blockInput, count the mobile composer route in DashboardShownMailboxSelection.hasOpenComposer, and test the email list report order with the real MailboxController and ThreadController
* TF-5022 Gate T-02.6 on T-06 delegationEnabledProvider in ADR-0114
* TF-5022 Test that a switch closes menu submenus and drops mail list shortcuts
* TF-5022 Keep key presses from the dashboard while a switch blocks its input
* TF-5022 Count a load as failed in ShownAccountStateSubscription when onDone throws
* TF-5022 Rename ShownMailboxSelection to AccountSwitchDashboard with resetForNewAccount and GetXAccountSwitchDashboard
---------
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
A first Email/query page shorter than the limit means the mailbox is
exhausted unless collapseThreads is on. Forcing canLoadMore whenever the
list did not fill the viewport sent a useless 'before' Email/query on
every open or refresh of a small folder.
Closes#4943
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Extract shouldAutoLoadMoreByEstimatedHeight as a testable static method
and use strict < instead of <= so an estimated height equal to the
viewport no longer triggers a redundant load — actual rendered height
is likely larger than the 40 px estimate and already overflows.
Use maxScrollExtent <= 0 instead of maxScrollExtent <= viewportDimension
so auto-load only triggers when the list has not yet filled the viewport.
Also set canLoadMore based on page-size comparison to avoid showing the
Load More button when the server has returned the final partial page.