Admins use analysis units and questions too
CI / test (push) Successful in 1m41s
CI / build (push) Successful in 5m52s
CI / deploy (push) Skipped

They add their own units on the admin page when they need more, and
testing shows the same balance as users see. Regenerating and prompt
previews stay free.

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-20 10:54:24 +00:00
co-authored by Claude Opus 5.5
parent e741f9b491
commit ac5e7fa4fd
5 changed files with 28 additions and 29 deletions
@@ -132,7 +132,7 @@ export function AnalysisQuestions({
setBuying(false);
}
const canAsk = isAdmin || left > 0;
const canAsk = left > 0;
return (
<section className="questions" aria-labelledby={`${fieldId}-title`}>
<h3 id={`${fieldId}-title`}>{TEXTS[about].title}</h3>
@@ -196,11 +196,7 @@ export function AnalysisQuestions({
{busy ? "Küldés…" : "Kérdés küldése"}
</button>
<span className="hint">
{waiting
? "Várd meg az előző válaszát."
: isAdmin
? "Adminként ingyenes."
: `Még ${left} kérdésed van.`}{" "}
{waiting ? "Várd meg az előző válaszát." : `Még ${left} kérdésed van.`}{" "}
{text.length > MAX_CHARS - 100 && `${text.length}/${MAX_CHARS}`}
</span>
</div>