Commit graph

17986 commits

Author SHA1 Message Date
Johannes Millan
7d5bb1a709 17.0.0-RC.9 2026-01-17 16:08:01 +01:00
Johannes Millan
4cd4216f46 test: tmp disable 2026-01-17 16:07:12 +01:00
Johannes Millan
0bd9c7de0a test: fix broken 2026-01-17 16:06:48 +01:00
Johannes Millan
2e1327ecb5 test: fix broken 2026-01-17 16:04:59 +01:00
Johannes Millan
950c99ef4b test(e2e): fix flaky Pomodoro focus mode test
Use keyboard shortcut ('d') to mark task as done instead of clicking
the done button. This avoids element detachment issues caused by
continuous re-renders from the progress bar while task is being tracked.

Fixes timeout in "should keep overlay visible when last tracked task
was completed" test.
2026-01-17 15:53:27 +01:00
Johannes Millan
0a7e0c317e 17.0.0-RC.8 2026-01-17 15:47:15 +01:00
Johannes Millan
7f493fcfe6 test: improve e2e 2026-01-17 15:46:49 +01:00
Johannes Millan
978d71f40d fix(sync): pass clientId to downloadOps for accurate snapshot detection
Activates clientId-based snapshot replacement detection by passing the
client's ID to downloadOps(). This fixes both false negatives (missing
other clients' snapshot uploads when syncVersion stays at 1) and false
positives (own snapshot uploads triggering conflict dialogs).

The dual-strategy detection logic was already implemented but never
activated because excludeClient was always undefined. Now:
- When excludeClient is provided: uses clientId comparison (accurate)
- When excludeClient is undefined: falls back to syncVersion comparison

Changes:
- Load and pass clientId in operation-log-download.service.ts
- Add tests for syncVersion=1 snapshot replacement detection
- Add tests for false positive prevention after own uploads

All 44 unit tests passing.
2026-01-17 15:46:14 +01:00
Johannes Millan
4d78d7b9fc fix(ci): add E2E tests to PR workflow 2026-01-17 15:23:45 +01:00
Johannes Millan
6a9d39838c build: don't run e2e tests every 2026-01-17 15:02:11 +01:00
Johannes Millan
dbaaab8faa fix(snap): remove duplicate plugs from configuration
The default plug already includes home, desktop, and desktop-legacy.
Explicitly listing them again caused snap store rejection due to duplicates.
2026-01-17 14:50:56 +01:00
Johannes Millan
53324bac08 17.0.0-RC.7 2026-01-17 13:33:56 +01:00
Johannes Millan
ce595ba212 17.0.0-RC.6 2026-01-17 13:32:33 +01:00
Johannes Millan
7137533407 test(e2e): fix additional tests for tabbed config page
Update plugin-lifecycle, plugin-upload, and reminders tests to
navigate to correct tabs:
- Plugin tests navigate to Plugins tab (extension icon)
- Reminder tests navigate to Time & Tracking tab (timer icon)

Fixes 5 additional E2E test failures after config page refactoring.
2026-01-17 13:26:57 +01:00
Johannes Millan
1f3098a48f test(e2e): update page objects for tabbed config page UI
Update ImportPage, SettingsPage, and plugin test helpers to navigate
to correct tabs after config page refactoring. Import/Export section
is now in Sync & Backup tab, plugins in Plugins tab.

Fixes 6 failing E2E tests:
- archive-import-persistence (3 tests)
- archive-subtasks (3 tests)
2026-01-17 13:20:35 +01:00
Johannes Millan
1c0581bca8 fix(snap): add filesystem and desktop integration plugs
Fixes #6031

- Add home and removable-media plugs for local file sync access
- Add desktop and desktop-legacy plugs for taskbar pinning in Cinnamon
- Update install hook to prompt for home interface connection
- Add documentation warnings about snap limitations and data persistence

