Commit graph

372 commits

Author SHA1 Message Date
Johannes Millan
62d449a82f fix(electron): reduce idle detection log verbosity
Change frequent idle check logs from info to debug level to prevent
polluting system logs (e.g., /var/log/syslog) every 5 seconds.

Closes #5794
2025-12-31 13:42:18 +01:00
Johannes Millan
c4023b4f45 fix(security): address CodeQL security alerts
- Fix incomplete HTML sanitization in errors.ts (alerts #50-52)
  Apply regex repeatedly to handle nested inputs like <scri<script>pt>
- Add lgtm comment for intentional cert bypass in jira.ts (alert #40)
- Fix incomplete string escaping in load-env.js (alert #39)
  Escape backslashes before quotes
- Fix shell command injection in check-file.js (alerts #37-38)
  Use execFileSync with args array instead of string interpolation
2025-12-23 13:42:57 +01:00
Johannes Millan
18a0e78f12 fix(sync): show context-aware permission error for Flatpak/Snap
Add isFlatpak() detection to Electron API and show environment-specific
error messages when file permission errors occur during sync:
- Flatpak users see Flatseal and ~/.var/app/ guidance
- Snap users see 'snap connect' and ~/snap/... guidance
- Other users see generic permission error

Addresses #4078
2025-12-22 15:11:50 +01:00
Johannes Millan
52fd0dfc75 fix(electron): use includes() instead of in operator for hostname check
The `in` operator checks for array indices, not values, so the condition
was always false. This prevented User-Agent header removal for GitHub,
Office365, and Outlook requests.
2025-12-15 10:02:13 +01:00
Johannes Millan
a3d65e021c fix(electron): improve window controls overlay for Windows/Linux (#5713)
- Use CSS env(titlebar-area-width) for dynamic DPI-aware spacing
- Increase fallback width from 96px to 140px to prevent button overlap
- Add theme-aware semi-transparent background to window controls
2025-12-12 19:00:12 +01:00
johannesjo
eefbc7135a fix(electron): sync title bar button colors with app theme
Update window control buttons (minimize, maximize, close) to match
the app's dark/light theme setting instead of always using white.

Fixes #5676
2025-12-07 09:52:20 +01:00
Johannes Millan
152939a866 fix(electron): remove forced X11 mode on Linux
Remove the code that forced X11 mode on Linux via --ozone-platform=x11.
This was causing the snap package to crash on Wayland systems due to
GPU driver mismatches between the bundled Mesa drivers and host system.

The IdleTimeHandler already has proper fallbacks for Wayland environments
(gnomeDBus, xprintidle, loginctl), so forcing X11 is not necessary.

Closes #5663
2025-12-06 11:54:41 +01:00
Johannes Millan
68ff0ffb88 build(electron): upgrade to Electron 39 with X11 default on Linux
Upgrade Electron from 37.7.0 to 39.2.5. Since Electron 38+ defaults to
Wayland via --ozone-platform=auto, force X11 on Linux to ensure reliable
idle detection (#1443) and global shortcuts. Users can opt-in to Wayland
with --ozone-platform=wayland or --force-wayland flags.
2025-12-05 15:28:40 +01:00
Johannes Millan
e19d3fb593 fix(electron): minimize to tray not working immediately after enabling
Closes #5622

The 'Minimize to tray' setting was not updating the main process shared state when changed in the settings, requiring an app restart to take effect. This was because the 'UPDATE_SETTINGS' IPC event (sent on change) was not updating the 'isMinimizeToTray' flag. This commit ensures that 'UPDATE_SETTINGS' updates the relevant shared state.
2025-12-04 11:50:27 +01:00
Johannes Millan
c5625de6f1 feat(customWindowTitleBar): add sexy custom window title bar <3 2025-12-02 13:30:36 +01:00
Johannes Millan
5bd59e2760 Merge remote-tracking branch 'origin/master'
* origin/master:
  feat(i18n): add export task list string to localization files
  feat(ipc): improve error handling and streamline IPC initialization
  feat(startup): refactor startup logic and move initialization to StartupService
  feat(ipc): implement IPC handlers for app control, data, exec, global shortcuts, system, and Jira
  feat: add placeholder text support to daily summary and inline markdown components
  feat: don't install api test plugin
  chore(deps): bump the npm_and_yarn group across 4 directories with 1 update

# Conflicts:
#	electron/ipc-handler.ts
#	src/app/app.component.ts
2025-11-28 20:28:46 +01:00
Johannes Millan
f9c4629c49 Fix: Resolve build errors for Electron
- Add missing import for  in .
- Update regex in  to be compatible with older TS targets (before ES2018) by replacing  flag with .
2025-11-28 20:04:26 +01:00
Johannes Millan
e212f9a9ba fix: refactor tray handling to use shared state for task and countdown visibility 2025-11-28 18:53:00 +01:00
Johannes Millan
f13ad58e9d fix: minimize to tray not restoring #5581
# Conflicts:
#	electron/ipc-handler.ts
2025-11-28 18:51:15 +01:00
Johannes Millan
f704eebc7e feat(ipc): improve error handling and streamline IPC initialization 2025-11-27 15:06:26 +01:00
Johannes Millan
653ae62dbf feat(ipc): implement IPC handlers for app control, data, exec, global shortcuts, system, and Jira 2025-11-27 13:44:18 +01:00
Johannes Millan
68f3b787d0 fix: handle special characters in IPC errors and skip translation 2025-11-21 12:22:11 +01:00
Johannes Millan
67337684e6 feat: change window title for dev 2025-11-21 11:47:25 +01:00
Johannes Millan
c0453bc708 build: change window title for dev 2025-11-21 11:47:25 +01:00
Devin A. Conley
10e76b32c4 force select folder 2025-11-16 14:51:22 -08:00
sambhram1
a2bbda6d1a 'Fix: Remove trailing slashes from --user-data-dir CLI option path' 2025-10-24 17:52:19 +05:30
Johannes Millan
6350a7249f fix: app not closing on MacOS
Closes #5327
2025-10-23 15:12:12 +02:00
Johannes Millan
c58e269678 feat(share): remove electron share again 2025-10-22 16:05:29 +02:00
Johannes Millan
459b189e26 feat(share): add native share 2025-10-22 15:54:06 +02:00
Johannes Millan
9574dd4f19 feat(share): outline multi platform share functionality 2025-10-22 15:35:24 +02:00
Johannes Millan
911e82bea5 fix: spell checker phoning home #5314 2025-10-19 11:01:20 +02:00
Johannes Millan
3fc7c134f9 feat(electron): further improve on idle handling 2 2025-10-15 15:27:27 +02:00
Johannes Millan
e96e205de0 feat(electron): further improve on idle handling 2025-10-15 15:08:49 +02:00
Johannes Millan
6d38cb1a2e feat(electron): stop idle handling if there is no working method 2025-10-15 14:54:38 +02:00
Johannes Millan
45da016258 refactor(electron): improve idle handling 2025-10-15 14:48:06 +02:00
Johannes Millan
051bb5dd90 refactor(electron): check for best idle method only once 2025-10-15 14:38:58 +02:00
Johannes Millan
08def803e7 feat(electron): improve idle handling for snap 2025-10-15 12:32:00 +02:00
Johannes Millan
a2f723bedd feat: enable hardware acceleration again 2025-10-14 19:10:54 +02:00
Johannes Millan
31c6b40fc8 build: fix mac build 2 2025-10-13 17:24:06 +02:00
Johannes Millan
7fd8f57d3e build: next attempt 2 #5252 2025-10-13 17:12:24 +02:00
Johannes Millan
55f40afe5e build: next attempt #5252 2025-10-13 17:07:51 +02:00
Johannes Millan
2209767e77 build: another attempt to fix snap #5252 2025-10-13 16:10:49 +02:00
Johannes Millan
8fb0e5e031 build: attempt to fix snap again #5252 2025-10-13 14:52:42 +02:00
Johannes Millan
53eaaddea9 fix: attempt to fix snap once more 2 #5252 2025-10-12 11:34:30 +02:00
Johannes Millan
ac8ebf93cf fix: attempt to fix snap once more #5252 2025-10-12 11:21:40 +02:00
Johannes Millan
e465712029 fix: electron snap issue #5252 2025-10-11 18:46:22 +02:00
Johannes Millan
4c563b117e feat: remove faulty wayland fallbacks #5235 2025-10-08 16:17:59 +02:00
Johannes Millan
d5ec716c8c fix: electron error 2025-09-21 01:02:11 +02:00
Johannes Millan
c23788ab79 fix: improve emoji detection and remove unnecessary code
- Fix regex pattern inconsistency between isEmoji and extractFirstEmoji functions
- Remove redundant conditional logic in icon-input component
- Add proper validation to paste handler for consistent emoji handling
- Remove unused side-nav-item component files
- Revert unnecessary type assertions in main-window.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-20 17:56:57 +02:00
Harshita
3696d62fba fix: properly handle single emoji as project icon 2025-09-20 20:14:06 +05:30
Johannes Millan
7417cd9b65 fix(mentions): resolve TypeScript compilation errors
- Remove duplicate MentionItem interface definition from mention-config.ts
- Fix TemplateRef type to match Angular's expected template context structure
- Update type casting for TagCopy and ProjectCopy arrays in add-task-bar component
- Remove unused CustomEvent interface from mention directive
- Fix syntax error in electron main-window.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

# Conflicts:
#	electron/main-window.ts
2025-09-16 18:05:32 +02:00
burned65
56af1fa748 fix: fixed URL sanitization 2025-09-16 17:47:33 +02:00
Burned65
e731d1af44 fix: added missing ) 2025-09-16 15:56:16 +02:00
Burned65
e74fe601e3
added User-Agent Header to outlook.live.com requests 2025-09-15 17:00:16 +02:00
Johannes Millan
18ab880d81 feat: improve on idle 2025-09-04 19:00:31 +02:00