Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c15f2ef
feat(downloads): rework tab bar downloads indicator
jeanfbrito Aug 7, 2026
403f5e1
fix(downloads): stop indicator shifting left when popup opens
jeanfbrito Aug 7, 2026
9613298
feat(downloads): Chrome-style progress ring around the download icon
jeanfbrito Aug 7, 2026
67d4d7d
fix(downloads): make the progress ring track subtle
jeanfbrito Aug 7, 2026
dd9456f
feat(downloads): dev-mode download simulation and orphaned-download c…
jeanfbrito Aug 7, 2026
1b3eeef
fix(downloads): render percentage left of the icon button
jeanfbrito Aug 7, 2026
1798d50
feat(downloads): experimental Chrome-style glyph variant for comparison
jeanfbrito Aug 7, 2026
4cfc5a5
fix(downloads): chrome glyph theme color and clipped progress ring
jeanfbrito Aug 7, 2026
50b4ebf
feat(downloads): chrome glyph uses full-size arrow, drops tray while …
jeanfbrito Aug 7, 2026
d58decd
fix(downloads): chrome glyph matches Fuselage icon color, no bounce
jeanfbrito Aug 7, 2026
fc8f3ba
fix(downloads): chrome variant shares the ProgressRing overlay
jeanfbrito Aug 7, 2026
97228d3
feat(downloads): third variant tracing the Fuselage icon's own circle
jeanfbrito Aug 7, 2026
0509fe9
feat(downloads): fourth variant fully redrawing the glyph
jeanfbrito Aug 7, 2026
5c715da
feat(menu): expose simulate items in the tab bar options popup
jeanfbrito Aug 7, 2026
a19a369
feat(menu): check-for-updates and simulate items in the server switch…
jeanfbrito Aug 7, 2026
2f36565
fix(downloads): compact indicator sizing in the thin titlebar
jeanfbrito Aug 7, 2026
16bfa73
feat(downloads): redraw variant becomes the rendered indicator, title…
jeanfbrito Aug 7, 2026
da64a45
fix(downloads): unseen dot uses the presence-bullet green
jeanfbrito Aug 7, 2026
4d56aac
refactor(downloads): single glyph design, percentage inside the button
jeanfbrito Aug 7, 2026
1ea92e9
fix(downloads): unseen dot shares the progress arc's blue
jeanfbrito Aug 7, 2026
62b4311
fix(downloads): keep the glyph bright after completion until acknowle…
jeanfbrito Aug 7, 2026
8367003
feat(downloads): percentage text defaults to off
jeanfbrito Aug 7, 2026
4ec28ea
fix(downloads): full blue circle until acknowledged, dot tangent on t…
jeanfbrito Aug 7, 2026
afbf0e6
fix(downloads): unify titlebar gap with the tab bar, reserve 3ch for …
jeanfbrito Aug 7, 2026
50324cc
feat(downloads): percentage on the right, animated, square icon-only …
jeanfbrito Aug 7, 2026
44d02f6
fix(downloads): trailing padding after the percentage in compact mode
jeanfbrito Aug 7, 2026
c3ded1d
Merge remote-tracking branch 'origin/master' into feat/downloads-indi…
jeanfbrito Aug 10, 2026
0faa13b
fix(downloads): correct reduced-motion media query and pin platform i…
jeanfbrito Aug 10, 2026
8ea8655
test: make motion assertions environment-independent
jeanfbrito Aug 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/app/PersistableValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ type PersistableValues_4_16_0 = PersistableValues_4_15_0 & {
navigationLayout: 'tabs' | 'sidebar' | 'hidden';
};

type PersistableValues_4_16_1 = PersistableValues_4_16_0 & {
isDownloadsPercentageEnabled: boolean;
};

export type PersistableValues = Pick<
PersistableValues_4_16_0,
keyof PersistableValues_4_16_0
PersistableValues_4_16_1,
keyof PersistableValues_4_16_1
>;