All plugs include inline comments explaining their purpose and linking to issue.
2026-01-17 12:44:30 +01:00
Johannes Millan
a11257e70b fix(ci): grant write permissions for Claude code review to post comments
The Claude Code Review workflow needs pull-requests: write permission to post review comments on PRs. Previously it only had read access, causing "Actor does not have write permissions" errors.
2026-01-17 12:36:07 +01:00
Johannes Millan
efad5565e7 test(tags): update tests for subtask filtering in tag lists
Update unit tests to verify that:
- Subtasks are excluded when parent is in the same tag/TODAY list
- Subtasks appear as top-level items when parent is NOT in the list
2026-01-17 12:36:07 +01:00
Johannes Millan
0c5bc46e67 fix(tags): show subtasks in tag lists only when parent is not in same list
Subtasks can be added to tag lists (including TODAY), but they only appear
as top-level items when their parent is NOT in the same list. When both
parent and subtask are in the same tag/TODAY list, the subtask is shown
nested under the parent instead of separately.

This prevents duplicate display while allowing subtasks to be tagged
independently when needed.
2026-01-17 12:36:07 +01:00
Johannes Millan
7a7cb031b9 fix(ci): add memory allocation to Mac test step to prevent OOM 2026-01-17 12:36:07 +01:00
Johannes Millan
bd7944131a
Merge pull request #6034 from steindvart/pull-request-template
Add pull request template
2026-01-17 12:31:25 +01:00
Johannes Millan
8580742272
Merge pull request #6033 from steindvart/settings-tabs
Organize settings page into horizontal tabs for improved usability
2026-01-17 12:27:14 +01:00
Ivan Kalashnikov
8e811a4943 docs: add pull request template. 2026-01-17 15:47:22 +07:00
Ivan Kalashnikov
f2b5cbb958 refactor(config-page): update comments for clarity and remove unused service injection 2026-01-17 15:30:52 +07:00
Ivan Kalashnikov
bb485df58a style(config-page): center align tab content with auto margins 2026-01-17 14:46:55 +07:00
Ivan Kalashnikov
cdd99dedfe refactor(config): remove collapsible element from plugins tab. 2026-01-17 14:33:21 +07:00
Ivan Kalashnikov
34aee6a12c docs: add TODOs. 2026-01-17 14:25:43 +07:00
Ivan Kalashnikov
8afe8335fb refactor(i18n): remove 'PRODUCTIVITY_HELPER' key from translation files. 2026-01-17 14:18:38 +07:00
Ivan Kalashnikov
4c7875c8dd fix(i18n): update Russian translations and make alphabetical order for en and ru. 2026-01-17 14:16:37 +07:00
Ivan Kalashnikov
d7a1a3a1d0 refactor(config): reorder service injections for improved readability 2026-01-17 13:58:04 +07:00
Ivan Kalashnikov
c64485b888 fix(config): rename 'Plugins & Shortcuts' to 'Plugins' for consistency in UI and translations 2026-01-17 12:55:30 +07:00
Johannes Millan
3c5b441046 17.0.0-RC.5 2026-01-16 22:35:17 +01:00
Johannes Millan
0cd6dfaf43 17.0.0-RC.4 2026-01-16 22:34:50 +01:00
Johannes Millan
b0f4e99c0b test(e2e): fix flaky focus mode tests
Fixed 6 flaky E2E tests in focus mode by addressing race conditions
with countdown animation and session state transitions.

Changes:
- Added pointer-events: none to countdown component to prevent blocking
  clicks during fade-out animation (195ms)
- Replaced arbitrary timeouts with explicit waits for session-in-progress
  indicator (complete session button) in all focus mode tests
- Tests now wait for countdown animation to fully complete before
  interacting with UI elements

Root causes:
1. Countdown overlay intercepted pointer events during fade animation,
   causing clicks to fail intermittently
2. 900ms delay between countdown completion and session start caused
   race conditions when using fixed timeouts

Affected tests:
- focus-mode-break.spec.ts (4 tests)
- flowtime-timer-bug-5117.spec.ts (2 tests)

