* master:
refactor(dialog): remove unused OnDestroy implementation from DialogAddNoteComponent
fix(calendar): poll all calendar tasks and prevent auto-move of existing tasks
docs: add info about how to translate stuff #5893
refactor(calendar): replace deprecated toPromise with firstValueFrom
build: update links to match our new organization
add QuestArc to community plugins list
feat(calendar): implement polling for calendar task updates and enhance data retrieval logic
fix(heatmap): use app theme class instead of prefers-color-scheme
fix(focus-mode): start break from banner when manual break start enabled
feat(i18n): connect Finnish and Swedish translation files
refactor(focus-mode): split sessionComplete$ and breakComplete$ into single-responsibility effects
Fixing Plugin API doc on persistence
# Conflicts:
# src/app/features/issue/store/poll-issue-updates.effects.ts
# src/app/t.const.ts
- Poll ALL calendar tasks across all projects, not just current context
- Replace forkJoin with merge (forkJoin never emits with timer)
- Add selectAllCalendarIssueTasks selector for cross-project calendar tasks
- Prevent existing ICAL tasks from being auto-moved to current context
- Add error handling to prevent polling stream termination on errors
- Add comprehensive tests for polling effects and selector
Fixes#4474
1. Add DELETE /api/sync/data route tests to sync.routes.spec.ts:
- Test successful deletion returns { success: true }
- Test 401 without authorization
- Test uploading new data works after reset
2. Fix passkey.spec.ts failures (4 tests):
- Add missing passkey.findUnique mock for credential lookup
- Update test expectations for discoverable credentials
(no allowCredentials - implementation changed)
3. Fix password-reset-api.spec.ts failures (12 tests):
- Exclude from vitest - tests routes that don't exist
- Server uses passkey/magic link auth, not password auth
All 412 tests now pass.
Update test mocks to match implementation changes in OperationLogEffects:
- Add ClientIdService mock (replaces pfapiService.metaModel.loadClientId)
- Add OperationCaptureService mock (for dequeue() calls)
- Add clearVectorClockCache to OperationLogStoreService mock
- Remove obsolete Injector and mockPfapiService dependencies
- Update "cache clientId" test to use mockClientIdService
Fixes 18 failing unit tests.
When a task was transferred from today to another day, it was not being
removed from planner.days[today] due to the `prevDay === today` skip
condition. This caused AddTasksForTomorrowService to find stale tasks
in planner.days[today] and re-add them to today via planTasksForToday,
which reset task.dueDay back to today - effectively reverting the
user's planner changes after sync.
The fix removes the `prevDay === today` condition so tasks are properly
removed from planner.days[today] when transferred away. TODAY_TAG.taskIds
still handles today's task ordering, but planner.days[today] now stays
consistent with task.dueDay.
Added 3 edge case tests:
- Verify task.dueDay is updated when transferring from today
- Handle transfer when planner.days[today] doesn't exist
- Handle transfer when task isn't in planner.days[today]
Also fixes pre-existing broken tests in:
- task-reminder.effects.spec.ts (removed obsolete tests for removed effect)
- plugin-hooks.effects.spec.ts (fixed invalid action property)
Add comprehensive unit tests for the reset account functionality:
- Test that deleteAllUserData removes all operations for a user
- Test that new operations can be uploaded after reset
- Test that resetting one user doesn't affect other users' data
Also adds missing userSyncState.deleteMany mock to the test setup.
Add a dedicated Account Settings page to the SuperSync server web interface:
- Move Reset Account and Delete Account buttons from token display to
separate Account Settings page for better UX
- Reset Account clears all synced data but keeps account active
- Delete Account permanently removes account and all data
- Add E2E tests for account reset functionality
Closes#5848
Replace @media (prefers-color-scheme: dark) with :host-context(.isDarkTheme)
so heatmap labels adapt to app-level theme switching, not just OS preference.
- Use var(--text-color-muted) for label text colors (auto-adapts to theme)
- Use CSS variables for backgrounds, scrollbars, and outlines
- Remove hardcoded rgba() colors in favor of theme-aware variables
Fixes#5883
When using Pomodoro with "Manually start breaks" and "Start focus sessions
with banner only", pressing the play button after session completion now
correctly starts a break instead of a new session.
Fixes#5889
Move health check into testRunId fixture so all supersync tests
automatically skip when the server isn't running. Previously, tests
would fail with ECONNREFUSED and count toward the 5-failure limit,
interrupting the entire test run.
SuperSync tests create 2-3 browser contexts per test. Running with
12 workers resulted in 24-36 simultaneous connections overwhelming
the Angular dev server, causing ERR_CONNECTION_REFUSED errors.
Changes:
- Add --workers=3 to e2e:supersync and e2e:supersync:file scripts
- Add documentation to supersync.fixture.ts explaining the issue
supersync.page.ts:
- Skip encryption checkbox handling when isEncryptionEnabled is undefined
(fixes server migration test timeout)
- Add waitFor() and settle delay before checkbox interactions
- Increase checkbox toggle timeout from 10s to 15s
supersync-models.spec.ts:
- Add extra sync cycle after tag deletion for complete synchronization
- Use toPass() with 15s timeout for tag visibility checks
- Reduces wait times but adds more robust retry logic
supersync-lww-conflict.spec.ts:
- Add explicit waitFor() before task interactions
- Add 100ms settle delay after hover for reliable button clicks
- Add timeout to toHaveClass assertions
SuperSync page object improvements:
- Add networkidle wait before interacting with sync dialog
- Add explicit mat-dialog-container wait before form interaction
- Add toBeAttached() assertions for element stability
- Use toPass() with progressive backoff for dropdown interactions
- Dismiss existing dropdown overlays before retrying
- Add blur() calls in password change dialog for Angular validation
- Add try-catch for fresh client dialog race condition
Task detail tests:
- Add blur() after time input fill to ensure Angular registers
the change before clicking Save
These changes fix intermittent failures when running E2E tests
with multiple workers in parallel.
The fill() method on time combobox wasn't triggering proper change events.
Use clear() + pressSequentially() + Tab to properly commit the time change
before clicking Save.
The debounceTime(1000) added in 871ee354c delayed ALL emissions by 1 second,
including the initial value. When sync.effects.ts used withLatestFrom(isOnline$)
and the app initialized faster than 1 second, the observable chain hung forever
because withLatestFrom requires the other observable to have already emitted.
Add startWith(navigator.onLine) after debounceTime to provide an immediate
initial value while still debouncing subsequent online/offline events.
Fixes#5868, #5877
Add Docker setup for running E2E tests with the Angular dev server
containerized while Playwright runs on the host. Supports multiple
instances via configurable ports.
New files:
- Dockerfile.e2e.dev: Dev server image
- docker-compose.e2e.yaml: E2E orchestration config
- scripts/wait-for-app.sh: Health check script
New npm scripts:
- e2e:docker: Run E2E with containerized app
- e2e:docker:webdav: Same but includes WebDAV for sync tests
Usage: APP_PORT=4343 npm run e2e:docker
When a user clicked on a task in the Schedule view and pressed Y to start
time tracking, a different task was being tracked instead. This happened
because Schedule view only sets selectedTaskId (for the detail panel) but
not focusedTaskId (used by keyboard shortcuts).
The fix modifies TaskShortcutService to use selectedTaskId as a fallback
when focusedTaskId is null, specifically for the togglePlay (Y) shortcut.
Priority order:
1. If focusedTaskId exists → delegate to TaskComponent (existing behavior)
2. If no focusedTaskId but selectedTaskId exists → toggle tracking for selected task
3. If neither exists → use global toggle behavior
Fixes#5884
When a task was scheduled for today with a time-based reminder, clicking
the "today" quick access button in the context menu was creating a new
reminder instead of clearing it. This was because the _schedule method
detected dueWithTime and called scheduleTask() which creates a reminder.
Now the method first checks if the task is already scheduled for today
with time and we're planning for today - in that case, it calls
addToMyDay() which properly clears the reminder via planTasksForToday.
Fixes#5872
The tests assumed 12-hour AM/PM format, but the app defaults to en_gb
locale which uses 24-hour format. Changed to increment hour instead
of flipping AM/PM, which works with both formats.
The icalEvents$ observable now refreshes periodically using a timer-based
approach. This ensures calendar events update in planner and scheduler
views without requiring an app restart.
Key changes:
- Add LOCAL_FILE_CHECK_INTERVAL (5 min) for file:// URLs
- Add getEffectiveCheckInterval() to determine poll interval per provider
- Refactor icalEvents$ to use timer(0, minInterval) for periodic refresh
- Move shareReplay to outer observable to prevent memory leaks
- Add comprehensive test coverage (84 tests)
Fixes#4474
When sync is enabled and the device is offline, show the skip sync
button immediately (~1 second) instead of waiting 3 seconds. This
improves startup UX when network is unavailable.
Fixes#5877
Fixes race condition where loadAll() could access the database before
initialization completes, causing "database connection is closing" errors.
Fixes#5734
Use default alarm ringtone with USAGE_ALARM audio attributes so
reminders play even when phone is on silent. Add vibration pattern
and change notification category from REMINDER to ALARM.
Fixes#5603
Adds a "Skip waiting for sync" button that appears after 3 seconds on
the loading screen. This allows users to proceed with local data while
sync continues in the background.
Fixes#5868
Remove the `!action.isManual` check from shouldAutoStartBreak condition,
so manually ending a Pomodoro session now triggers a break (or shows
"Start Break" button if isManualBreakStart is enabled).
Fixes#5876
- Skip break when user starts time tracking during break (syncs state)
- Stop time tracking when session is manually ended via "End Session"
Fixes#5875