Five small G5 findings from the 2026-06-02 audit. Each is local and
follows an established FC pattern.
- download_service: replace hardcoded ('discord','pixiv') tuple with
auth_type_for(platform) == 'token'. A 7th token-platform now picks
up the right credential path without touching this site.
- /api/tags/<source_id>/merge enqueues recompute_centroid.delay after
merge so the target's centroid reflects its new image set
immediately. Daily list_drifted catches it within 24h, but eager
recompute closes the suggestion-quality dip in the meantime.
- backfill_thumbnails added to beat_schedule (daily). The task
docstring claimed periodic Beat but the entry was never registered,
so the library got no self-healing thumbnail repair; only the
manual admin-UI button fired it.
- modal.createAndAdd pushes a kind='fandom' tag into
tagsStore.fandomCache so FandomPicker sees the new fandom on next
open. Was: cache-gated load (length===0) skipped refetch, new
fandom invisible until full page reload.
- cleanup cluster:
- Drop .webp from cleanup_service.unlink — thumbnailer only writes
.jpg/.png; the third tuple member was dead code.
- Drop effective_date from /api/gallery/scroll response — no FE
consumer reads it. Service still computes the attribute for
timeline ordering; this just trims the JSON.
- Rename store.recentMinute → store.recentRuns across the
systemActivity store + three consumers (SystemActivitySummary,
QueuesTable, SystemActivityTab). The data is the last 200 runs
(not actually "last minute"), so the name lied.
NOT in this bundle: the duplicate tag-merge endpoint
(/api/tags vs /api/admin/tags) is harder — has 1 FE caller and 3 tests
on the admin variant; consolidation is its own change.
65 lines
1.4 KiB
Vue
65 lines
1.4 KiB
Vue
<template>
|
|
<v-card class="fc-activity-summary">
|
|
<v-card-title class="d-flex align-center" style="gap: 10px;">
|
|
<v-icon icon="mdi-pulse" size="small" />
|
|
<span>System activity (last min)</span>
|
|
<v-spacer />
|
|
<v-btn
|
|
variant="text" size="small" rounded="pill"
|
|
@click="$emit('open-activity')"
|
|
>
|
|
View activity
|
|
<v-icon end size="small">mdi-arrow-right</v-icon>
|
|
</v-btn>
|
|
</v-card-title>
|
|
|
|
<v-card-text>
|
|
<v-alert
|
|
v-if="store.lastError"
|
|
type="warning" variant="tonal" density="compact" class="mb-3"
|
|
>
|
|
{{ store.lastError }}
|
|
</v-alert>
|
|
|
|
<QueuesTable
|
|
:queues="store.queues"
|
|
:workers="store.workers"
|
|
:recent-runs="store.recentRuns"
|
|
compact
|
|
/>
|
|
</v-card-text>
|
|
</v-card>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted, onUnmounted } from 'vue'
|
|
|
|
import { useSystemActivityStore } from '../../stores/systemActivity.js'
|
|
import QueuesTable from './QueuesTable.vue'
|
|
|
|
defineEmits(['open-activity'])
|
|
|
|
const store = useSystemActivityStore()
|
|
|
|
let pollId = null
|
|
|
|
function pollOnce() {
|
|
if (document.hidden) return
|
|
store.loadQueues()
|
|
store.loadWorkers()
|
|
store.loadRecentRuns()
|
|
}
|
|
|
|
onMounted(() => {
|
|
pollOnce()
|
|
pollId = setInterval(pollOnce, 5000)
|
|
})
|
|
onUnmounted(() => {
|
|
if (pollId) { clearInterval(pollId); pollId = null }
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fc-activity-summary { border-radius: 8px; }
|
|
</style>
|