refactor: the admin and user Requests pages draw a request with one RequestRow, and the kind chip is one KindPill there and on Hidden tracks (#5651)
release / govulncheck (push) Successful in 15s
release / web (push) Successful in 1m16s
release / go (push) Successful in 1m41s
release / integration (push) Successful in 5m10s
release / android (push) Successful in 5m17s
release / Build signed APK (releases and dev) (push) Successful in 5m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 18:20:53 -04:00
co-authored by Claude Opus 5.5
parent db15713798
commit 453a977e48
6 changed files with 206 additions and 192 deletions
+3 -15
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import KindPill from '#lib/components/KindPill.svelte';
import { pageTitle } from '#lib/branding.js';
import { Music2, RotateCcw } from 'lucide-svelte';
import { useQueryClient } from '@tanstack/svelte-query';
@@ -64,8 +65,8 @@
<!-- Body -->
<div class="flex flex-1 flex-col gap-1">
<div class="flex items-center gap-2">
<span class="kind-pill">Track</span>
<span class="kind-pill">{REASON_LABELS[row.reason]}</span>
<KindPill>Track</KindPill>
<KindPill>{REASON_LABELS[row.reason]}</KindPill>
</div>
<div class="text-sm text-text-primary">{row.track_title}</div>
<div class="text-xs text-text-secondary">
@@ -90,16 +91,3 @@
</ul>
{/if}
</div>
<style>
.kind-pill {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
line-height: 14px;
background: color-mix(in srgb, var(--fs-accent) 15%, transparent);
color: var(--fs-accent-fg);
}
</style>