mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
chore(mood): drop the manage module's unused exports
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.
This commit is contained in:
1 parent
3189848ace
commit
a1511b33b3
2 files changed
-18
No files matched your search
@@ -62,15 +62,6 @@ export interface ManageCatalog {
|
||||
categories: ManageCategory[];
|
||||
}
|
||||
|
||||
export interface MoodTagLayout {
|
||||
groupOrder?: string[];
|
||||
placements?: Record<string, string[]>;
|
||||
}
|
||||
|
||||
/** 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<MoodTagLayout>("/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
|
||||
|
||||
@@ -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). */
|
||||
|
||||
Reference in new issue
Block a user