Simpl-Resultat/src
le king fu c1d69d23c5 fix: replace the home and profile folders exactly in the Journal (#497)
withoutFolders guesses where a path starts and ends, and five review
passes each found a line it let a folder through: blanks, soft stops, a
kept stop in a folder name, the fallback after a cut, a path glued to a
character that starts nothing. The new src/services/logFolders.ts knows
the two folders that hold the OS user name instead: the home folder
(homeDir) becomes "~" and the folder of the profile databases
(appConfigDir) "<profile folder>", the latter first.

- replaceKnownFolders: either separator and any run of them between
  segments (JSON.stringify doubles each backslash), case ignored with a
  drive letter, trailing separator of the folder dropped, and a
  boundary after it, so /home/max leaves /home/maxime alone. Never
  throws.
- setKnownFolders builds the patterns once, every segment escaped
  (CWE-185: a raw "(" would make every captured console call throw),
  and ignores an empty or root folder.
- initKnownFolders resolves both folders once, independently
  (Promise.allSettled), never rejected; knownFoldersReady resolves when
  they are known or 2 s after initKnownFolders, and at once when it was
  never called.

logService replaces them in every entry, whatever its channel, and
replayLogEntries rewrites the entries written before they arrived,
sessionStorage included; main.tsx wires it right after initLogCapture.
db.ts waits for knownFoldersReady inside the exclusive section of
connectToProfile, before repair_migrations, and its four sites clean a
line with cleanLogLine: the exact folders, then withoutFolders, which
does not change. "Migration checksums repaired for" goes through
logWarn, and startupConnection writes through a logError that App.tsx
passes: neither file writes to the Journal through console.* any more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:24:35 -04:00
..
__fixtures__ feat(onboarding): create_sample_import_folders command, sample CSV templates and detection test (#354) 2026-10-03 19:50:41 -04:00
__integration__ test: correct the seed priority comment of the onboarding samples test (#384) 2026-10-18 20:30:42 -04:00
components feat: focus of the upsell windows and ProfileFormModal as a dialog (#494) 2026-10-26 20:45:19 -04:00
contexts feat(onboarding): visit steps, eight rows, "Got it" and one-time initialization 2026-10-13 21:32:20 -04:00
data feat(categories): add v1 IPC seed, i18n keys, and migration v8 (#115) 2026-04-19 16:41:55 -04:00
hooks feat: focus of the upsell windows and ProfileFormModal as a dialog (#494) 2026-10-26 20:45:19 -04:00
i18n test: pin four cases the reviews of the stack left unpinned 2026-10-24 09:09:36 -04:00
pages test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
services fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
shared docs(release): name what the step-0 commands cannot see (#466) 2026-10-24 23:42:19 -04:00
test test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
utils fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
App.tsx fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
main.tsx fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
styles.contrast.test.ts fix(onboarding): give the focus ring back to the highlighted control 2026-10-08 21:05:30 -04:00
styles.css fix(onboarding): give the focus ring back to the highlighted control 2026-10-08 21:05:30 -04:00
vite-env.d.ts Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00