Feedback in the system: ratings, messages, the recommendation question
- Under the summary, the detailed analyses, the forecast and tarot: "How tailored to you did it feel?" (1–5 stars); thumbs under answers. Only the owner rates, once (changeable); tags, a comment, and a permission to read the text; model and prompt version are kept with it - /visszajelzes: bug, idea, question, other (the page and the browser go with it, 10 a day); the state and the operator's reply show there, a dot in the account menu marks a new reply. No e-mail, no Telegram - One NPS question (0–10) in a bar under the header, after two finished contents; closing it counts - Admin → Visszajelzések: numbers by kind, week, tags, model and prompt, buyers and others, NPS; ratings with filters, the text only if allowed; messages with state, internal note and reply; a count in the admin menu - Nothing is public. Deleting an account keeps the stars without a name or comment; messages go. Privacy policy (hu, en) updated - The admin menu no longer shows a vertical scrollbar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// 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",
|
||||
};
|
||||
@@ -18,8 +18,8 @@ export const ARBITRATION_BOARD = {
|
||||
web: "https://panaszrendezes.hu",
|
||||
};
|
||||
|
||||
export const PRIVACY_UPDATED = "2026. november 22.";
|
||||
export const PRIVACY_UPDATED_EN = "22 November 2026";
|
||||
export const PRIVACY_UPDATED = "2026. november 24.";
|
||||
export const PRIVACY_UPDATED_EN = "24 November 2026";
|
||||
|
||||
/** The terms (ÁSZF) in force; the backend records this version with every purchase (TERMS_VERSION). */
|
||||
export const TERMS_UPDATED = "2026. november 23.";
|
||||
|
||||
@@ -25,6 +25,10 @@ export interface Me {
|
||||
share_reward_granted: boolean;
|
||||
/** Invoices of the user's payments (the "Számláim" menu shows from the first). */
|
||||
invoice_count: number;
|
||||
/** Replies to the user's feedback not read yet. */
|
||||
feedback_replies_unseen: number;
|
||||
/** Ask the "would you recommend us?" question now. */
|
||||
nps_due: boolean;
|
||||
/** Natal analyses earned by bringing new users through shared links. */
|
||||
referral_rewards: { earned: number; limit: number };
|
||||
}
|
||||
@@ -790,3 +794,78 @@ export interface SkyEvents {
|
||||
moon_ingresses: SkyIngress[];
|
||||
retrogrades: SkyRetrograde[];
|
||||
}
|
||||
|
||||
/** The user's rating of an analysis or an answer (`GET/PUT /v1/ratings`). */
|
||||
export interface Rating {
|
||||
analysis_id: string | null;
|
||||
question_id: string | null;
|
||||
/** 1–5; an answer's thumbs: 1 or 5. */
|
||||
stars: number;
|
||||
tags: string[];
|
||||
comment: string | null;
|
||||
may_read: boolean;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export type FeedbackCategory = "bug" | "idea" | "question" | "other";
|
||||
export type FeedbackStatus = "new" | "in_progress" | "done" | "dismissed";
|
||||
|
||||
/** A message from the "Visszajelzés" page, as its sender sees it. */
|
||||
export interface FeedbackMessage {
|
||||
id: string;
|
||||
category: FeedbackCategory;
|
||||
body: string;
|
||||
page: string | null;
|
||||
status: FeedbackStatus;
|
||||
reply: string | null;
|
||||
replied_at: string | null;
|
||||
/** The reply has not been read yet. */
|
||||
reply_new: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
/** A message as admins see it. */
|
||||
export interface AdminFeedbackMessage extends Omit<FeedbackMessage, "reply_new"> {
|
||||
user_agent: string | null;
|
||||
admin_note: string | null;
|
||||
reply_seen: boolean;
|
||||
user: { email: string; name: string | null; buyer: boolean };
|
||||
}
|
||||
|
||||
/** A rating as admins see it. */
|
||||
export interface AdminRating {
|
||||
id: string;
|
||||
kind: string;
|
||||
model: string | null;
|
||||
prompt_version: string | null;
|
||||
stars: number;
|
||||
tags: string[];
|
||||
comment: string | null;
|
||||
may_read: boolean;
|
||||
/** The rated text can be opened (allowed, and still there). */
|
||||
readable: boolean;
|
||||
buyer: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
reviewed: boolean;
|
||||
user: { email: string; name: string | null } | null;
|
||||
}
|
||||
|
||||
/** The numbers of Admin → Visszajelzések. */
|
||||
export interface FeedbackSummary {
|
||||
days: number;
|
||||
by_kind: { kind: string; count: number; average: number; satisfied_share: number }[];
|
||||
by_model: { kind: string; model: string; prompt_version: string; count: number; average: number }[];
|
||||
weeks: { week: string; count: number; average: number }[];
|
||||
tags: { tag: string; count: number }[];
|
||||
buyers: { buyer: boolean; count: number; average: number }[];
|
||||
nps: {
|
||||
answered: number;
|
||||
promoters: number;
|
||||
passives: number;
|
||||
detractors: number;
|
||||
closed: number;
|
||||
score: number | null;
|
||||
comments: { score: number; comment: string; created_at: string }[];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user