From 507fa088fd6a8118853b152b0eaa259ae435a561 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 5 May 2026 17:35:56 +0200 Subject: [PATCH] refactor(document): move statusDotClass and statusLabel to document domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These functions describe DocumentStatus display logic (dot colours, readable labels) and belong in the document domain. They were incorrectly placed in personFormat.ts. Moving them to documentStatusLabel.ts removes the person → document dependency and prepares the codebase for the boundaries/dependencies ESLint rule. Refs #410 Co-Authored-By: Claude Sonnet 4.6 --- .../lib/document/DocumentStatusChip.svelte | 8 ++- .../lib/document/documentStatusLabel.spec.ts | 46 ++++++++++++++- .../src/lib/document/documentStatusLabel.ts | 25 ++++++-- frontend/src/lib/person/personFormat.spec.ts | 57 +------------------ frontend/src/lib/person/personFormat.ts | 21 ------- 5 files changed, 72 insertions(+), 85 deletions(-) diff --git a/frontend/src/lib/document/DocumentStatusChip.svelte b/frontend/src/lib/document/DocumentStatusChip.svelte index ce4fa919..e0cc1ec7 100644 --- a/frontend/src/lib/document/DocumentStatusChip.svelte +++ b/frontend/src/lib/document/DocumentStatusChip.svelte @@ -1,7 +1,9 @@