Refactor payment verification to manual workflow and add comprehensive cleanup tools

Major changes:
• Remove BTCPay Server integration in favor of SilverPAY manual verification
• Add test data cleanup mechanisms (API endpoints and shell scripts)
• Fix compilation errors in TestController (IdentityReference vs CustomerIdentity)
• Add deployment automation scripts for Hostinger VPS
• Enhance integration testing with comprehensive E2E validation
• Add Blazor components and mobile-responsive CSS for admin interface
• Create production environment configuration scripts

Key Features Added:
• Manual payment verification through Admin panel Order Details
• Bulk test data cleanup with proper cascade handling
• Deployment automation with systemd service configuration
• Comprehensive E2E testing suite with SilverPAY integration validation
• Mobile-first admin interface improvements

Security & Production:
• Environment variable configuration for production secrets
• Proper JWT and VAPID key management
• SilverPAY API integration with live credentials
• Database cleanup and maintenance tools

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-25 19:29:00 +01:00
parent 1588c79df0
commit 127be759c8
46 changed files with 3470 additions and 971 deletions

View File

@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>@ViewData["Title"] - TeleShop Admin</title>
@@ -33,7 +34,10 @@
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/lib/fontawesome/css/all.min.css" rel="stylesheet">
<link href="/lib/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="/_content/Radzen.Blazor/css/material-base.css" rel="stylesheet">
<link href="/css/modern-admin.css" rel="stylesheet">
<link href="/css/mobile-admin.css" rel="stylesheet">
@await RenderSectionAsync("Head", required: false)
</head>
<body>
<header>
@@ -131,9 +135,130 @@
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/_framework/blazor.server.js" autostart="false"></script>
<script src="/_content/Radzen.Blazor/Radzen.Blazor.js"></script>
<script src="/js/pwa.js"></script>
<script src="/js/notifications.js"></script>
<script src="/js/modern-mobile.js"></script>
<script src="/js/blazor-integration.js"></script>
@await RenderSectionAsync("Scripts", required: false)
<!-- Mobile Bottom Navigation -->
<nav class="mobile-bottom-nav">
<ul class="mobile-bottom-nav-items">
<li class="mobile-nav-item">
<a href="@Url.Action("Index", "Orders", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Orders" ? "active" : "")">
<i class="fas fa-shopping-cart"></i>
<span>Orders</span>
<span class="mobile-nav-badge" id="mobile-orders-badge" style="display: none;">0</span>
</a>
</li>
<li class="mobile-nav-item">
<a href="@Url.Action("Index", "Reviews", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Reviews" ? "active" : "")">
<i class="fas fa-star"></i>
<span>Reviews</span>
</a>
</li>
<li class="mobile-nav-item">
<a href="@Url.Action("Index", "Messages", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Messages" ? "active" : "")">
<i class="fas fa-comments"></i>
<span>Messages</span>
<span class="mobile-nav-badge" id="mobile-messages-badge" style="display: none;">0</span>
</a>
</li>
<li class="mobile-nav-item">
<a href="@Url.Action("LiveView", "BotActivity", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "BotActivity" ? "active" : "")">
<i class="fas fa-satellite-dish"></i>
<span>Live</span>
</a>
</li>
<li class="mobile-nav-item">
<a href="#" class="mobile-nav-link" onclick="toggleSettingsDrawer(); return false;">
<i class="fas fa-cog"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
<!-- Settings Drawer -->
<div class="drawer-overlay" onclick="toggleSettingsDrawer()"></div>
<div class="settings-drawer" id="settingsDrawer">
<div class="settings-drawer-header">
<h5>Settings</h5>
<button class="settings-drawer-close" onclick="toggleSettingsDrawer()">
<i class="fas fa-times"></i>
</button>
</div>
<ul class="settings-menu-list">
<li class="settings-menu-item">
<a href="@Url.Action("Index", "Dashboard", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-tachometer-alt"></i>
Dashboard
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "Categories", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-tags"></i>
Categories
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "Products", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-box"></i>
Products
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "ShippingRates", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-truck"></i>
Shipping
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "Users", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-users"></i>
Users
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "Bots", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-robot"></i>
Bots
</a>
</li>
<li class="settings-menu-item">
<a href="@Url.Action("Index", "SystemSettings", new { area = "Admin" })" class="settings-menu-link">
<i class="fas fa-sliders-h"></i>
System Settings
</a>
</li>
<li class="settings-menu-item">
<form method="post" action="@Url.Action("Logout", "Account", new { area = "Admin" })">
<button type="submit" class="settings-menu-link" style="width: 100%; border: none; background: none; text-align: left;">
<i class="fas fa-sign-out-alt"></i>
Logout
</button>
</form>
</li>
</ul>
</div>
<script>
// Settings Drawer Toggle
function toggleSettingsDrawer() {
const drawer = document.getElementById('settingsDrawer');
const overlay = document.querySelector('.drawer-overlay');
drawer.classList.toggle('open');
overlay.classList.toggle('show');
// Prevent body scroll when drawer is open
if (drawer.classList.contains('open')) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = '';
}
}
</script>
</body>
</html>