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:
feco
2026-11-24 07:01:40 +00:00
co-authored by Claude Opus 5.5
parent 3e4653fdb2
commit 62ae4a438e
34 changed files with 3097 additions and 99 deletions
+92 -3
View File
@@ -476,10 +476,19 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.danger-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--danger); border-radius: var(--radius); }
/* Admin */
.admin-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
/* The line under the menu is a shadow inside it: the current page's underline
covers it without hanging out (that made a vertical scrollbar). */
.admin-nav {
display: flex; gap: 4px; margin-bottom: 4px; box-shadow: inset 0 -1px 0 var(--line);
overflow-x: auto; overflow-y: hidden; scrollbar-width: thin;
}
.admin-nav a {
padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted);
text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.admin-nav-count {
min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
@@ -1581,3 +1590,83 @@ span.tarot-fan-card { cursor: default; }
.gift-sample img { max-width: 240px; }
.gift-submit .btn { width: 100%; }
}
/* Feedback: rating what one got, the feedback page, the recommendation bar, the admin view */
.rate { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate-thumbs { margin-top: 10px; padding-top: 10px; }
.rate-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.rate-question { font-size: 14px; color: var(--ink-2); }
.rate-buttons { display: inline-flex; gap: 2px; }
.rate-star, .rate-thumb {
min-width: 40px; min-height: 40px; padding: 0 4px; border: 0; background: transparent; cursor: pointer;
font-size: 24px; line-height: 1; color: var(--line-2); border-radius: 8px;
}
.rate-star.is-on { color: var(--gold); }
.rate-star:hover, .rate-thumb:hover { background: rgba(217, 180, 106, 0.08); }
.rate-thumb { font-size: 20px; filter: grayscale(1); opacity: 0.6; }
.rate-thumb.is-on { filter: none; opacity: 1; background: rgba(217, 180, 106, 0.12); }
.rate-star:focus-visible, .rate-thumb:focus-visible, .rate-tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rate-details { display: flex; flex-direction: column; gap: 10px; }
.rate-details .hint, .rate-details .check { margin: 0; }
.rate-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rate-tag {
min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
color: var(--ink-2); font: 400 13px var(--font-body); cursor: pointer;
}
.rate-tag.is-on { border-color: var(--gold); color: var(--gold); background: rgba(217, 180, 106, 0.08); }
.qa-answer .rate { margin-top: 10px; }
.menu-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.feedback-form { gap: 16px; }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-kind {
display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2);
}
.feedback-kind input { accent-color: var(--gold); margin: 0; }
.feedback-kind.is-on { border-color: var(--gold); color: var(--ink); }
.feedback-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feedback-item { gap: 10px; padding: 18px 20px; }
.feedback-item.is-new { border-color: rgba(217, 180, 106, 0.5); }
.feedback-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feedback-body { margin: 0; white-space: pre-line; color: var(--ink-2); }
.feedback-reply { padding: 10px 14px; border-left: 2px solid var(--gold); background: rgba(217, 180, 106, 0.06); border-radius: 0 8px 8px 0; }
.feedback-reply p { margin: 4px 0 0; white-space: pre-line; }
.nps {
max-width: 1180px; margin: 12px auto 0; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start;
background: var(--panel); border: 1px solid rgba(217, 180, 106, 0.4); border-radius: 12px; width: calc(100% - 32px);
}
.nps-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nps-question, .nps-thanks { margin: 0; font-weight: 500; }
.nps-thanks { flex: 1; align-self: center; }
.nps-scale { display: flex; flex-wrap: wrap; gap: 4px; }
.nps-score {
min-width: 38px; min-height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2);
color: var(--ink); font: 500 14px var(--font-body); cursor: pointer;
}
.nps-score:hover { border-color: var(--gold); color: var(--gold); }
/* The scale's two ends under it, as wide as the eleven buttons. */
.nps-scale-wrap { display: inline-flex; flex-direction: column; gap: 4px; align-self: flex-start; max-width: 100%; }
.nps-ends { display: flex; justify-content: space-between; gap: 12px; }
.nps-comment { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.nps-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; min-width: 36px; min-height: 36px; border-radius: 8px; }
.nps-close:hover { color: var(--ink); }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-weeks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fb-weeks li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 14px; }
.fb-bar { display: block; height: 10px; border-radius: 5px; background: var(--gold); min-width: 4px; }
.fb-nps { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-comments { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fb-ratings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fb-rating { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.fb-rating.is-new { border-color: rgba(217, 180, 106, 0.5); }
.fb-rating-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.fb-stars { color: var(--gold); letter-spacing: 1px; }
.fb-stars.is-low { color: var(--danger); }
.fb-content { max-height: 420px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.fb-dump { display: flex; flex-direction: column; gap: 6px; }
.fb-dump h4 { margin: 8px 0 0; font-family: var(--font-display); font-size: 18px; }
.fb-dump p { margin: 0; white-space: pre-line; }
@media (max-width: 640px) {
.fb-weeks li { grid-template-columns: 90px minmax(0, 1fr) 70px; }
.nps-score { min-width: 34px; }
}