Enhance user management and node health check features
CI / Backend (build + test) (push) Failing after 2m14s
CI / Frontend (lint + typecheck + build) (push) Successful in 51s

- Updated `ListUsersQueryHandler` to include plan names and config quotas in `UserSummaryDto`, enriching user data retrieval.
- Implemented `WithPlanNamesAsync` method to fetch plan names based on user plan IDs, improving user experience in the admin interface.
- Enhanced `Node` class with a `ConsecutiveProbeFailures` property for better status management during health checks.
- Modified `NodeHealthCheckService` to utilize the new `RecordProbe` method, implementing a hysteresis mechanism for node status changes.
- Updated frontend components to display user config quotas and plan names, improving clarity in user management.
- Enhanced tests for user listing and node status handling to ensure robust functionality and coverage.
- Updated documentation to reflect changes in user and node management features.
This commit is contained in:
Leonid Pershin
2026-08-05 08:34:17 +03:00
parent c2ed3240bd
commit 4b34c37ce3
20 changed files with 1563 additions and 28 deletions
+9
View File
@@ -130,6 +130,7 @@ function AdminUsersPage() {
<th className="py-2 font-medium">{t('admin.users.userName')}</th>
<th className="py-2 font-medium">{t('admin.users.role')}</th>
<th className="py-2 font-medium">{t('admin.users.statusLabel')}</th>
<th className="py-2 font-medium">{t('admin.users.configQuota')}</th>
<th className="py-2 font-medium">{t('admin.users.billingLabel')}</th>
<th className="py-2" />
</tr>
@@ -148,6 +149,14 @@ function AdminUsersPage() {
: t('admin.users.status.pending')}
</Badge>
</td>
<td className="py-2">
<span>{user.configQuota === -1 ? '∞' : user.configQuota}</span>
<span className="ml-1 text-xs text-muted-foreground">
{user.configQuota === -1
? t('admin.users.unlimitedQuota')
: (user.planName ?? t('admin.users.customQuota'))}
</span>
</td>
<td className="py-2">
{user.billingEnabled ? (
<PaidUntilBadge