changes to task scheduling and readability change on downloads view

This commit is contained in:
Bryan Van Deusen
2026-01-29 19:33:04 -05:00
parent 575e20f58c
commit fcccfb24ee
18 changed files with 527 additions and 72 deletions
+15 -3
View File
@@ -143,8 +143,8 @@
<td style="word-break: break-all">{{ selectedDownload.url }}</td>
</tr>
<tr>
<td class="font-weight-bold">Source ID</td>
<td>{{ selectedDownload.source_id || 'N/A' }}</td>
<td class="font-weight-bold">Source</td>
<td>{{ getSourceLabel(selectedDownload.source_id) }}</td>
</tr>
<tr>
<td class="font-weight-bold">Files Downloaded</td>
@@ -228,7 +228,10 @@ const statusOptions = [
]
const sourceOptions = computed(() =>
sourcesStore.sources.map(s => ({ title: s.name, value: s.id }))
sourcesStore.sources.map(s => ({
title: `${s.subscription_name || 'Unknown'}:${s.platform}`,
value: s.id
}))
)
const headers = [
@@ -308,6 +311,15 @@ function truncateUrl(url) {
return url.substring(0, 47) + '...'
}
function getSourceLabel(sourceId) {
if (!sourceId) return 'N/A'
const source = sourcesStore.sources.find(s => s.id === sourceId)
if (source) {
return `${source.subscription_name || 'Unknown'}:${source.platform}`
}
return `Source #${sourceId}`
}
function showDetails(download) {
selectedDownload.value = download
detailsDialog.value = true
+1 -1
View File
@@ -420,7 +420,7 @@ const sortedAllPackages = computed(() => {
})
const scheduleIntervalHint = computed(() => {
const seconds = settings.value['download.schedule_interval'] || 3600
const seconds = settings.value['download.schedule_interval'] || 28800
if (seconds < 60) return `Check every ${seconds} seconds`
if (seconds < 3600) return `Check every ${Math.round(seconds / 60)} minutes`
if (seconds < 86400) {
+1 -1
View File
@@ -190,7 +190,7 @@ const formData = ref({
platform: '',
url: '',
enabled: true,
check_interval: 3600,
check_interval: 28800,
metadata: {},
})