Enhance user management and node health check features
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user