export const migrations = {
Expand Down Expand Up @@ -242,4 +246,8 @@ export const migrations = {
navigationLayout:
(before as Partial<PersistableValues_4_16_0>).navigationLayout ?? 'tabs',
}),
'>=4.16.1': (before: PersistableValues_4_16_0): PersistableValues_4_16_1 => ({
...before,
isDownloadsPercentageEnabled: true,
}),
};
2 changes: 2 additions & 0 deletions src/app/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const selectPersistableValuesA = createStructuredSelector({
isReportEnabled: ({ isReportEnabled }: RootState) => isReportEnabled,
isFlashFrameEnabled: ({ isFlashFrameEnabled }: RootState) =>
isFlashFrameEnabled,
isDownloadsPercentageEnabled: ({ isDownloadsPercentageEnabled }: RootState) =>
isDownloadsPercentageEnabled,
isInternalVideoChatWindowEnabled: ({
isInternalVideoChatWindowEnabled,
}: RootState) => isInternalVideoChatWindowEnabled,
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/de-DE.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@
"onLinux": "Einige Linux-Distributionen unterstützen diese Funktion nicht.",
"descriptionDarwin": "Lässt das App-Symbol im Dock hüpfen, um die Aufmerksamkeit des Benutzers zu erregen."
},
"downloadsPercentage": {
"title": "Download-Prozentsatz",
"description": "Zeigt den Download-Fortschrittsprozenzsatz in der Tab-Leiste an."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the German spelling error.

Replace Fortschrittsprozenzsatz with Fortschrittsprozentsatz.

Proposed correction
-        "description": "Zeigt den Download-Fortschrittsprozenzsatz in der Tab-Leiste an."
+        "description": "Zeigt den Download-Fortschrittsprozentsatz in der Tab-Leiste an."
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"description": "Zeigt den Download-Fortschrittsprozenzsatz in der Tab-Leiste an."
"description": "Zeigt den Download-Fortschrittsprozentsatz in der Tab-Leiste an."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/i18n/de-DE.i18n.json` at line 220, Correct the spelling in the
description value by replacing “Fortschrittsprozenzsatz” with
“Fortschrittsprozentsatz”, leaving the surrounding translation unchanged.

},
"hardwareAcceleration": {
"title": "Hardware-Beschleunigung",
"description": "Aktiviert die Verwendung der Hardwarebeschleunigung, sofern verfügbar. Die Anwendung wird bei Änderung neu geladen."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@
"onLinux": "Some Linux distros don't have support for this feature.",
"descriptionDarwin": "Dock icon bounces when a new message is received."
},
"downloadsPercentage": {
"title": "Download percentage",
"description": "Show download progress percentage in the tab bar."
},
"hardwareAcceleration": {
"title": "Hardware acceleration",
"description": "Improves visual rendering and performance. Disable if you experience visual glitches or instability.",
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/es.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@
"onLinux": "Algunas distribuciones de Linux no admiten esta función.",
"descriptionDarwin": "Hace rebotar el icono de la aplicación en el dock para atraer la atención del usuario."
},
"downloadsPercentage": {
"title": "Porcentaje de descarga",
"description": "Mostrar el porcentaje de progreso de descarga en la barra de pestañas."
},
"hardwareAcceleration": {
"title": "Aceleración de hardware",
"description": "Habilita el uso de la aceleración de hardware cuando esté disponible. La aplicación se reiniciará al realizar cambios."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/fi.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@
"onLinux": "Jotkin Linux-jakelut eivät tue tätä ominaisuutta.",
"descriptionDarwin": "Herättää käyttäjän huomion ponnauttamalla sovelluskuvaketta Dockissa."
},
"downloadsPercentage": {
"title": "Latauksen prosenttiosuus",
"description": "Näytä latauksen etenemisprosentti välilehtien palkissa."
},
"hardwareAcceleration": {
"title": "Laitteistokiihdytys",
"description": "Ottaa käyttöön laitteistokiihdytyksen, jos se on käytettävissä. Sovellus latautuu uudelleen muutoksen yhteydessä."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/fr.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@
"onLinux": "Certaines distributions Linux ne prennent pas en charge cette fonctionnalité.",
"descriptionDarwin": "Fait rebondir l'icône de l'application dans le dock pour attirer l'attention de l'utilisateur."
},
"downloadsPercentage": {
"title": "Pourcentage de téléchargement",
"description": "Afficher le pourcentage de progression du téléchargement dans la barre d'onglets."
},
"hardwareAcceleration": {
"title": "Accélération matérielle",
"description": "Active l'utilisation de l'accélération matérielle lorsqu'elle est disponible. L'application se rechargera en cas de changement."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/hu.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@
"onLinux": "Egyes Linux disztribúciók nem támogatják ezt a funkciót.",
"descriptionDarwin": "Pattogtatja az alkalmazás ikonját a dokkban, hogy felhívja a felhasználó figyelmét."
},
"downloadsPercentage": {
"title": "Letöltés százaléka",
"description": "A letöltés előrehaladási százalékának megjelenítése a lapok sávján."
},
"hardwareAcceleration": {
"title": "Hardveres gyorsítás",
"description": "Engedélyezi a hardveres gyorsítás használatát, ha elérhető. Az alkalmazás újratöltődik a megváltoztatásakor."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/no.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@
"onLinux": "Noen Linux-distroer har ikke støtte for denne funksjonen.",
"descriptionDarwin": "Spretter appikonet i dokken for å tiltrekke brukerens oppmerksomhet."
},
"downloadsPercentage": {
"title": "Nedlastingsprosentasje",
"description": "Vis nedlastingsprogressprosenten i fanen."
},
"hardwareAcceleration": {
"title": "Maskinvareakselerasjon",
"description": "Muliggjør maskinvareakselerasjon når tilgjengelig. Applikasjonen vil lastes inn på nytt ved endring."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@
"onLinux": "Algumas distribuições Linux não possuem suporte a esta funcionalidade.",
"descriptionDarwin": "Faz o ícone da aplicação saltar na dock quando recebe notificação."
},
"downloadsPercentage": {
"title": "Percentual de download",
"description": "Mostrar o percentual de progresso do download na barra de abas."
},
"hardwareAcceleration": {
"title": "Aceleração de hardware",
"description": "Ativa aceleração de hardware quando disponível. O aplicativo será reiniciado ao ser alterado."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/ru.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@
"onLinux": "Некоторые дистрибутивы Linux не поддерживают эту функцию.",
"descriptionDarwin": "Мигание значка приложения в трее для привлечения внимания пользователя."
},
"downloadsPercentage": {
"title": "Процент загрузки",
"description": "Показывать процент прогресса загрузки в строке вкладок."
},
"hardwareAcceleration": {
"title": "Аппаратное ускорение",
"description": "Включает использование аппаратного ускорения, если оно доступно. Приложение будет перезапущено при изменении этой настройки."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/sv.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
"onLinux": "Vissa Linux-distributioner har inte stöd för den här funktionen.",
"descriptionDarwin": "Appikonen studsar i dockan för att dra till sig användarens uppmärksamhet."
},
"downloadsPercentage": {
"title": "Nedladdningsprocent",
"description": "Visa nedladdningsförloppsandelen i fliken."
},
"hardwareAcceleration": {
"title": "Hårdvaruacceleration",
"description": "Aktiverar användning av hårdvaruacceleration när sådan finns tillgänglig. Programmet laddas om vid ändring."
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/zh-CN.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@
"description": "使用闪屏来吸引用户的注意。",
"onLinux": "在一些Linux系统上这个功能不可用。"
},
"downloadsPercentage": {
"title": "下载百分比",
"description": "在选项卡栏中显示下载进度百分比。"
},
"internalVideoChatWindow": {
"title": "在程序窗口中打开视频通话",
"description": "如果启用,视频通话将在应用程序窗口中打开,而不是在默认浏览器中打开。但是,对于<strong>Google Meet</strong>和<strong>Jitsi</strong>,Electron应用程序不支持屏幕录制,所以无论此设置如何,它们始终会在浏览器中打开。",
Expand Down
2 changes: 2 additions & 0 deletions src/store/rootReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { isAddNewServersEnabled } from '../ui/reducers/isAddNewServersEnabled';
import { isDebugLoggingEnabled } from '../ui/reducers/isDebugLoggingEnabled';
import { isDetailedEventsLoggingEnabled } from '../ui/reducers/isDetailedEventsLoggingEnabled';
import { isDeveloperModeEnabled } from '../ui/reducers/isDeveloperModeEnabled';
import { isDownloadsPercentageEnabled } from '../ui/reducers/isDownloadsPercentageEnabled';
import { isFlashFrameEnabled } from '../ui/reducers/isFlashFrameEnabled';
import { isHardwareAccelerationEnabled } from '../ui/reducers/isHardwareAccelerationEnabled';
import { isInternalVideoChatWindowEnabled } from '../ui/reducers/isInternalVideoChatWindowEnabled';
Expand Down Expand Up @@ -117,6 +118,7 @@ export const rootReducer = combineReducers({
updateError,
isReportEnabled,
isFlashFrameEnabled,
isDownloadsPercentageEnabled,
isHardwareAccelerationEnabled,
isInternalVideoChatWindowEnabled,
isAddNewServersEnabled,
Expand Down
3 changes: 3 additions & 0 deletions src/ui/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ export const SETTINGS_SET_E2E_PDF_PREVIEW_SIZE_LIMIT_CHANGED =
'settings/set-e2e-pdf-preview-size-limit-changed';
export const SETTINGS_SET_NAVIGATION_LAYOUT_CHANGED =
'settings/set-navigation-layout-changed';
export const SETTINGS_SET_DOWNLOADS_PERCENTAGE_ENABLED_CHANGED =
'settings/set-downloads-percentage-enabled-changed';
export const SET_HAS_TRAY_MINIMIZE_NOTIFICATION_SHOWN =
'notifications/set-has-tray-minimize-notification-shown';
export const VIDEO_CALL_WINDOW_OPEN_URL = 'video-call-window/open-url';
Expand Down Expand Up @@ -270,6 +272,7 @@ export type UiActionTypeToPayloadMap = {
[SETTINGS_SET_IS_MENU_BAR_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_IS_VIDEO_CALL_WINDOW_PERSISTENCE_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_IS_TRANSPARENT_WINDOW_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_DOWNLOADS_PERCENTAGE_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_IS_DEVELOPER_MODE_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_IS_VIDEO_CALL_DEVTOOLS_AUTO_OPEN_ENABLED_CHANGED]: boolean;
[SETTINGS_SET_IS_VIDEO_CALL_SCREEN_CAPTURE_FALLBACK_ENABLED_CHANGED]: boolean;
Expand Down
2 changes: 2 additions & 0 deletions src/ui/components/SettingsView/GeneralTab.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Box, FieldGroup } from '@rocket.chat/fuselage';

import { AvailableBrowsers } from './features/AvailableBrowsers';
import { DownloadsPercentage } from './features/DownloadsPercentage';
import { E2ePdfPreviewSizeLimit } from './features/E2ePdfPreviewSizeLimit';
import { FlashFrame } from './features/FlashFrame';
import { HardwareAcceleration } from './features/HardwareAcceleration';
Expand Down Expand Up @@ -32,6 +33,7 @@ export const GeneralTab = () => {
{isWin32 && <MinimizeOnClose />}
{!isDarwin && !isWin32 && <MenuBar />}
<FlashFrame />
<DownloadsPercentage />
</FieldGroup>

<FieldGroup mbs='x24'>
Expand Down
46 changes: 46 additions & 0 deletions src/ui/components/SettingsView/features/DownloadsPercentage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import type { ChangeEvent } from 'react';
import { useCallback, useId } from 'react';
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux';
import type { Dispatch } from 'redux';

import type { RootAction } from '../../../../store/actions';
import type { RootState } from '../../../../store/rootReducer';
import { SETTINGS_SET_DOWNLOADS_PERCENTAGE_ENABLED_CHANGED } from '../../../actions';
import { ToggleField } from './ToggleField';

type DownloadsPercentageProps = {
className?: string;
};

export const DownloadsPercentage = (props: DownloadsPercentageProps) => {
const isDownloadsPercentageEnabled = useSelector(
({ isDownloadsPercentageEnabled }: RootState) =>
isDownloadsPercentageEnabled
);
const dispatch = useDispatch<Dispatch<RootAction>>();
const { t } = useTranslation();
const handleChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
const isChecked = event.currentTarget.checked;
dispatch({
type: SETTINGS_SET_DOWNLOADS_PERCENTAGE_ENABLED_CHANGED,
payload: isChecked,
});
},
[dispatch]
);

const isDownloadsPercentageEnabledId = useId();

return (
<ToggleField
id={isDownloadsPercentageEnabledId}
label={t('settings.options.downloadsPercentage.title')}
description={t('settings.options.downloadsPercentage.description')}
checked={isDownloadsPercentageEnabled}
onChange={handleChange}
className={props.className}
/>
);
};
4 changes: 2 additions & 2 deletions src/ui/components/Shell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export const Shell = () => {
<TabBar
trailingSlot={
<>
<DownloadsIndicator />
<UpdateLabel />
<DownloadsIndicator />
<MeatballMenuButton />
</>
}
Expand All @@ -102,8 +102,8 @@ export const Shell = () => {
}
trailingSlot={
<>
<DownloadsIndicator />
<UpdateLabel />
<DownloadsIndicator />
</>
}
/>
Expand Down
Loading
Loading