dev #21

Merged
Seazn merged 35 commits from dev into main 2026-05-21 17:34:44 +00:00
Showing only changes of commit c7225d70cb - Show all commits

View File

@ -138,7 +138,7 @@ export default function AdminSubscriptionsPage() {
return (
<PageLayout contentClassName="flex-1 relative w-full">
<div className="max-w-[1820px] mx-auto px-4 sm:px-6 xl:px-10 py-8 space-y-5">
<div className="max-w-455 mx-auto px-4 sm:px-6 xl:px-10 py-8 space-y-5">
{/* Header */}
<div className="rounded-[28px] border border-white/80 bg-white/90 px-8 py-6 shadow-[0_24px_70px_-40px_rgba(15,23,42,0.3)] backdrop-blur flex flex-wrap items-center justify-between gap-4">
<div>
@ -197,9 +197,9 @@ export default function AdminSubscriptionsPage() {
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
<div className="min-w-0">
<div className="flex items-center gap-3">
<div className="text-sm font-semibold text-slate-900 break-words">{pieceCount} pieces</div>
<div className="text-sm font-semibold text-slate-900 wrap-break-word">{pieceCount} pieces</div>
{typeof current?.price === 'number' && Number.isFinite(current.price) ? (
<div className="text-xs text-slate-500 break-words">Current: {formatPriceDraft(current.price)}</div>
<div className="text-xs text-slate-500 wrap-break-word">Current: {formatPriceDraft(current.price)}</div>
) : null}
{savedAt ? (
<div className="text-xs text-emerald-700 bg-emerald-50 ring-1 ring-inset ring-emerald-200 px-2 py-0.5 rounded-full">
@ -270,7 +270,7 @@ export default function AdminSubscriptionsPage() {
<p className="text-sm text-slate-600 line-clamp-3">{item.description}</p>
<dl className="grid grid-cols-1 gap-y-1 text-sm">
<div>
<dt className="text-xs text-slate-400">Price</dt>
<dt className="text-xs text-slate-400">Price per pack</dt>
<dd className="font-semibold text-slate-900">
{item.currency || 'EUR'} {Number.isFinite(Number(item.price)) ? Number(item.price).toFixed(2) : String(item.price)}
</dd>
@ -318,7 +318,7 @@ export default function AdminSubscriptionsPage() {
<div className="w-full max-w-md rounded-[28px] border border-white/80 bg-white/90 backdrop-blur shadow-[0_32px_80px_-40px_rgba(15,23,42,0.42)]">
<div className="px-6 pt-6">
<h3 className="text-lg font-semibold text-slate-900">{t('autofix.kddd4832f')}</h3>
<p className="mt-2 text-sm text-slate-600">You are about to delete the coffee "{deleteTarget.title}". This action cannot be undone.</p>
<p className="mt-2 text-sm text-slate-600">You are about to delete the coffee &quot;{deleteTarget.title}&quot;. This action cannot be undone.</p>
</div>
<div className="px-6 pb-6 pt-4 flex justify-end gap-3">
<button