mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
merge upstream: system status, health monitoring, connectivity caching
Merges xmrcheckout/xmrcheckout main (7 commits since 655d037):
- Add Monero system status and reconciler heartbeat
- Surface Monero health status in UI (dashboard + invoice pages)
- Harden reconciler status heartbeat startup
- Avoid false Monero outage states in UI
- Cache Monero connectivity in system status
- Next.js security patch (15.5.9 → 15.5.14)
- Bump Monero Docker defaults to 0.18.4.6
Resolved conflicts in reconciler.py (kept our advisory lock + upstream
heartbeat), routes.py (kept both imports), README.md (kept both sections).
This commit is contained in:
@@ -8,6 +8,7 @@ import BtcpayCheckoutStyleSection from "../../../components/btcpay-checkout-styl
|
||||
import DefaultConfirmationTargetSection from "../../../components/default-confirmation-target-section";
|
||||
import DefaultQrLogoSection from "../../../components/default-qr-logo-section";
|
||||
import InvoicePanel from "../../../components/invoice-panel";
|
||||
import { formatRelativeTime } from "../../../components/relative-time";
|
||||
import WebhookHistoryPanel from "../../../components/webhook-history-panel";
|
||||
import WebhookSecretSection from "../../../components/webhook-secret-section";
|
||||
import WebhookSection from "../../../components/webhook-section";
|
||||
@@ -75,6 +76,60 @@ type ProfileSummary = {
|
||||
btcpay_checkout_style?: "standard" | "btcpay_classic";
|
||||
created_at: string;
|
||||
};
|
||||
type SystemStatusSummary = {
|
||||
wallet_rpc: "ok" | "unreachable";
|
||||
daemon: "ok" | "unreachable" | "unknown";
|
||||
daemon_height: number | null;
|
||||
invoice_reconcile_interval_seconds: number;
|
||||
last_reconcile_started_at: string | null;
|
||||
last_reconcile_completed_at: string | null;
|
||||
last_reconcile_error: string | null;
|
||||
};
|
||||
|
||||
const walletRpcBadge = (systemStatus: SystemStatusSummary | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Wallet RPC unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.wallet_rpc === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Wallet RPC ok",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Wallet RPC down",
|
||||
};
|
||||
};
|
||||
|
||||
const daemonBadge = (systemStatus: SystemStatusSummary | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Daemon connected",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "unknown") {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon not configured",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Daemon down",
|
||||
};
|
||||
};
|
||||
|
||||
export default async function DashboardPage({
|
||||
searchParams,
|
||||
}: {
|
||||
@@ -205,6 +260,7 @@ export default async function DashboardPage({
|
||||
|
||||
const allInvoices = invoicesData?.items ?? [];
|
||||
let profileData: ProfileSummary | null = null;
|
||||
let systemStatus: SystemStatusSummary | null = null;
|
||||
|
||||
if (activeTab === "overview" || activeTab === "profile" || activeTab === "invoices") {
|
||||
const response = await fetch(`${apiBaseUrl}/api/core/profile`, {
|
||||
@@ -220,6 +276,14 @@ export default async function DashboardPage({
|
||||
profileData = (await response.json()) as ProfileSummary;
|
||||
}
|
||||
}
|
||||
if (activeTab === "overview") {
|
||||
const response = await fetch(`${apiBaseUrl}/api/core/public/system/status`, {
|
||||
cache: "no-store",
|
||||
});
|
||||
if (response.ok) {
|
||||
systemStatus = (await response.json()) as SystemStatusSummary;
|
||||
}
|
||||
}
|
||||
|
||||
const isToday = (value: string) => {
|
||||
const date = new Date(value);
|
||||
@@ -240,7 +304,14 @@ export default async function DashboardPage({
|
||||
const confirmedCount = allInvoices.filter(
|
||||
(invoice) => invoice.status === "confirmed"
|
||||
).length;
|
||||
|
||||
const walletStatusBadge = walletRpcBadge(systemStatus);
|
||||
const daemonStatusBadge = daemonBadge(systemStatus);
|
||||
const lastReconcileCompleted = systemStatus?.last_reconcile_completed_at
|
||||
? formatRelativeTime(systemStatus.last_reconcile_completed_at)
|
||||
: null;
|
||||
const lastReconcileStarted = systemStatus?.last_reconcile_started_at
|
||||
? formatRelativeTime(systemStatus.last_reconcile_started_at)
|
||||
: null;
|
||||
const tabBaseClass =
|
||||
"inline-flex items-center rounded-xl border border-stroke bg-white/70 px-4 py-2 text-xs font-semibold uppercase tracking-[0.12em] text-ink-soft transition hover:-translate-y-0.5";
|
||||
const tabActiveClass =
|
||||
@@ -346,6 +417,68 @@ export default async function DashboardPage({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-4 rounded-2xl border border-stroke bg-white/70 p-5 shadow-soft">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Monero connectivity
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2 text-[0.7rem] font-semibold uppercase tracking-[0.12em]">
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${walletStatusBadge.className}`}
|
||||
>
|
||||
{walletStatusBadge.label}
|
||||
</span>
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${daemonStatusBadge.className}`}
|
||||
>
|
||||
{daemonStatusBadge.label}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-4 grid gap-4 sm:grid-cols-2">
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Current daemon height
|
||||
</p>
|
||||
<p className="mt-1 text-lg font-semibold">
|
||||
{systemStatus?.daemon_height?.toLocaleString() ?? "Unavailable"}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Detection poll interval
|
||||
</p>
|
||||
<p className="mt-1 text-lg font-semibold">
|
||||
{systemStatus?.invoice_reconcile_interval_seconds ?? 30}s
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Last successful reconcile
|
||||
</p>
|
||||
<p className="mt-1 text-lg font-semibold">
|
||||
{lastReconcileCompleted ?? "Not yet recorded"}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Last reconcile start
|
||||
</p>
|
||||
<p className="mt-1 text-lg font-semibold">
|
||||
{lastReconcileStarted ?? "Not yet recorded"}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<p className="mt-3 text-sm text-ink-soft">
|
||||
If payments stay at 0 confirmations, check that the daemon is connected
|
||||
and that the height keeps advancing.
|
||||
</p>
|
||||
{systemStatus?.last_reconcile_error ? (
|
||||
<p className="mt-3 rounded-xl bg-red-100 px-3 py-2 text-sm text-red-700">
|
||||
Last reconciler error: {systemStatus.last_reconcile_error}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="mt-5 rounded-2xl border border-ink/10 bg-ink/10 px-4 py-3 text-sm font-semibold text-ink">
|
||||
We never hold funds. All payments move from the customer to your
|
||||
wallet.
|
||||
|
||||
@@ -48,6 +48,11 @@ const endpointGroups = [
|
||||
path: "/api/core/public/invoice/{invoice_id}/continue",
|
||||
description: "After confirmation, redirect to the merchant-provided Continue URL (if configured).",
|
||||
},
|
||||
{
|
||||
method: "GET",
|
||||
path: "/api/core/public/system/status",
|
||||
description: "Read daemon, wallet-rpc, block height, and reconciler heartbeat without auth.",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -257,6 +262,17 @@ const endpointRequirements = [
|
||||
"Returns a 302 redirect to the merchant-provided checkout_continue_url (if configured).",
|
||||
],
|
||||
},
|
||||
{
|
||||
method: "GET",
|
||||
path: "/api/core/public/system/status",
|
||||
auth: "None",
|
||||
required: [],
|
||||
optional: [],
|
||||
notes: [
|
||||
"Returns wallet-rpc reachability, daemon reachability, current daemon height, and reconciler heartbeat timestamps.",
|
||||
"Use this endpoint to debug setup issues before sending a real payment.",
|
||||
],
|
||||
},
|
||||
{
|
||||
method: "GET",
|
||||
path: "/api/core/invoices",
|
||||
|
||||
@@ -37,6 +37,59 @@ type InvoiceStatusResponse = {
|
||||
detected_at: string | null;
|
||||
confirmed_at: string | null;
|
||||
};
|
||||
type SystemStatusResponse = {
|
||||
wallet_rpc: "ok" | "unreachable";
|
||||
daemon: "ok" | "unreachable" | "unknown";
|
||||
daemon_height: number | null;
|
||||
invoice_reconcile_interval_seconds: number;
|
||||
last_reconcile_started_at: string | null;
|
||||
last_reconcile_completed_at: string | null;
|
||||
last_reconcile_error: string | null;
|
||||
};
|
||||
|
||||
const walletRpcBadge = (systemStatus: SystemStatusResponse | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Wallet RPC unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.wallet_rpc === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Wallet RPC ok",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Wallet RPC down",
|
||||
};
|
||||
};
|
||||
|
||||
const daemonBadge = (systemStatus: SystemStatusResponse | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Daemon connected",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "unknown") {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon not configured",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Daemon down",
|
||||
};
|
||||
};
|
||||
|
||||
const formatStatus = (status: InvoiceStatus) => {
|
||||
if (status === "payment_detected") {
|
||||
@@ -98,10 +151,12 @@ export default async function InvoiceStatusDetailPage({
|
||||
params: Promise<{ invoiceId: string }>;
|
||||
}) {
|
||||
const { invoiceId } = await params;
|
||||
const response = await fetch(
|
||||
`${apiBaseUrl}/api/core/public/invoice/${encodeURIComponent(invoiceId)}`,
|
||||
{ cache: "no-store" }
|
||||
);
|
||||
const [response, systemStatusResponse] = await Promise.all([
|
||||
fetch(`${apiBaseUrl}/api/core/public/invoice/${encodeURIComponent(invoiceId)}`, {
|
||||
cache: "no-store",
|
||||
}),
|
||||
fetch(`${apiBaseUrl}/api/core/public/system/status`, { cache: "no-store" }),
|
||||
]);
|
||||
|
||||
if (response.status === 404) {
|
||||
return (
|
||||
@@ -157,6 +212,9 @@ export default async function InvoiceStatusDetailPage({
|
||||
}
|
||||
|
||||
const invoice = (await response.json()) as InvoiceStatusResponse;
|
||||
const systemStatus = systemStatusResponse.ok
|
||||
? ((await systemStatusResponse.json()) as SystemStatusResponse)
|
||||
: null;
|
||||
const statusLabel = formatStatus(invoice.status);
|
||||
const confirmations = Math.max(0, invoice.confirmations ?? 0);
|
||||
const confirmationTarget = Math.max(0, invoice.confirmation_target);
|
||||
@@ -204,6 +262,9 @@ export default async function InvoiceStatusDetailPage({
|
||||
const showConfirmedStamp = invoice.status === "confirmed";
|
||||
const createdTimestamp = formatTimestamp(invoice.created_at);
|
||||
const expiresTimestamp = formatTimestamp(invoice.expires_at);
|
||||
const lastReconcileCompleted = formatTimestamp(systemStatus?.last_reconcile_completed_at ?? null);
|
||||
const walletStatusBadge = walletRpcBadge(systemStatus);
|
||||
const daemonStatusBadge = daemonBadge(systemStatus);
|
||||
|
||||
return (
|
||||
<main className="px-[6vw] pb-20 pt-10 text-ink">
|
||||
@@ -230,6 +291,9 @@ export default async function InvoiceStatusDetailPage({
|
||||
</summary>
|
||||
<div className="mt-3 grid gap-2">
|
||||
<p className="font-mono text-xs text-ink">Invoice ID: {invoiceId}</p>
|
||||
<p className="font-mono text-xs text-ink">
|
||||
Current block height: {systemStatus?.daemon_height?.toLocaleString() ?? "Unavailable"}
|
||||
</p>
|
||||
<p>
|
||||
This status page is public. Anyone with the link can view the current
|
||||
invoice state.
|
||||
@@ -259,6 +323,59 @@ export default async function InvoiceStatusDetailPage({
|
||||
<StatusRefreshButton label="Refresh" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-4 rounded-xl border border-stroke bg-white/70 p-4">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Monero node
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2 text-[0.7rem] font-semibold uppercase tracking-[0.12em]">
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${walletStatusBadge.className}`}
|
||||
>
|
||||
{walletStatusBadge.label}
|
||||
</span>
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${daemonStatusBadge.className}`}
|
||||
>
|
||||
{daemonStatusBadge.label}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-3 grid gap-3 sm:grid-cols-2">
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Current block height
|
||||
</p>
|
||||
<p className="mt-1 text-sm font-semibold">
|
||||
{systemStatus?.daemon_height?.toLocaleString() ?? "Unavailable"}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Detection poll
|
||||
</p>
|
||||
<p className="mt-1 text-sm font-semibold">
|
||||
{systemStatus?.invoice_reconcile_interval_seconds ?? 30}s
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Last successful scan
|
||||
</p>
|
||||
<p
|
||||
className="mt-1 text-sm font-semibold"
|
||||
title={lastReconcileCompleted.relative ?? undefined}
|
||||
>
|
||||
{lastReconcileCompleted.label}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{systemStatus?.last_reconcile_error ? (
|
||||
<p className="mt-3 rounded-xl bg-red-100 px-3 py-2 text-sm text-red-700">
|
||||
Reconciler error: {systemStatus.last_reconcile_error}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="mt-6 grid gap-4 sm:grid-cols-3">
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
|
||||
@@ -52,6 +52,59 @@ type InvoiceStatusResponse = {
|
||||
quoted_at: string;
|
||||
} | null;
|
||||
};
|
||||
type SystemStatusResponse = {
|
||||
wallet_rpc: "ok" | "unreachable";
|
||||
daemon: "ok" | "unreachable" | "unknown";
|
||||
daemon_height: number | null;
|
||||
invoice_reconcile_interval_seconds: number;
|
||||
last_reconcile_started_at: string | null;
|
||||
last_reconcile_completed_at: string | null;
|
||||
last_reconcile_error: string | null;
|
||||
};
|
||||
|
||||
const walletRpcBadge = (systemStatus: SystemStatusResponse | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Wallet RPC unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.wallet_rpc === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Wallet RPC ok",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Wallet RPC down",
|
||||
};
|
||||
};
|
||||
|
||||
const daemonBadge = (systemStatus: SystemStatusResponse | null) => {
|
||||
if (!systemStatus) {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon unavailable",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "ok") {
|
||||
return {
|
||||
className: "bg-emerald-100 text-emerald-900",
|
||||
label: "Daemon connected",
|
||||
};
|
||||
}
|
||||
if (systemStatus.daemon === "unknown") {
|
||||
return {
|
||||
className: "bg-amber-100 text-amber-900",
|
||||
label: "Daemon not configured",
|
||||
};
|
||||
}
|
||||
return {
|
||||
className: "bg-red-100 text-red-700",
|
||||
label: "Daemon down",
|
||||
};
|
||||
};
|
||||
|
||||
const formatStatus = (status: InvoiceStatus) => {
|
||||
if (status === "payment_detected") {
|
||||
@@ -93,10 +146,12 @@ export default async function BtcpayModalInvoicePage({
|
||||
params: Promise<{ invoiceId: string }>;
|
||||
}) {
|
||||
const { invoiceId } = await params;
|
||||
const response = await fetch(
|
||||
`${apiBaseUrl}/api/core/public/invoice/${encodeURIComponent(invoiceId)}`,
|
||||
{ cache: "no-store" }
|
||||
);
|
||||
const [response, systemStatusResponse] = await Promise.all([
|
||||
fetch(`${apiBaseUrl}/api/core/public/invoice/${encodeURIComponent(invoiceId)}`, {
|
||||
cache: "no-store",
|
||||
}),
|
||||
fetch(`${apiBaseUrl}/api/core/public/system/status`, { cache: "no-store" }),
|
||||
]);
|
||||
|
||||
if (response.status === 404) {
|
||||
return (
|
||||
@@ -139,6 +194,9 @@ export default async function BtcpayModalInvoicePage({
|
||||
}
|
||||
|
||||
const invoice = (await response.json()) as InvoiceStatusResponse;
|
||||
const systemStatus = systemStatusResponse.ok
|
||||
? ((await systemStatusResponse.json()) as SystemStatusResponse)
|
||||
: null;
|
||||
const statusLabel = formatStatus(invoice.status);
|
||||
const confirmations = Math.max(0, invoice.confirmations ?? 0);
|
||||
const confirmationTarget = Math.max(0, invoice.confirmation_target);
|
||||
@@ -146,6 +204,9 @@ export default async function BtcpayModalInvoicePage({
|
||||
invoice.status === "payment_detected" || invoice.status === "confirmed";
|
||||
const createdTimestamp = formatTimestamp(invoice.created_at);
|
||||
const expiresTimestamp = formatTimestamp(invoice.expires_at);
|
||||
const lastReconcileCompleted = formatTimestamp(systemStatus?.last_reconcile_completed_at ?? null);
|
||||
const walletStatusBadge = walletRpcBadge(systemStatus);
|
||||
const daemonStatusBadge = daemonBadge(systemStatus);
|
||||
const isBtcpayInvoice = Boolean(invoice.btcpay_amount && invoice.btcpay_currency);
|
||||
const useClassicCheckout =
|
||||
isBtcpayInvoice && invoice.btcpay_checkout_style === "btcpay_classic";
|
||||
@@ -246,6 +307,59 @@ export default async function BtcpayModalInvoicePage({
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-4 rounded-xl border border-stroke bg-white/70 p-4">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Monero node
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2 text-[0.7rem] font-semibold uppercase tracking-[0.12em]">
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${walletStatusBadge.className}`}
|
||||
>
|
||||
{walletStatusBadge.label}
|
||||
</span>
|
||||
<span
|
||||
className={`rounded-full px-3 py-1 ${daemonStatusBadge.className}`}
|
||||
>
|
||||
{daemonStatusBadge.label}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-3 grid gap-3 sm:grid-cols-2">
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Current block height
|
||||
</p>
|
||||
<p className="mt-1 text-sm font-semibold">
|
||||
{systemStatus?.daemon_height?.toLocaleString() ?? "Unavailable"}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Detection poll
|
||||
</p>
|
||||
<p className="mt-1 text-sm font-semibold">
|
||||
{systemStatus?.invoice_reconcile_interval_seconds ?? 30}s
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.2em] text-ink-soft">
|
||||
Last successful scan
|
||||
</p>
|
||||
<p
|
||||
className="mt-1 text-sm font-semibold"
|
||||
title={lastReconcileCompleted.relative ?? undefined}
|
||||
>
|
||||
{lastReconcileCompleted.label}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{systemStatus?.last_reconcile_error ? (
|
||||
<p className="mt-3 rounded-xl bg-red-100 px-3 py-2 text-sm text-red-700">
|
||||
Reconciler error: {systemStatus.last_reconcile_error}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
{checkoutContinueAvailable ? (
|
||||
<a
|
||||
className="mt-5 inline-flex w-fit items-center justify-center rounded-full bg-ink px-5 py-2 text-sm font-semibold text-cream shadow-[0_16px_30px_rgba(16,18,23,0.18)] transition hover:-translate-y-0.5"
|
||||
|
||||
Generated
+48
-48
@@ -9,7 +9,7 @@
|
||||
"@marsidev/react-turnstile": "^1.4.2",
|
||||
"doctrine": "^3.0.0",
|
||||
"esutils": "^2.0.3",
|
||||
"next": "15.5.9",
|
||||
"next": "15.5.14",
|
||||
"qrcode": "1.5.4",
|
||||
"react": "19.2.3",
|
||||
"react-dom": "19.2.3",
|
||||
@@ -23,7 +23,7 @@
|
||||
"@types/react-dom": "18.3.0",
|
||||
"autoprefixer": "^10.4.23",
|
||||
"eslint": "9.9.0",
|
||||
"eslint-config-next": "15.5.9",
|
||||
"eslint-config-next": "15.5.14",
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^3.4.14",
|
||||
"typescript": "5.5.4"
|
||||
@@ -733,15 +733,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/env": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.9.tgz",
|
||||
"integrity": "sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.14.tgz",
|
||||
"integrity": "sha512-aXeirLYuASxEgi4X4WhfXsShCFxWDfNn/8ZeC5YXAS2BB4A8FJi1kwwGL6nvMVboE7fZCzmJPNdMvVHc8JpaiA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-15.5.9.tgz",
|
||||
"integrity": "sha512-kUzXx0iFiXw27cQAViE1yKWnz/nF8JzRmwgMRTMh8qMY90crNsdXJRh2e+R0vBpFR3kk1yvAR7wev7+fCCb79Q==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-15.5.14.tgz",
|
||||
"integrity": "sha512-ogBjgsFrPPz19abP3VwcYSahbkUOMMvJjxCOYWYndw+PydeMuLuB4XrvNkNutFrTjC9St2KFULRdKID8Sd/CMQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -749,9 +749,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-darwin-arm64": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.7.tgz",
|
||||
"integrity": "sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.14.tgz",
|
||||
"integrity": "sha512-Y9K6SPzobnZvrRDPO2s0grgzC+Egf0CqfbdvYmQVaztV890zicw8Z8+4Vqw8oPck8r1TjUHxVh8299Cg4TrxXg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -765,9 +765,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-darwin-x64": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.7.tgz",
|
||||
"integrity": "sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.14.tgz",
|
||||
"integrity": "sha512-aNnkSMjSFRTOmkd7qoNI2/rETQm/vKD6c/Ac9BZGa9CtoOzy3c2njgz7LvebQJ8iPxdeTuGnAjagyis8a9ifBw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -781,9 +781,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-gnu": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.7.tgz",
|
||||
"integrity": "sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.14.tgz",
|
||||
"integrity": "sha512-tjlpia+yStPRS//6sdmlVwuO1Rioern4u2onafa5n+h2hCS9MAvMXqpVbSrjgiEOoCs0nJy7oPOmWgtRRNSM5Q==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -797,9 +797,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-musl": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.7.tgz",
|
||||
"integrity": "sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.14.tgz",
|
||||
"integrity": "sha512-8B8cngBaLadl5lbDRdxGCP1Lef8ipD6KlxS3v0ElDAGil6lafrAM3B258p1KJOglInCVFUjk751IXMr2ixeQOQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -813,9 +813,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-gnu": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.7.tgz",
|
||||
"integrity": "sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.14.tgz",
|
||||
"integrity": "sha512-bAS6tIAg8u4Gn3Nz7fCPpSoKAexEt2d5vn1mzokcqdqyov6ZJ6gu6GdF9l8ORFrBuRHgv3go/RfzYz5BkZ6YSQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -829,9 +829,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-musl": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.7.tgz",
|
||||
"integrity": "sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.14.tgz",
|
||||
"integrity": "sha512-mMxv/FcrT7Gfaq4tsR22l17oKWXZmH/lVqcvjX0kfp5I0lKodHYLICKPoX1KRnnE+ci6oIUdriUhuA3rBCDiSw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -845,9 +845,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-arm64-msvc": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.7.tgz",
|
||||
"integrity": "sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.14.tgz",
|
||||
"integrity": "sha512-OTmiBlYThppnvnsqx0rBqjDRemlmIeZ8/o4zI7veaXoeO1PVHoyj2lfTfXTiiGjCyRDhA10y4h6ZvZvBiynr2g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -861,9 +861,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-x64-msvc": {
|
||||
"version": "15.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.7.tgz",
|
||||
"integrity": "sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.14.tgz",
|
||||
"integrity": "sha512-+W7eFf3RS7m4G6tppVTOSyP9Y6FsJXfOuKzav1qKniiFm3KFByQfPEcouHdjlZmysl4zJGuGLQ/M9XyVeyeNEg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -2694,13 +2694,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-config-next": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-15.5.9.tgz",
|
||||
"integrity": "sha512-852JYI3NkFNzW8CqsMhI0K2CDRxTObdZ2jQJj5CtpEaOkYHn13107tHpNuD/h0WRpU4FAbCdUaxQsrfBtNK9Kw==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-15.5.14.tgz",
|
||||
"integrity": "sha512-lmJ5F8ZgOYogq0qtH4L5SpxuASY2SPdOzqUprN2/56+P3GPsIpXaUWIJC66kYIH+yZdsM4nkHE5MIBP6s1NiBw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "15.5.9",
|
||||
"@next/eslint-plugin-next": "15.5.14",
|
||||
"@rushstack/eslint-patch": "^1.10.3",
|
||||
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
||||
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
||||
@@ -4445,12 +4445,12 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/next": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-15.5.9.tgz",
|
||||
"integrity": "sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==",
|
||||
"version": "15.5.14",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-15.5.14.tgz",
|
||||
"integrity": "sha512-M6S+4JyRjmKic2Ssm7jHUPkE6YUJ6lv4507jprsSZLulubz0ihO2E+S4zmQK3JZ2ov81JrugukKU4Tz0ivgqqQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@next/env": "15.5.9",
|
||||
"@next/env": "15.5.14",
|
||||
"@swc/helpers": "0.5.15",
|
||||
"caniuse-lite": "^1.0.30001579",
|
||||
"postcss": "8.4.31",
|
||||
@@ -4463,14 +4463,14 @@
|
||||
"node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@next/swc-darwin-arm64": "15.5.7",
|
||||
"@next/swc-darwin-x64": "15.5.7",
|
||||
"@next/swc-linux-arm64-gnu": "15.5.7",
|
||||
"@next/swc-linux-arm64-musl": "15.5.7",
|
||||
"@next/swc-linux-x64-gnu": "15.5.7",
|
||||
"@next/swc-linux-x64-musl": "15.5.7",
|
||||
"@next/swc-win32-arm64-msvc": "15.5.7",
|
||||
"@next/swc-win32-x64-msvc": "15.5.7",
|
||||
"@next/swc-darwin-arm64": "15.5.14",
|
||||
"@next/swc-darwin-x64": "15.5.14",
|
||||
"@next/swc-linux-arm64-gnu": "15.5.14",
|
||||
"@next/swc-linux-arm64-musl": "15.5.14",
|
||||
"@next/swc-linux-x64-gnu": "15.5.14",
|
||||
"@next/swc-linux-x64-musl": "15.5.14",
|
||||
"@next/swc-win32-arm64-msvc": "15.5.14",
|
||||
"@next/swc-win32-x64-msvc": "15.5.14",
|
||||
"sharp": "^0.34.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@
|
||||
"dependencies": {
|
||||
"doctrine": "^3.0.0",
|
||||
"esutils": "^2.0.3",
|
||||
"next": "15.5.9",
|
||||
"next": "15.5.14",
|
||||
"qrcode": "1.5.4",
|
||||
"react": "19.2.3",
|
||||
"@marsidev/react-turnstile": "^1.4.2",
|
||||
@@ -26,7 +26,7 @@
|
||||
"@types/react-dom": "18.3.0",
|
||||
"autoprefixer": "^10.4.23",
|
||||
"eslint": "9.9.0",
|
||||
"eslint-config-next": "15.5.9",
|
||||
"eslint-config-next": "15.5.14",
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^3.4.14",
|
||||
"typescript": "5.5.4"
|
||||
|
||||
Reference in New Issue
Block a user