From a1511b33b30ee95996570f556e524ac783a25de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 12 Jun 2026 23:58:31 +0200 Subject: [PATCH] chore(mood): drop the manage module's unused exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The layout hook, the cap mirrors and the layout type shipped unused — the dead-code gate flags them; the section reads everything through the manage query and the caps surface as server 422 toasts. --- .../mood/manage/use-mood-tag-manage.ts | 17 ----------------- src/lib/mood/custom-tags.ts | 1 - 2 files changed, 18 deletions(-) diff --git a/src/components/mood/manage/use-mood-tag-manage.ts b/src/components/mood/manage/use-mood-tag-manage.ts index fa179b887..cd71232ae 100644 --- a/src/components/mood/manage/use-mood-tag-manage.ts +++ b/src/components/mood/manage/use-mood-tag-manage.ts @@ -62,15 +62,6 @@ export interface ManageCatalog { categories: ManageCategory[]; } -export interface MoodTagLayout { - groupOrder?: string[]; - placements?: Record; -} - -/** Per-user ceilings — mirror the server's 422 caps for friendly copy. */ -export const MAX_CUSTOM_TAGS = 50; -export const MAX_CUSTOM_GROUPS = 12; - export function useMoodTagManage(enabled: boolean) { return useQuery({ queryKey: queryKeys.moodTagManage(), @@ -80,14 +71,6 @@ export function useMoodTagManage(enabled: boolean) { }); } -export function useMoodTagLayout(enabled: boolean) { - return useQuery({ - queryKey: queryKeys.moodTagLayout(), - queryFn: async () => apiGet("/api/mood/tags/layout"), - enabled, - }); -} - /** * Invalidate every mood-tag read after a management mutation: the * `["mood-tag-catalog"]` prefix catches both the picker read and the diff --git a/src/lib/mood/custom-tags.ts b/src/lib/mood/custom-tags.ts index 53f12540a..317435128 100644 --- a/src/lib/mood/custom-tags.ts +++ b/src/lib/mood/custom-tags.ts @@ -21,7 +21,6 @@ import { MOOD_TAG_ICON_NAMES } from "@/lib/mood/icon-catalog"; export const CUSTOM_TAG_KEY_PREFIX = "custom:"; /** Stable category key + seeded id every custom tag hangs under. */ -export const CUSTOM_CATEGORY_KEY = "custom"; export const CUSTOM_CATEGORY_ID = "mtc_custom"; /** Per-user ceiling on custom tags (422 over the cap). */