All tests now pass consistently without retries.
2026-01-16 22:34:50 +01:00
Johannes Millan
213d0ec010 chore(plugins): remove debug logging from procrastination-buster i18n 2026-01-16 22:34:50 +01:00
Johannes Millan
7401116bfb fix(plugins): reactively sync plugin i18n language with global config
Changed PluginI18nService constructor to use an effect() instead of
reading the language config once. This ensures the plugin i18n service
correctly picks up the language when config is loaded from persistence,
not just when it's manually changed.

This fixes the issue where plugins always started in English even when
the user had a different language selected, because the service was
initialized before the user's config was loaded.
2026-01-16 22:34:50 +01:00
Johannes Millan
9be6bf7c27 fix(plugins): initialize current language on plugin mount
Fixed i18n to fetch and use the current language when the plugin
initializes, instead of always defaulting to English. Now the plugin
will show the correct language immediately on first load, and also
update reactively when the language changes.

Changes:
- Added getCurrentLanguage() call in useTranslate initialization
- Changed onMount to createEffect for reactive language loading
- Updated both App.tsx and ProcrastinationInfo.tsx to use createEffect
- Applied fixes to both procrastination-buster and boilerplate
- Added debug logging to troubleshoot language change events

This fixes the issue where plugins always started in English regardless
of the user's selected language.
2026-01-16 22:34:50 +01:00
Johannes Millan
fb05e7be3e chore(plugins): remove debug logging from procrastination-buster 2026-01-16 22:34:50 +01:00
Johannes Millan
de264aff48 fix(plugins): fix i18n message protocol for iframe communication
Fixed the message passing between plugin iframes and plugin.ts to use
the proper PLUGIN_MESSAGE/PLUGIN_MESSAGE_RESPONSE protocol instead of
custom messages. This ensures translations and other messages are
correctly routed through the plugin bridge.

Changes:
- Updated useTranslate to use PLUGIN_MESSAGE type
- Listen for PLUGIN_MESSAGE_RESPONSE instead of custom response
- Wrap message in { type, payload } structure
- Updated plugin.ts to read from message.payload
- Added debug logging for troubleshooting
- Applied fixes to both procrastination-buster and boilerplate
2026-01-16 22:34:50 +01:00
Johannes Millan
1df40ab02d fix(plugins): fix translation loading in procrastination-buster
Changed message.data to message.payload in the onMessage handler
to match the structure sent by useTranslate hook. This fixes the
issue where translations were not loading in the UI.
2026-01-16 22:34:50 +01:00
Johannes Millan
92fd9301fe fix(plugins): remove duplicate side panel registration in procrastination-buster
Remove manual registerSidePanelButton() call since the side panel button
is already automatically registered via manifest.json with 'sidePanel: true'.

This fixes:
- Duplicate side panel button warning
- Plugin loading in both side panel and main view simultaneously

The manifest-based registration is sufficient and avoids duplication.
2026-01-16 22:34:50 +01:00
Johannes Millan
91fe3652dc fix(plugins): copy directories recursively in build script
Add copyRecursive() helper function to handle both files and directories
when copying plugin builds to bundled-plugins. This ensures i18n folders
and other directories are properly copied.

Previously, only files were copied (checking isFile()), which caused i18n
folders to be skipped. Now all three plugin build commands (procrastination-
buster, sync-md, ai-productivity-prompts) properly copy directory trees.

Fixes: 404 errors for i18n/de.json and other directory contents
2026-01-16 22:34:50 +01:00
Johannes Millan
cbc36012d8 test(e2e): fix add-to-today subtask tests
- Add Escape key press after creating subtasks to force exit from edit mode
- Simplify first test to remove both parent and subtask from Today, then use keyboard shortcut (most reliable)
- Fix context menu test to click sun icon button in quick-access area instead of searching for text
- Simplify "should NOT add subtask" test to avoid unreliable task counting
- Add proper wait times for Angular change detection cycles

