super-productivity/electron
Johannes Millan 9f2d2b9a6e fix(focus-mode): prevent tray indicator jumping during focus sessions
The tray icon was jumping between showing task time and focus session time
when focus mode was active with a task being tracked. This occurred because
the tray display logic didn't know which focus mode was active.

Changes:
- Send focus mode type (Countdown/Pomodoro/Flowtime) from frontend to Electron
- Update IPC handler to receive and pass focus mode type to tray message creation
- Implement three-mode priority logic in createIndicatorMessage():
  1. Countdown/Pomodoro modes: Show focus session countdown timer
  2. Flowtime mode: Show task estimate or title (no timer)
  3. No focus mode: Show normal task time (existing behavior)
- Update TypeScript type definitions for updateCurrentTask()
- Update unit tests to mock the new mode() signal

This ensures the tray displays the correct timer without jumping based on
the active focus mode, matching the behavior of the overlay indicator.

Fixes jumping tray indicator during focus mode + tracking
2026-01-20 17:07:23 +01:00
..
assets/icons fix: wrong icon for kde title bar 2025-07-22 20:42:28 +02:00
ipc-handlers fix(electron): minimize to tray not working immediately after enabling 2025-12-04 11:50:27 +01:00
overlay-indicator feat: add open sans as default font 2025-09-04 18:30:09 +02:00
shared-with-frontend fix: linting and compilation errors after file system IPC changes 2025-12-12 20:46:05 +01:00
backup.ts fix: linting 2025-05-01 13:04:23 +02:00
common.const.ts fix: windows crashing issue on minimize #3423 2024-09-09 15:17:24 +02:00
CONFIG.ts fix(electron): don't send idle time all the time 2019-01-27 20:52:11 +01:00
debug.ts refactor: improve typing 2025-08-13 19:47:44 +02:00
electronAPI.d.ts fix(focus-mode): prevent tray indicator jumping during focus sessions 2026-01-20 17:07:23 +01:00
error-handler-with-frontend-inform.ts fix(error-handling): prevent [object Object] from appearing in error messages 2026-01-02 15:40:14 +01:00
full-screen-blocker.ts feat: improve shutdown cleanup 2025-06-29 17:31:28 +02:00
idle-time-handler.ts fix(electron): reduce idle detection log verbosity 2025-12-31 13:42:18 +01:00
indicator.ts fix(focus-mode): prevent tray indicator jumping during focus sessions 2026-01-20 17:07:23 +01:00
ipc-handler.ts fix: refactor tray handling to use shared state for task and countdown visibility 2025-11-28 18:53:00 +01:00
jira.ts fix(security): address CodeQL security alerts 2025-12-23 13:42:57 +01:00
local-file-sync.ts force select folder 2025-11-16 14:51:22 -08:00
lockscreen.ts refactor(elctron): add typing wherever possible and simplify 2022-01-30 20:12:41 +01:00
main-window.ts fix(electron): use includes() instead of in operator for hostname check 2025-12-15 10:02:13 +01:00
main.ts fix: exit behavior to be faster 2025-08-01 18:46:28 +02:00
plugin-node-executor.ts refactor: improve typing 2 2025-08-12 15:27:48 +02:00
preload.ts fix(focus-mode): prevent tray indicator jumping during focus sessions 2026-01-20 17:07:23 +01:00
protocol-handler.ts fix(electron): restore hidden window on taskbar click 2026-01-20 17:07:23 +01:00
shared-state.ts fix: refactor tray handling to use shared state for task and countdown visibility 2025-11-28 18:53:00 +01:00
simple-store.ts feat(electronSecurity): add security layer for exec commands 2023-12-17 15:05:15 +01:00
start-app.ts build: update links to match our new organization 2026-01-05 14:45:06 +01:00
tsconfig.electron.json fix(e2e): improve supersync test stability and build compatibility 2025-12-19 09:59:44 +01:00
various-shared.ts fix: app not closing on MacOS 2025-10-23 15:12:12 +02:00