super-productivity/src
Johannes Millan 87f092bee3 fix(sync): correct error class names, JSDoc, and missed cache-clear
Findings from a multi-agent review of the recent sync extraction:

- Seven error classes in @sp/sync-providers shipped with a leading
  space in `name`, and `UploadRevToMatchMismatchAPIError` was further
  truncated to ' UploadRevToMatchMismatchAP'. Consumers use instanceof
  so runtime behavior was preserved, but stack traces, error envelopes,
  and structured-log meta carried the broken names. Added a regression
  test asserting instance.name matches ErrCtor.name for all 14 classes.
- @sp/sync-core decryptBatch JSDoc claimed Argon2 errors are never
  silently masked as legacy fallbacks, contradicting the actual
  catch-and-decryptLegacy path. The fallback is part of the public
  wire-format contract; rewrote the comment to match the implementation
  and reference the module-level wire-format spec.
- SuperSyncEncryptionToggleService.enable/disableEncryption promised
  "Clear cache on success" but never called clearSessionKeyCache().
  Added the call on the success path in both methods, matching the
  pattern used by EncryptionPasswordChangeService and
  FileBasedEncryptionService.
- Removed packages/sync-core/tests/ports.spec.ts — 57 LOC of
  vi.fn().mockResolvedValue type-assertion tests with no production
  code under test. Port shapes are enforced at the host via
  `implements` clauses with real behavioral coverage in sibling specs.
2026-05-13 19:49:26 +02:00
..
app fix(sync): correct error class names, JSDoc, and missed cache-clear 2026-05-13 19:49:26 +02:00
assets refactor(ui): replace custom SVG icons with Material font ligatures (#7575) 2026-05-13 14:19:45 +02:00
environments 18.5.0 2026-05-09 20:27:05 +02:00
static fix(security): harden XSS sinks and add Origin check (#7413) 2026-05-06 21:37:06 +02:00
styles feat: update breakpoint 2026-05-11 14:17:48 +02:00
test-helpers build: improve testing setup to give indication about which test hangs 2025-07-18 12:11:05 +02:00
typings refactor: improve typing 2025-09-16 18:04:40 +02:00
_common.scss refactor: modernize scss syntax and get rid of most of the warnings 2025-09-04 20:29:24 +02:00
favicon.ico
hammer-config.class.ts feat: replace hammerjs with custom swipe and pan directives 2025-08-10 12:56:11 +02:00
index.html fix(splash): keep productivity-tip heading readable on dark theme 2026-04-21 21:50:52 +02:00
karma.conf.js test: restore karma coverage reporter setup 2026-04-24 17:40:28 +02:00
main.ts refactor(sync): split encryption primitives 2026-05-13 17:26:55 +02:00
manifest.json
polyfills.ts fix(schedule): indicate tasks beyond available time 2026-05-11 14:30:55 +02:00
styles.scss fix(styles): use package imports for fontsource instead of relative paths 2026-03-18 13:14:10 +01:00
test.ts test: fix 2025-12-05 17:10:37 +01:00
tsconfig.app.json fix(build): exclude test helpers from production build 2026-02-25 16:46:51 +01:00
tsconfig.spec.json refactor(sync-providers): add tiered package exports 2026-05-13 14:11:15 +02:00
tsconfig.worker.json build: update configuration files 2025-06-27 10:25:00 +02:00