Files
sorsfonalak/services/frontend/src/lib/feedback.ts
T

53 lines
1.4 KiB
TypeScript
Raw Normal View History

// Words of the feedback: rating tags, what was rated, message kinds and states.
import type { FeedbackCategory, FeedbackStatus } from "./types";
/** Tags offered with a low rating (1–3 stars). */
export const LOW_TAGS = [
"too_general",
"contradictory",
"wrong_data",
"hard_to_read",
"too_long",
"tone",
];
/** Tags offered with a high rating (4–5 stars). */
export const HIGH_TAGS = ["accurate", "deep", "clear", "useful"];
export const TAG_LABELS: Record<string, string> = {
too_general: "túl általános",
contradictory: "ellentmondásos",
wrong_data: "hibás adat (pl. rossz jegy vagy ház)",
hard_to_read: "nehezen érthető",
too_long: "túl hosszú",
tone: "nem tetszett a hangnem",
accurate: "pontos",
deep: "mély",
clear: "jól érthető",
useful: "hasznos",
};
export const KIND_LABELS: Record<string, string> = {
summary: "Rövid összefoglaló",
natal: "Képletelemzés",
synastry: "Kapcsolati elemzés",
forecast: "Éves előrejelzés",
tarot: "Kártyajóslás",
question: "Válasz kérdésre",
};
export const CATEGORY_LABELS: Record<FeedbackCategory, string> = {
bug: "Hiba",
idea: "Ötlet",
question: "Kérdés",
other: "Egyéb",
};
/** Message states as the sender sees them. */
export const STATUS_LABELS: Record<FeedbackStatus, string> = {
new: "Megkaptuk",
in_progress: "Folyamatban",
done: "Megoldva",
dismissed: "Lezárva",
};