More webapp changes+fixes

This commit is contained in:
2025-12-05 16:52:02 +01:00
parent c66cd0568f
commit 8e7a540c97
40 changed files with 1944 additions and 272 deletions
@@ -42,39 +42,49 @@
<ng-template #noResultTpl></ng-template>
<thead>
<tr>
<th nzWidth="10%">Type</th>
<th nzWidth="20%">Channel</th>
<th nzWidth="20%">Subscriber</th>
<th nzWidth="20%">Owner</th>
<th nzWidth="10%">Status</th>
<th nzWidth="12%">Created</th>
<th nzWidth="8%">Actions</th>
<th nzWidth="0">ID</th>
<th nzWidth="0">Type</th>
<th>Channel</th>
<th>Subscriber</th>
<th>Owner</th>
<th nzWidth="0">Status</th>
<th nzWidth="0">Created</th>
<th nzWidth="0">Actions</th>
</tr>
</thead>
<tbody>
@for (sub of subscriptions(); track sub.subscription_id) {
<tr>
<tr class="clickable-row" (click)="viewSubscription(sub)">
<td>
<span class="mono subscription-id">{{ sub.subscription_id }}</span>
</td>
<td>
<nz-tag [nzColor]="getTypeLabel(sub).color">
{{ getTypeLabel(sub).label }}
</nz-tag>
</td>
<td>
<span class="mono">{{ sub.channel_internal_name }}</span>
<div class="cell-name">{{ sub.channel_internal_name }}</div>
<div class="cell-id mono">{{ sub.channel_id }}</div>
</td>
<td>
<div class="cell-name">{{ getUserDisplayName(sub.subscriber_user_id) }}</div>
<div class="cell-id mono">{{ sub.subscriber_user_id }}</div>
</td>
<td>
<div class="cell-name">{{ getUserDisplayName(sub.channel_owner_user_id) }}</div>
<div class="cell-id mono">{{ sub.channel_owner_user_id }}</div>
</td>
<td>{{ getUserDisplayName(sub.subscriber_user_id) }}</td>
<td>{{ getUserDisplayName(sub.channel_owner_user_id) }}</td>
<td>
<nz-tag [nzColor]="getStatusInfo(sub).color">
{{ getStatusInfo(sub).label }}
</nz-tag>
</td>
<td>
<span nz-tooltip [nzTooltipTitle]="sub.timestamp_created">
{{ sub.timestamp_created | relativeTime }}
</span>
<div class="timestamp-absolute">{{ sub.timestamp_created | date:'yyyy-MM-dd HH:mm:ss' }}</div>
<div class="timestamp-relative">{{ sub.timestamp_created | relativeTime }}</div>
</td>
<td>
<td (click)="$event.stopPropagation()">
<div class="action-buttons">
@if (!sub.confirmed && isOwner(sub)) {
<!-- Incoming unconfirmed: can accept or deny -->
@@ -120,7 +130,7 @@
</tr>
} @empty {
<tr>
<td colspan="7">
<td colspan="8">
<nz-empty nzNotFoundContent="No subscriptions found"></nz-empty>
</td>
</tr>