From 4b2b964283075712de98743720ff3e31370ddc8e Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 8 Sep 2026 08:57:08 +0200 Subject: Deduplicate routine actions and badges across project routes - Share edit/complete/archive form actions in routine-actions.ts; route servers become thin wrappers (strictest guard semantics in one place) - Move parseFrequencyDays into validation.ts - Extract ScoreBadge/StatusBadge components; use on project pages and the home page instead of duplicated scoreClass/statusClass helpers - Fix archiveProject calling the routine archive with the project id --- src/lib/components/ScoreBadge.svelte | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/lib/components/ScoreBadge.svelte (limited to 'src/lib/components/ScoreBadge.svelte') diff --git a/src/lib/components/ScoreBadge.svelte b/src/lib/components/ScoreBadge.svelte new file mode 100644 index 0000000..6384667 --- /dev/null +++ b/src/lib/components/ScoreBadge.svelte @@ -0,0 +1,13 @@ + + +{score} -- cgit v1.3