Skip to content

Commit bde86ef

Browse files
refactor: replace data-stx-link with StxLink component
Converted 6 dynamic links to <StxLink :to="expr"> in detail pages (jobs, queues, groups, batches). Plain <a href> stays as native links. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b4fea1f commit bde86ef

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

packages/devtools/pages/batches/[id].stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
<td class='px-3 py-2.5 text-xs text-zinc-400 border-b border-zinc-800'>{{ formatTime(job.createdAt) }}</td>
214214
<td class='px-3 py-2.5 text-xs text-zinc-400 border-b border-zinc-800 text-right font-mono tabular-nums'>{{ job.duration ? job.duration + 'ms' : '—' }}</td>
215215
<td class='px-3 py-2.5 text-[0.8125rem] border-b border-zinc-800'>
216-
<a :href="'/jobs/' + job.id" data-stx-link class='text-indigo-500 no-underline hover:underline'>View</a>
216+
<StxLink :to="'/jobs/' + job.id" class='text-indigo-500 no-underline hover:underline'>View</StxLink>
217217
</td>
218218
</tr>
219219
</template>

packages/devtools/pages/groups.stx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@extends('layouts/default')
22

3-
@section('title')Job Groups — bun-queue@endsection
3+
@section('title')
4+
Job Groups — bun-queue
5+
@endsection
46

57
@section('content')
68
<script client>
@@ -121,7 +123,7 @@
121123
</div>
122124

123125
<div class='mt-auto flex justify-end pt-3 border-t border-zinc-800'>
124-
<a :href="'/groups/' + encodeURIComponent(group.id || group.name)" data-stx-link class='text-indigo-500 no-underline text-[0.8125rem] font-medium transition-colors duration-150 hover:text-indigo-400 hover:underline'>View Details &rarr;</a>
126+
<StxLink :to="'/groups/' + encodeURIComponent(group.id || group.name)" class='text-indigo-500 no-underline text-[0.8125rem] font-medium transition-colors duration-150 hover:text-indigo-400 hover:underline'>View Details &rarr;</StxLink>
125127
</div>
126128
</div>
127129
</template>

packages/devtools/pages/groups/[id].stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
</td>
160160
<td class='px-3 py-2.5 text-xs text-zinc-400 border-b border-zinc-800'>{{ formatTime(job.updatedAt || job.createdAt) }}</td>
161161
<td class='px-3 py-2.5 text-[0.8125rem] border-b border-zinc-800'>
162-
<a :href="'/jobs/' + job.id" data-stx-link class='text-indigo-500 no-underline hover:underline'>View</a>
162+
<StxLink :to="'/jobs/' + job.id" class='text-indigo-500 no-underline hover:underline'>View</StxLink>
163163
</td>
164164
</tr>
165165
</template>

packages/devtools/pages/jobs.stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
<td class='px-4 py-2.5 text-xs text-zinc-400 border-b border-zinc-800'>{{ job.completedAt || job.failedAt || job.processedAt || job.createdAt }}</td>
218218
<td class='px-4 py-2.5 text-right border-b border-zinc-800 whitespace-nowrap'>
219219
<button @if="job.status === 'failed'" @click='retryJob(job.id)' class='text-xs font-medium text-amber-400 bg-transparent border-none cursor-pointer hover:text-amber-300 transition-colors duration-150 mr-3'>Retry</button>
220-
<a :href="'/jobs/' + job.id" data-stx-link class='text-xs font-medium text-indigo-400 no-underline hover:text-indigo-500 hover:underline transition-colors duration-150'>View Details</a>
220+
<StxLink :to="'/jobs/' + job.id" class='text-xs font-medium text-indigo-400 no-underline hover:text-indigo-500 hover:underline transition-colors duration-150'>View Details</StxLink>
221221
</td>
222222
</tr>
223223
</template>

packages/devtools/pages/queues.stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
</div>
127127
</div>
128128
<div class='pt-3 border-t border-zinc-800'>
129-
<a :href="'/queues/' + q.id" data-stx-link class='text-sm font-medium text-indigo-400 no-underline hover:text-indigo-500 hover:underline transition-colors duration-150'>View Details &rarr;</a>
129+
<StxLink :to="'/queues/' + q.id" class='text-sm font-medium text-indigo-400 no-underline hover:text-indigo-500 hover:underline transition-colors duration-150'>View Details &rarr;</StxLink>
130130
</div>
131131
</div>
132132
</template>

packages/devtools/pages/queues/[id].stx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
<td class='px-3 py-2.5 text-xs text-zinc-400 border-b border-zinc-800'>{{ formatTime(job.createdAt) }}</td>
271271
<td class='px-3 py-2.5 text-xs text-zinc-400 border-b border-zinc-800 text-right font-mono tabular-nums'>{{ job.duration ? job.duration + 'ms' : '—' }}</td>
272272
<td class='px-3 py-2.5 text-[0.8125rem] border-b border-zinc-800'>
273-
<a :href="'/jobs/' + job.id" data-stx-link class='text-indigo-500 no-underline hover:underline'>View</a>
273+
<StxLink :to="'/jobs/' + job.id" class='text-indigo-500 no-underline hover:underline'>View</StxLink>
274274
</td>
275275
</tr>
276276
</template>

0 commit comments

Comments
 (0)