feat(credits): exchange balance for points

Replace the legacy points-to-balance and external points purchase flows
with direct integer balance-to-points exchange. Enforce exchange and
points-transfer limits and capability checks across the UI and REST API.
This commit is contained in:
kate522 committed 2026-08-13 15:20:06 +08:00
1 parent f9bce15c9a
commit 1247f9bf4e
18 files changed
+234 -648

No files matched your search

@@ -42,6 +42,10 @@ if ($show_credits) {
require $dir . '/credits-signin.php';
}
if ($show_wallet || $show_credits) {
require $dir . '/transfer-modal.php';
}
// Tabbed ledgers (Zibll record tabs).
if ($show_wallet || $show_credits) :
$active_record = $show_wallet ? 'balance' : 'points';