All 5 tests now passing consistently.
2026-01-16 22:34:50 +01:00
Johannes Millan
ba0e9ce002 fix(plugins): resolve PluginHooks runtime error in procrastination-buster
Replace PluginHooks.LANGUAGE_CHANGE enum reference with string literal
'languageChange' to fix runtime error. The type-only import of PluginHooks
was not available at runtime, causing "PluginHooks is not defined" error
when installing the plugin.

The hook registration now uses the string value directly:
- Before: plugin.registerHook(PluginHooks.LANGUAGE_CHANGE, ...)
- After: plugin.registerHook('languageChange', ...)
2026-01-16 22:34:50 +01:00
Johannes Millan
0e0c04915c fix(tasks): prevent dueDay update on filtered subtasks in planTasksForToday
Fixes bug where planTasksForToday was setting dueDay on all taskIds,
including subtasks that were filtered out from being added to TODAY_TAG
(e.g., subtasks whose parents are already in Today). This caused state
inconsistencies where subtasks would have today's dueDay but not be in
the TODAY_TAG.

Now only updates dueDay for tasks that are either:
1. Being added to TODAY_TAG (newTasksForToday), OR
2. Already in TODAY_TAG but have incorrect dueDay

Also improves E2E test selectors:
- Use proper DOM structure (.task-list-inner > task)
- Add hover timeout for Angular change detection
- Fix context menu selector to use Material menu pattern
2026-01-16 22:34:50 +01:00
Johannes Millan
ce17c00690 feat(plugins): add German translations to procrastination-buster
- Add comprehensive de.json with 80 German translation keys
- Update manifest.json to include German language support
- Translate all UI strings: home, navigation, strategies, info
- Translate all 8 procrastination types with emotions and strategies
- Translate educational content for understanding procrastination

All translation keys match between en.json and de.json for consistency.
2026-01-16 22:34:50 +01:00
Johannes Millan
2550f91cb7 feat(plugins): add i18n support to procrastination-buster plugin
- Add comprehensive English translations (en.json) for all UI strings
- Add useTranslate() hook for reactive translations
- Update manifest.json with i18n configuration
- Add i18n message handlers to plugin.ts
- Create getProcrastinationTypes() for dynamic translation loading
- Update App.tsx to use translations throughout
- Update ProcrastinationInfo.tsx with full translation support
- All 8 procrastination types, strategies, and info content now translatable

The plugin now supports internationalization with complete English translations
and can easily be extended to support additional languages.
2026-01-16 22:34:50 +01:00
Johannes Millan
eb120baf1b feat(plugins): add i18n support to boilerplate-solid-js
- Add useTranslate() hook for reactive translations in SolidJS
- Include example translation files (en.json, de.json)
- Update Vite plugin to copy i18n folder during build
- Add i18n message handlers to plugin.ts
- Demonstrate i18n usage in App.tsx with ~10 translation keys
- Update documentation with comprehensive i18n guide
- Add i18n to features list in main plugin-dev README

The boilerplate now provides a complete working example of multi-language
plugin support, making it easy for developers to create internationalized
plugins.
2026-01-16 22:34:50 +01:00
Johannes Millan
6087b63878 fix(tasks): add subtasks to Today via Add to Today button
Fixes issue where clicking "Add to Today" button or using Ctrl+T
keyboard shortcut on subtasks had no effect. The action dispatch
was missing the parentTaskMap parameter needed by the reducer to
properly handle parent-child task relationships.

- Add parentTaskMap to planTasksForToday action in task.component.ts
- Add parentTaskMap to planTasksForToday action in task-context-menu
- Add comprehensive unit tests for subtask scenarios
- Add E2E tests for button, keyboard shortcut, and context menu

Fixes #6028
2026-01-16 22:34:50 +01:00
Johannes Millan
f2145deaeb feat(plugins): improve i18n performance and developer experience
- Load translation files in parallel for 3-5x faster plugin loading
- Add dev-only warnings for missing translation keys and plugins
- Replace split/join interpolation with efficient regex-based approach
- Add comprehensive unit tests for new warning functionality
2026-01-16 22:34:49 +01:00